public interface ConnectionContext
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection
|
void |
createConnection(java.util.Properties props)
Create connection using properties
|
javax.jms.MessageConsumer |
createConsumer(javax.jms.Session session,
java.lang.String topicName)
Creates consumer using session and topic name
|
javax.jms.MessageConsumer |
createConsumer(javax.jms.Session session,
java.lang.String topicName,
java.lang.String selector)
Creates consumer using session, topic name and selector
|
javax.jms.MessageProducer |
createProducer(javax.jms.Session session,
java.lang.String topicName)
Creates producer using session and topic
|
javax.jms.Session |
createSession(int sessionOpts)
Creates session using the specified session opts
|
javax.jms.Session |
createThreadLocalSession(int sessionOpts)
Creates a threadlocal session using session opts
|
boolean |
isConnectionInitialized()
Checks whether connection is initialized or not
|
void |
setExceptionListener(javax.jms.ExceptionListener exceptionListener)
Set the exception Listener
|
void createConnection(java.util.Properties props) throws javax.naming.NamingException, javax.jms.JMSException
props - the properties used for creating jndi contextjavax.jms.JMSExceptionjavax.naming.NamingExceptionvoid setExceptionListener(javax.jms.ExceptionListener exceptionListener) throws javax.jms.JMSException
exceptionListener - javax.jms.JMSExceptionboolean isConnectionInitialized()
javax.jms.Session createSession(int sessionOpts) throws javax.jms.JMSException
sessionOpts - javax.jms.JMSExceptionjavax.jms.MessageConsumer createConsumer(javax.jms.Session session, java.lang.String topicName) throws javax.jms.JMSException
session - topicName - javax.jms.JMSExceptionjavax.jms.MessageConsumer createConsumer(javax.jms.Session session, java.lang.String topicName, java.lang.String selector) throws javax.jms.JMSException
session - topicName - javax.jms.JMSExceptionjavax.jms.MessageProducer createProducer(javax.jms.Session session, java.lang.String topicName) throws javax.jms.JMSException
session - topicName - javax.jms.JMSExceptionjavax.jms.Session createThreadLocalSession(int sessionOpts) throws javax.jms.JMSException
session - topicName - javax.jms.JMSExceptionvoid close()
Copyright © 2017 Apache Software Foundation. All Rights Reserved.