org.objectweb.joram.client.connector
Class OutboundTopicConnection
java.lang.Object
org.objectweb.joram.client.connector.OutboundConnection
org.objectweb.joram.client.connector.OutboundTopicConnection
- All Implemented Interfaces:
- javax.jms.Connection, javax.jms.TopicConnection
- public class OutboundTopicConnection
- extends OutboundConnection
- implements javax.jms.TopicConnection
An OutboundTopicConnection
instance is a handler for a
physical PubSub connection to an underlying JORAM server, allowing a
component to transparently use this physical connection possibly within
a transaction (local or global).
Method Summary |
javax.jms.ConnectionConsumer |
createConnectionConsumer(javax.jms.Topic topic,
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.TopicSession |
createTopicSession(boolean transacted,
int acknowledgeMode)
Returns the unique authorized JMS session per connection wrapped in
an OutboundTopicSession instance. |
Methods inherited from class org.objectweb.joram.client.connector.OutboundConnection |
cleanup, close, cnxEquals, createConnectionConsumer, createDurableConnectionConsumer, createSession, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.jms.TopicConnection |
createDurableConnectionConsumer |
Methods inherited from interface javax.jms.Connection |
close, createConnectionConsumer, createSession, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop |
createTopicSession
public javax.jms.TopicSession createTopicSession(boolean transacted,
int acknowledgeMode)
throws javax.jms.JMSException
- Returns the unique authorized JMS session per connection wrapped in
an
OutboundTopicSession
instance.
- Specified by:
createTopicSession
in interface javax.jms.TopicConnection
- Throws:
javax.jms.IllegalStateException
- If the handle is invalid.
javax.jms.JMSException
- Generic exception.
createConnectionConsumer
public javax.jms.ConnectionConsumer createConnectionConsumer(javax.jms.Topic topic,
java.lang.String messageSelector,
javax.jms.ServerSessionPool sessionPool,
int maxMessages)
throws javax.jms.JMSException
- Forbidden call on an application or component's outbound connection,
throws a
IllegalStateException
instance.
- Specified by:
createConnectionConsumer
in interface javax.jms.TopicConnection
- Throws:
javax.jms.JMSException
Copyright ? 2005 Scalagent - All rights reserved