|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.cocoon.components.jms.JMSConnectionImpl
JMSConnectionManager
instead
public class JMSConnectionImpl
JMSConnection properties container plus utilities.
Configuration:
<jndi-info> <parameter name="" value=""/> <jndi-info>
Other parameters:
topic-factory | (required, no default) |
topic | (required, no default) |
ack-mode | ("dups") |
durable-subscription-id | (optional) |
Field Summary | |
---|---|
protected int |
ackMode
Deprecated. |
protected String |
ackModeName
Deprecated. |
protected TopicConnection |
connection
Deprecated. |
protected Context |
context
Deprecated. |
protected String |
durableSubscriptionID
Deprecated. |
protected TopicSession |
session
Deprecated. |
protected List |
subscribers
Deprecated. |
protected Topic |
topic
Deprecated. |
protected TopicConnectionFactory |
topicConnectionFactory
Deprecated. |
protected String |
topicFactoryName
Deprecated. |
protected String |
topicName
Deprecated. |
Fields inherited from interface org.apache.cocoon.components.jms.JMSConnection |
---|
ROLE |
Constructor Summary | |
---|---|
JMSConnectionImpl()
Deprecated. |
Method Summary | |
---|---|
void |
configure(Configuration conf)
Deprecated. |
void |
dispose()
Deprecated. |
TopicPublisher |
getPublisher()
Deprecated. Get a new TopicPublisher for this connection. |
TopicSession |
getSession()
Deprecated. Get the session associated with this connection. |
void |
initialize()
Deprecated. |
void |
registerListener(MessageListener listener,
String selector)
Deprecated. Register a new TopicListener for this connection. |
protected Context |
setupContext()
Deprecated. Get initial context. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String topicFactoryName
protected String topicName
protected String ackModeName
protected String durableSubscriptionID
protected TopicConnection connection
protected TopicSession session
protected List subscribers
protected Topic topic
protected int ackMode
protected Context context
protected TopicConnectionFactory topicConnectionFactory
Constructor Detail |
---|
public JMSConnectionImpl()
Method Detail |
---|
public void configure(Configuration conf) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
public void initialize() throws Exception
initialize
in interface Initializable
Exception
public void dispose()
dispose
in interface Disposable
public void registerListener(MessageListener listener, String selector) throws CascadingException, JMSException, NamingException
registerListener
in interface JMSConnection
listener
- selector
-
CascadingException
- if the connection was not successfully
initialized, JMSException or NamingException if errors occur during
JMS methods. It is up to the MessageListener to determine how to
handle this failure.
JMSException
NamingException
public TopicPublisher getPublisher() throws JMSException, NamingException
getPublisher
in interface JMSConnection
JMSException
NamingException
public TopicSession getSession() throws NamingException, JMSException
getSession
in interface JMSConnection
NamingException
JMSException
protected Context setupContext() throws NamingException
NamingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |