org.codehaus.activesoap.transport.jms
Class SoapEndpointMessageListener
java.lang.Object
org.codehaus.activesoap.transport.jms.SoapEndpointMessageListener
- All Implemented Interfaces:
- MessageListener
- public class SoapEndpointMessageListener
- extends Object
- implements MessageListener
A SOAP endpoint which listens to JMS messages, processes them with the SOAP stack
and then sends the response to a new destination or replies to the inbound JMSReployTo destination.
- Version:
- $Revision: 1.2 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SoapEndpointMessageListener
public SoapEndpointMessageListener(SoapService soapService,
Session session,
MessageProducer producer,
Destination deadLetterQueue)
onMessage
public void onMessage(Message message)
- Specified by:
onMessage
in interface MessageListener
getSoapService
public SoapService getSoapService()
setSoapService
public void setSoapService(SoapService soapService)
getDeadLetterQueue
public Destination getDeadLetterQueue()
setDeadLetterQueue
public void setDeadLetterQueue(Destination deadLetterQueue)
getProducer
public MessageProducer getProducer()
setProducer
public void setProducer(MessageProducer producer)
getReplyToDestination
public Destination getReplyToDestination()
setReplyToDestination
public void setReplyToDestination(Destination replyToDestination)
getSession
public Session getSession()
setSession
public void setSession(Session session)
onTextMessage
protected void onTextMessage(TextMessage message)
throws Exception
- Throws:
Exception
findReplyToDestination
protected Destination findReplyToDestination(TextMessage message)
throws JMSException
- Throws:
JMSException
onException
protected void onException(Exception reason,
Message message)
sendToDeadLetterQueue
protected void sendToDeadLetterQueue(String reason,
Message message)
createDuplicateMessage
protected Message createDuplicateMessage(Message message)
throws JMSException
- Throws:
JMSException
checkValidDeadLetterQueue
protected void checkValidDeadLetterQueue(String reason,
Message message)
Copyright © 2004-2007 LogicBlaze, Inc.. All Rights Reserved.