|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.messenger.SessionFactory
org.apache.commons.messenger.JNDISessionFactory
public class JNDISessionFactory
JNDISessionFactory is a Factory of JMS Session objects
which looks up the ConnectionFactory object from JNDI.
| Field Summary | |
|---|---|
Context |
context
the initial JNDI context used to lookup ConnectionFactory objects |
| Fields inherited from class org.apache.commons.messenger.SessionFactory |
|---|
properties |
| Constructor Summary | |
|---|---|
JNDISessionFactory()
|
|
| Method Summary | |
|---|---|
javax.jms.Connection |
createConnection()
Re-implemented from SessionFactory. |
protected javax.jms.ConnectionFactory |
createConnectionFactory()
Factory method used to create a connection factory. |
protected Context |
createContext()
Factory method used to create a connection factory. |
javax.jms.Session |
createSession(javax.jms.Connection connection)
Re-implemented from SessionFactory. |
Context |
getContext()
Returns the JNDI Context used to lookup JMS ConnectionFactory objects |
String |
getLookupName()
The JNDI Name of the ConnectionFactory |
void |
setContext(Context context)
|
void |
setLookupName(String lookupName)
Sets the JNDI Name of the ConnectionFactory |
| Methods inherited from class org.apache.commons.messenger.SessionFactory |
|---|
addProperty, close, createProperties, createQueueConnection, createServerSessionPool, createSession, createTopicConnection, getAcknowledgeMode, getClientID, getConnection, getConnectionFactory, getPassword, getProperties, getUsername, isTopic, isTransacted, setAcknowledge, setAcknowledgeMode, setClientID, setConnection, setConnectionFactory, setPassword, setProperties, setTopic, setTransacted, setUsername |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public Context context
| Constructor Detail |
|---|
public JNDISessionFactory()
| Method Detail |
|---|
public String getLookupName()
public void setLookupName(String lookupName)
public Context getContext()
throws NamingException
NamingExceptionpublic void setContext(Context context)
protected javax.jms.ConnectionFactory createConnectionFactory()
throws javax.jms.JMSException
createConnectionFactory in class SessionFactoryjavax.jms.JMSException
public javax.jms.Connection createConnection()
throws javax.jms.JMSException
createConnection in class SessionFactoryjavax.jms.JMSException
public javax.jms.Session createSession(javax.jms.Connection connection)
throws javax.jms.JMSException
createSession in class SessionFactoryjavax.jms.JMSException
protected Context createContext()
throws NamingException
NamingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||