|
Joram ${version} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.joram.client.connector.OutboundConnection
An OutboundConnection
instance is a handler for a physical
connection to an underlying JORAM server, allowing a component to
transparently use this physical connection possibly within a transaction
(local or global).
Method Summary | |
void |
cleanup()
close all session. |
void |
close()
Requests to close the physical connection. |
boolean |
cnxEquals(java.lang.Object obj)
returns true if the
parameter is a Connection instance sharing the same
proxy identifier and connection key. |
javax.jms.ConnectionConsumer |
createConnectionConsumer(javax.jms.Destination destination,
java.lang.String messageSelector,
javax.jms.ServerSessionPool sessionPool,
int maxMessages)
Forbidden call on an application or component's outbound connection, throws a IllegalStateException instance. |
javax.jms.ConnectionConsumer |
createDurableConnectionConsumer(javax.jms.Topic topic,
java.lang.String subscriptionName,
java.lang.String messageSelector,
javax.jms.ServerSessionPool sessionPool,
int maxMessages)
Forbidden call on an application or component's outbound connection, throws a IllegalStateException instance. |
javax.jms.Session |
createSession(boolean transacted,
int acknowledgeMode)
Returns the unique authorized JMS session per connection wrapped in an OutboundSession instance. |
java.lang.String |
getClientID()
Forbidden call on an application or component's outbound connection, throws a IllegalStateException instance. |
javax.jms.ExceptionListener |
getExceptionListener()
Forbidden call on an application or component's outbound connection, throws a IllegalStateException instance. |
javax.jms.ConnectionMetaData |
getMetaData()
Delegates the call to the wrapped JMS connection. |
void |
setClientID(java.lang.String clientID)
Forbidden call on an application or component's outbound connection, throws a IllegalStateException instance. |
void |
setExceptionListener(javax.jms.ExceptionListener listener)
Forbidden call on an application or component's outbound connection, throws a IllegalStateException instance. |
void |
start()
Delegates the call to the wrapped JMS connection. |
void |
stop()
Forbidden call on an application or component's outbound connection, throws a IllegalStateException instance. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public void setClientID(java.lang.String clientID) throws javax.jms.JMSException
IllegalStateException
instance.
setClientID
in interface javax.jms.Connection
javax.jms.JMSException
public void setExceptionListener(javax.jms.ExceptionListener listener) throws javax.jms.JMSException
IllegalStateException
instance.
setExceptionListener
in interface javax.jms.Connection
javax.jms.JMSException
public javax.jms.Session createSession(boolean transacted, int acknowledgeMode) throws javax.jms.JMSException
OutboundSession
instance.
createSession
in interface javax.jms.Connection
javax.jms.IllegalStateException
- If the handle is invalid.
javax.jms.JMSException
- Generic exception.public java.lang.String getClientID() throws javax.jms.JMSException
IllegalStateException
instance.
getClientID
in interface javax.jms.Connection
javax.jms.JMSException
public javax.jms.ConnectionMetaData getMetaData() throws javax.jms.JMSException
getMetaData
in interface javax.jms.Connection
javax.jms.IllegalStateException
- If the handle is invalid.
javax.jms.JMSException
- Generic exception.public javax.jms.ExceptionListener getExceptionListener() throws javax.jms.JMSException
IllegalStateException
instance.
getExceptionListener
in interface javax.jms.Connection
javax.jms.JMSException
public void start() throws javax.jms.JMSException
start
in interface javax.jms.Connection
javax.jms.IllegalStateException
- If the handle is invalid.
javax.jms.JMSException
- Generic exception.public void stop() throws javax.jms.JMSException
IllegalStateException
instance.
stop
in interface javax.jms.Connection
javax.jms.JMSException
public javax.jms.ConnectionConsumer createConnectionConsumer(javax.jms.Destination destination, java.lang.String messageSelector, javax.jms.ServerSessionPool sessionPool, int maxMessages) throws javax.jms.JMSException
IllegalStateException
instance.
createConnectionConsumer
in interface javax.jms.Connection
javax.jms.JMSException
public javax.jms.ConnectionConsumer createDurableConnectionConsumer(javax.jms.Topic topic, java.lang.String subscriptionName, java.lang.String messageSelector, javax.jms.ServerSessionPool sessionPool, int maxMessages) throws javax.jms.JMSException
IllegalStateException
instance.
createDurableConnectionConsumer
in interface javax.jms.Connection
javax.jms.JMSException
public void close() throws javax.jms.JMSException
close
in interface javax.jms.Connection
javax.jms.IllegalStateException
- If the handle is invalid.
javax.jms.JMSException
- Generic exception.public boolean cnxEquals(java.lang.Object obj)
true
if the
parameter is a Connection
instance sharing the same
proxy identifier and connection key.
public void cleanup()
public java.lang.String toString()
|
Joram ${version} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |