org.bss.esb.transport.jms
Class JmsHandler

java.lang.Object
  extended byorg.bss.esb.transport.jms.JmsHandler
All Implemented Interfaces:
java.io.Serializable, TransportHandler

public class JmsHandler
extends java.lang.Object
implements TransportHandler

TransportHandler implementation for sending messages to a JMS Queue.

Version:
1.0
Author:
Balwinder Sodhi
See Also:
Serialized Form

Field Summary
 java.lang.String connectionFactory
          JNDI name of JMS queue connection factory
 java.lang.String destination
          JNDI name of JMS queue
 
Constructor Summary
JmsHandler()
           
 
Method Summary
 java.lang.String getConnectionFactory()
           
 java.lang.String getDestination()
           
 void setConnectionFactory(java.lang.String connectionFactory)
           
 void setDestination(java.lang.String destination)
           
 void transportMessage(java.lang.Object message)
          Sends the JMS message to the configued JMS queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connectionFactory

public java.lang.String connectionFactory
JNDI name of JMS queue connection factory


destination

public java.lang.String destination
JNDI name of JMS queue

Constructor Detail

JmsHandler

public JmsHandler()
Method Detail

getConnectionFactory

public java.lang.String getConnectionFactory()
Returns:

setConnectionFactory

public void setConnectionFactory(java.lang.String connectionFactory)
Parameters:
connectionFactory -

getDestination

public java.lang.String getDestination()
Returns:

setDestination

public void setDestination(java.lang.String destination)
Parameters:
destination -

transportMessage

public void transportMessage(java.lang.Object message)
                      throws TransportException
Sends the JMS message to the configued JMS queue.

Specified by:
transportMessage in interface TransportHandler
Parameters:
message - The message to be sent.
Throws:
TransportException - Thrown if the send fails.
See Also:
TransportHandler.transportMessage(Object)


Copyright © 2005 Balwinder Sodhi. All Rights Reserved.