org.codehaus.activesoap.transport.jms
Class SoapEndpointMessageListener

java.lang.Object
  extended byorg.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 $

Constructor Summary
SoapEndpointMessageListener(SoapService soapService, Session session, MessageProducer producer, Destination deadLetterQueue)
           
 
Method Summary
protected  void checkValidDeadLetterQueue(String reason, Message message)
           
protected  Message createDuplicateMessage(Message message)
           
protected  Destination findReplyToDestination(TextMessage message)
           
 Destination getDeadLetterQueue()
           
 MessageProducer getProducer()
           
 Destination getReplyToDestination()
           
 Session getSession()
           
 SoapService getSoapService()
           
protected  void onException(Exception reason, Message message)
           
 void onMessage(Message message)
           
protected  void onTextMessage(TextMessage message)
           
protected  void sendToDeadLetterQueue(String reason, Message message)
           
 void setDeadLetterQueue(Destination deadLetterQueue)
           
 void setProducer(MessageProducer producer)
           
 void setReplyToDestination(Destination replyToDestination)
           
 void setSession(Session session)
           
 void setSoapService(SoapService soapService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoapEndpointMessageListener

public SoapEndpointMessageListener(SoapService soapService,
                                   Session session,
                                   MessageProducer producer,
                                   Destination deadLetterQueue)
Method Detail

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.