|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.osesb.test.soapjmsreceiverservice.ejb20.SOAPJMSReceiverWSBean
public class SOAPJMSReceiverWSBean
SOAPJMSReceiverWSBean is a stateless session bean is configured as a test web service that processes SOAPMessages onto a JMS Destination as follows:
<wsa:RelatesTo> SOAPHeader
entry is mapped to the JMSCorrelationID property for the message that
is put to the configured JMS Destination.
| Field Summary | |
|---|---|
protected java.lang.String |
destinationQueue
From the javax.jms.Queue environment property, the JNDI name for a Queue for sending messages to the JMS Destination using a non-pooled JMS client. |
protected java.lang.String |
destinationTopic
From the javax.jms.Topic environment property, the JNDI name for a Topic for sending messages to the JMS Destination using a non-pooled JMS client. |
protected java.lang.String |
jmsPoolKey
The MDB uses pooled JMS clients to send replies. |
protected java.lang.String |
queueConnectionFactory
From the javax.jms.QueueConnectionFactory environment property, the JNDI name of the javax.jms.QueueConnectionFactory used to create a Queue connection for a non-pooled JMS client which sends messages to the JMS Destination. |
protected java.lang.String |
topicConnectionFactory
From the javax.jms.TopicConnectionFactory environment property, the JNDI name of the javax.jms.TopicConnectionFactory used to create a Topic connection for a non-pooled JMS client which sends messages to the JMS Destination. |
protected static java.lang.String |
xmlContentKey
receiveMessage() processes XML messages with attachments into JMS MapMessages with the following keys: 1) 'xmlContent' maps to a String that is the XML message, and 2) there are 'attachmentN' keys that map to byte[](s), which contain attachment data. |
| Constructor Summary | |
|---|---|
SOAPJMSReceiverWSBean()
|
|
| Method Summary | |
|---|---|
void |
ejbActivate()
|
void |
ejbCreate()
ejbCreate(). |
void |
ejbPassivate()
|
void |
ejbRemove()
|
protected JMSProducerBase |
getJMSProducer()
Uses J2EE environment properties to return a JMSProducerBase for sending messages to a JMS Destination. |
javax.ejb.SessionContext |
getSessionContext()
|
protected void |
logMessage(java.lang.String messageID,
java.lang.String xmlMessageText,
int numberOfAttachments)
Log a message. |
void |
receiveMessage(java.lang.String xmlMessageText)
Receive a XML message, possibly with attachments, and put it to the configured JMS Destination. |
void |
setSessionContext(javax.ejb.SessionContext sessionContext)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String queueConnectionFactory
ejbCreate()protected java.lang.String topicConnectionFactory
ejbCreate()protected java.lang.String destinationQueue
ejbCreate()protected java.lang.String destinationTopic
ejbCreate()protected java.lang.String jmsPoolKey
ejbCreate()protected static java.lang.String xmlContentKey
| Constructor Detail |
|---|
public SOAPJMSReceiverWSBean()
| Method Detail |
|---|
public void receiveMessage(java.lang.String xmlMessageText)
throws java.lang.Exception
xmlMessageText - The received XML message.
java.lang.Exception - if there is an error while processing the message.
protected JMSProducerBase getJMSProducer()
throws java.lang.Exception
java.lang.Exception - if there is a problem getting a JMSProducer
configured by environment properties.
protected void logMessage(java.lang.String messageID,
java.lang.String xmlMessageText,
int numberOfAttachments)
messageID - The ID of the incoming message from the
<wsa:MessageID> entry in the SOAPHeader,
if any.xmlMessageText - The incoming XML message.numberOfAttachments - The number of attachments in the incoming message.
public void ejbCreate()
throws javax.ejb.CreateException
javax.ejb.CreateExceptionpublic void ejbRemove()
ejbRemove in interface javax.ejb.SessionBeanpublic void ejbActivate()
ejbActivate in interface javax.ejb.SessionBeanpublic void ejbPassivate()
ejbPassivate in interface javax.ejb.SessionBeanpublic javax.ejb.SessionContext getSessionContext()
public void setSessionContext(javax.ejb.SessionContext sessionContext)
setSessionContext in interface javax.ejb.SessionBean
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||