|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.joram.mom.dest.jms.JMSModule
org.objectweb.joram.mom.dest.jms.JMSDistribution
public class JMSDistribution
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.objectweb.joram.mom.dest.jms.JMSModule |
---|
JMSModule.ReconnectionDaemon, JMSModule.StartupDaemon, JMSModule.XARecoverDaemon |
Field Summary | |
---|---|
private static org.objectweb.util.monolog.api.Logger |
logger
|
protected javax.jms.MessageProducer |
producer
Producer object. |
Fields inherited from class org.objectweb.joram.mom.dest.jms.JMSModule |
---|
clientID, cnx, cnxFact, cnxFactName, dest, destName, isXA, jndiFactory, jndiUrl, lock, notUsableMessage, password, reconnectionDaemon, session, usable, userName, xaRes |
Constructor Summary | |
---|---|
JMSDistribution()
|
Method Summary | |
---|---|
void |
distribute(Message message)
Distributes the given message outside of the JORAM server. |
protected void |
doConnect()
Opens a connection with the foreign JMS server and creates the JMS resources for interacting with the foreign JMS destination. |
protected void |
doXAConnect()
Opens a XA connection with the foreign JMS server and creates the XA JMS resources for interacting with the foreign JMS destination. |
Methods inherited from class org.objectweb.joram.mom.dest.jms.JMSModule |
---|
close, connectionDone, init, onException |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.joram.mom.dest.DistributionHandler |
---|
close, init |
Field Detail |
---|
private static final org.objectweb.util.monolog.api.Logger logger
protected javax.jms.MessageProducer producer
Constructor Detail |
---|
public JMSDistribution()
Method Detail |
---|
public void distribute(Message message) throws java.lang.Exception
DistributionHandler
distribute
in interface DistributionHandler
message
- the message to distribute
java.lang.Exception
protected void doConnect() throws javax.jms.JMSException
doConnect
in class JMSModule
javax.jms.JMSException
- If the needed JMS resources could not be created.protected void doXAConnect() throws javax.jms.JMSException
doXAConnect
in class JMSModule
javax.jms.JMSException
- If the needed JMS resources could not be created.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |