|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.instantbank.component.lettersjobmdb.util.MessageSender
Wraper for the message sending process related to letter jobs.
| Field Summary | |
private java.lang.String |
contextProviderUrl
Context provider url. |
private Debug |
debug
The ubiquitous debugger object |
private java.lang.String |
initContextFactory
Name of the initial context factory class. |
private javax.jms.Queue |
q
Actual queue |
private javax.jms.QueueConnection |
qConnection
Queue connection |
private javax.jms.QueueSender |
qSender
Queue sender |
private javax.jms.QueueSession |
qSession
Queue session |
| Constructor Summary | |
MessageSender(java.lang.String server,
int port,
java.lang.String queue)
MessageSender constructor. |
|
MessageSender(java.lang.String contextProviderUrl,
java.lang.String initContextFactory,
java.lang.String queue)
MessageSender constructor. |
|
| Method Summary | |
javax.jms.Message |
buildFtpMessage(java.lang.String companyId,
java.lang.Long userId,
java.lang.String filePath,
long jobLogId,
long locId1,
long locId2)
Builds a message as expected by the LettersJobFtpMdb. |
javax.jms.Message |
buildLetterJobMessage(java.lang.String companyId,
java.lang.String temporalPath,
java.lang.Long userId,
java.lang.Long jobId,
java.lang.String contextProvider,
java.lang.String initContextFactory,
java.lang.String maxZipSize)
Builds a letter job message as expected by the LettersJobMessageEJB. |
private void |
debugContext(javax.naming.Context ctx)
Debug method allowing to explore some standard context in the JNDI tree. |
java.lang.String |
getContextProviderUrl()
Getter method for contextProviderUrl |
java.lang.String |
getInitContextFactory()
Getter method for initContextFactory |
private void |
init(java.lang.String queue)
Inits the required entities for sending messages. |
void |
release()
Release the message sending resources |
void |
send(javax.jms.Message msg)
Sends a message |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private java.lang.String initContextFactory
private java.lang.String contextProviderUrl
private javax.jms.QueueConnection qConnection
private javax.jms.QueueSession qSession
private javax.jms.QueueSender qSender
private javax.jms.Queue q
private Debug debug
| Constructor Detail |
public MessageSender(java.lang.String server,
int port,
java.lang.String queue)
throws javax.jms.JMSException
server - Server name.port - Port numberqueue - Actual queue where messages will be posted.javax.jms.JMSException - if any trouble arises constructing the sender
public MessageSender(java.lang.String contextProviderUrl,
java.lang.String initContextFactory,
java.lang.String queue)
throws javax.jms.JMSException
contextProviderUrl - Context Provider Url.initContextFactory - Name of the Initial Context Factory classqueue - Actual queue where messages will be posted.javax.jms.JMSException - if any trouble arises constructing the sender| Method Detail |
private void init(java.lang.String queue)
throws javax.jms.JMSException
queue - Name of the actual queue where messages are posted.javax.jms.JMSException - If anything goes wrong.
public javax.jms.Message buildLetterJobMessage(java.lang.String companyId,
java.lang.String temporalPath,
java.lang.Long userId,
java.lang.Long jobId,
java.lang.String contextProvider,
java.lang.String initContextFactory,
java.lang.String maxZipSize)
throws javax.jms.JMSException
companyId - Company IdtemporalPath - Full path of a working (scratch) directory.userId - User IdjobId - Job IdcontextProvider - Context Provider UrlinitContextFactory - Name of the Initial Context Factory classmaxZipSize - Description of the Parameterjavax.jms.JMSException - Description of the Exception
public javax.jms.Message buildFtpMessage(java.lang.String companyId,
java.lang.Long userId,
java.lang.String filePath,
long jobLogId,
long locId1,
long locId2)
throws javax.jms.JMSException
companyId - Description of the ParameteruserId - Description of the ParameterfilePath - Description of the ParameterjobLogId - Description of the ParameterlocId1 - Description of the ParameterlocId2 - Description of the Parameterjavax.jms.JMSException - Description of the Exception
public void send(javax.jms.Message msg)
throws javax.jms.JMSException
msg - Description of the Parameterjavax.jms.JMSException - Description of the Exceptionpublic void release()
public java.lang.String getContextProviderUrl()
public java.lang.String getInitContextFactory()
private void debugContext(javax.naming.Context ctx)
ctx - Description of the Parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||