org.objectweb.fractal.bf.connectors.jms
Class JmsModule

java.lang.Object
  extended by org.objectweb.fractal.bf.connectors.jms.JmsModule

public class JmsModule
extends Object

The JMS module is used by the stub and the skeleton to retrieve various JMS objects on the JNDI and to initiate the JMS sessions necessary to interact with them.


Field Summary
protected  Logger log
          Logger for this object.
 
Constructor Summary
JmsModule(JmsAttributes jmsAttributes)
           
 
Method Summary
 void close()
           
 javax.jms.Destination getDestination()
           
 javax.jms.Connection getJmsCnx()
           
 javax.jms.Destination getResponseDestination()
           
 javax.jms.Session getResponseSession()
           
 javax.jms.Session getSession()
           
 void start()
          Retrieves or creates JMS objects on the JNDI and starts a JMS connection and two sessions to interact with them.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected Logger log
Logger for this object.

Constructor Detail

JmsModule

public JmsModule(JmsAttributes jmsAttributes)
Method Detail

getJmsCnx

public javax.jms.Connection getJmsCnx()

getSession

public javax.jms.Session getSession()

getDestination

public javax.jms.Destination getDestination()

getResponseSession

public javax.jms.Session getResponseSession()

getResponseDestination

public javax.jms.Destination getResponseDestination()

start

public void start()
           throws javax.jms.JMSException,
                  NamingException
Retrieves or creates JMS objects on the JNDI and starts a JMS connection and two sessions to interact with them.

Throws:
javax.jms.JMSException
NamingException

close

public void close()
           throws javax.jms.JMSException
Throws:
javax.jms.JMSException


Copyright © 2007-2011 OW2 Consortium. All Rights Reserved.