|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbitronix.tm.resource.jms.JndiXAConnectionFactory
XAConnectionFactory implementation that wraps another XAConnectionFactory implementation available
in some JNDI tree.
© Bitronix 2005, 2006, 2007
| Constructor Summary | |
JndiXAConnectionFactory()
|
|
| Method Summary | |
javax.jms.XAConnection |
createXAConnection()
|
javax.jms.XAConnection |
createXAConnection(java.lang.String userName,
java.lang.String password)
|
java.lang.String |
getInitialContextFactory()
The Context.INITIAL_CONTEXT_FACTORY of the JNDI Context used to fetch the XAConnectionFactory. |
java.lang.String |
getName()
The JNDI name under which the XAConnectionFactory is available. |
java.lang.String |
getProviderUrl()
The Context.PROVIDER_URL of the JNDI Context used to fetch the XAConnectionFactory. |
java.lang.String |
getSecurityCredentials()
The Context.SECURITY_CREDENTIALS of the JNDI Context used to fetch the XAConnectionFactory. |
java.lang.String |
getSecurityPrincipal()
The Context.SECURITY_PRINCIPAL of the JNDI Context used to fetch the XAConnectionFactory. |
protected void |
init()
|
void |
setInitialContextFactory(java.lang.String initialContextFactory)
Set the Context.INITIAL_CONTEXT_FACTORY of the JNDI Context used to fetch the XAConnectionFactory.
|
void |
setName(java.lang.String name)
Set the JNDI name under which the XAConnectionFactory is available. |
void |
setProviderUrl(java.lang.String providerUrl)
Set the Context.PROVIDER_URL of the JNDI Context used to fetch the XAConnectionFactory.
|
void |
setSecurityCredentials(java.lang.String securityCredentials)
Set the Context.SECURITY_CREDENTIALS of the JNDI Context used to fetch the XAConnectionFactory.
|
void |
setSecurityPrincipal(java.lang.String securityPrincipal)
Set the Context.SECURITY_PRINCIPAL of the JNDI Context used to fetch the XAConnectionFactory.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JndiXAConnectionFactory()
| Method Detail |
public java.lang.String getInitialContextFactory()
Context.INITIAL_CONTEXT_FACTORY of the JNDI Context used to fetch the XAConnectionFactory.
Context.INITIAL_CONTEXT_FACTORY value.public void setInitialContextFactory(java.lang.String initialContextFactory)
Context.INITIAL_CONTEXT_FACTORY of the JNDI Context used to fetch the XAConnectionFactory.
If not set, the Context is created without the environment parameter, using the default constructor.
initialContextFactory - the Context.INITIAL_CONTEXT_FACTORY value.public java.lang.String getProviderUrl()
Context.PROVIDER_URL of the JNDI Context used to fetch the XAConnectionFactory.
Context.PROVIDER_URL value.public void setProviderUrl(java.lang.String providerUrl)
Context.PROVIDER_URL of the JNDI Context used to fetch the XAConnectionFactory.
If not set, the Context is created without the environment parameter, using the default constructor.
providerUrl - the Context.PROVIDER_URL value.public java.lang.String getSecurityPrincipal()
Context.SECURITY_PRINCIPAL of the JNDI Context used to fetch the XAConnectionFactory.
Context.SECURITY_PRINCIPAL value.public void setSecurityPrincipal(java.lang.String securityPrincipal)
Context.SECURITY_PRINCIPAL of the JNDI Context used to fetch the XAConnectionFactory.
If Context.INITIAL_CONTEXT_FACTORY and Context.PROVIDER_URL are not set, this value is ignored.
securityPrincipal - the Context.SECURITY_PRINCIPAL value.public java.lang.String getSecurityCredentials()
Context.SECURITY_CREDENTIALS of the JNDI Context used to fetch the XAConnectionFactory.
Context.SECURITY_CREDENTIALS value.public void setSecurityCredentials(java.lang.String securityCredentials)
Context.SECURITY_CREDENTIALS of the JNDI Context used to fetch the XAConnectionFactory.
If Context.INITIAL_CONTEXT_FACTORY and Context.PROVIDER_URL are not set, this value is ignored.
securityCredentials - the Context.SECURITY_CREDENTIALS value.public java.lang.String getName()
XAConnectionFactory is available.
public void setName(java.lang.String name)
XAConnectionFactory is available.
name - the JNDI name.
protected void init()
throws javax.naming.NamingException
javax.naming.NamingException
public javax.jms.XAConnection createXAConnection()
throws javax.jms.JMSException
createXAConnection in interface javax.jms.XAConnectionFactoryjavax.jms.JMSException
public javax.jms.XAConnection createXAConnection(java.lang.String userName,
java.lang.String password)
throws javax.jms.JMSException
createXAConnection in interface javax.jms.XAConnectionFactoryjavax.jms.JMSException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||