|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.oozie.jms.DefaultConnectionContext
public class DefaultConnectionContext
Field Summary | |
---|---|
protected javax.jms.Connection |
connection
|
protected String |
connectionFactoryName
|
Constructor Summary | |
---|---|
DefaultConnectionContext()
|
Method Summary | |
---|---|
void |
close()
Closes the connection |
void |
createConnection(Properties props)
Create connection using properties |
javax.jms.MessageConsumer |
createConsumer(javax.jms.Session session,
String topicName)
Creates consumer using session and topic name |
javax.jms.MessageConsumer |
createConsumer(javax.jms.Session session,
String topicName,
String selector)
Creates consumer using session, topic name and selector |
javax.jms.MessageProducer |
createProducer(javax.jms.Session session,
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.jms.Connection connection
protected String connectionFactoryName
Constructor Detail |
---|
public DefaultConnectionContext()
Method Detail |
---|
public void createConnection(Properties props) throws NamingException, javax.jms.JMSException
ConnectionContext
createConnection
in interface ConnectionContext
props
- the properties used for creating jndi context
javax.jms.JMSException
NamingException
public boolean isConnectionInitialized()
ConnectionContext
isConnectionInitialized
in interface ConnectionContext
public void setExceptionListener(javax.jms.ExceptionListener exceptionListener) throws javax.jms.JMSException
ConnectionContext
setExceptionListener
in interface ConnectionContext
javax.jms.JMSException
public javax.jms.Session createSession(int sessionOpts) throws javax.jms.JMSException
ConnectionContext
createSession
in interface ConnectionContext
javax.jms.JMSException
public javax.jms.MessageConsumer createConsumer(javax.jms.Session session, String topicName) throws javax.jms.JMSException
ConnectionContext
createConsumer
in interface ConnectionContext
javax.jms.JMSException
public javax.jms.MessageProducer createProducer(javax.jms.Session session, String topicName) throws javax.jms.JMSException
ConnectionContext
createProducer
in interface ConnectionContext
javax.jms.JMSException
public void close()
ConnectionContext
close
in interface ConnectionContext
public javax.jms.Session createThreadLocalSession(int sessionOpts) throws javax.jms.JMSException
ConnectionContext
createThreadLocalSession
in interface ConnectionContext
javax.jms.JMSException
public javax.jms.MessageConsumer createConsumer(javax.jms.Session session, String topicName, String selector) throws javax.jms.JMSException
ConnectionContext
createConsumer
in interface ConnectionContext
javax.jms.JMSException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |