org.jboss.webservice.transport.jms
Class JMSTransportSupport

java.lang.Object
  extended by org.jboss.webservice.transport.jms.JMSTransportSupport
All Implemented Interfaces:
Serializable, javax.ejb.EnterpriseBean, javax.ejb.MessageDrivenBean, javax.jms.MessageListener

public abstract class JMSTransportSupport
extends Object
implements javax.ejb.MessageDrivenBean, javax.jms.MessageListener

The abstract base class for MDBs that want to act as web service endpoints. A subclass should only need to implement the service endpoint interface.

Author:
Thomas.Diesler@jboss.org
See Also:
Serialized Form

Field Summary
protected  org.jboss.logging.Logger log
           
 
Constructor Summary
JMSTransportSupport()
           
 
Method Summary
 void ejbCreate()
           
 void ejbRemove()
          A container invokes this method before it ends the life of the message-driven object.
protected  javax.jms.Queue getReplyQueue(javax.jms.Message message)
          Get the reply queue.
 void onMessage(javax.jms.Message message)
          All messages come in here, if it is a BytesMessage we pass it on for further processing.
protected  javax.xml.soap.SOAPMessage processSOAPMessage(String fromName, InputStream reqMessage)
           
protected  void sendResponse(javax.jms.Queue replyQueue, String msgStr)
          Respond to the call by sending a message to the reply queue
 void setMessageDrivenContext(javax.ejb.MessageDrivenContext ctx)
          Set the associated message-driven context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected org.jboss.logging.Logger log
Constructor Detail

JMSTransportSupport

public JMSTransportSupport()
Method Detail

onMessage

public void onMessage(javax.jms.Message message)
All messages come in here, if it is a BytesMessage we pass it on for further processing.

Specified by:
onMessage in interface javax.jms.MessageListener

processSOAPMessage

protected javax.xml.soap.SOAPMessage processSOAPMessage(String fromName,
                                                        InputStream reqMessage)
                                                 throws javax.xml.soap.SOAPException,
                                                        IOException,
                                                        RemoteException
Throws:
javax.xml.soap.SOAPException
IOException
RemoteException

getReplyQueue

protected javax.jms.Queue getReplyQueue(javax.jms.Message message)
                                 throws javax.jms.JMSException
Get the reply queue.

Throws:
javax.jms.JMSException

sendResponse

protected void sendResponse(javax.jms.Queue replyQueue,
                            String msgStr)
                     throws javax.xml.soap.SOAPException,
                            IOException,
                            javax.jms.JMSException
Respond to the call by sending a message to the reply queue

Throws:
javax.xml.soap.SOAPException
IOException
javax.jms.JMSException

ejbCreate

public void ejbCreate()

ejbRemove

public void ejbRemove()
               throws javax.ejb.EJBException
A container invokes this method before it ends the life of the message-driven object.

Specified by:
ejbRemove in interface javax.ejb.MessageDrivenBean
Throws:
javax.ejb.EJBException

setMessageDrivenContext

public void setMessageDrivenContext(javax.ejb.MessageDrivenContext ctx)
                             throws javax.ejb.EJBException
Set the associated message-driven context.

Specified by:
setMessageDrivenContext in interface javax.ejb.MessageDrivenBean
Throws:
javax.ejb.EJBException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.