|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbitronix.tm.resource.jms.JndiXAConnectionFactory
public class JndiXAConnectionFactory
XAConnectionFactory
implementation that wraps another XAConnectionFactory
implementation available
in some JNDI tree.
Constructor Summary | |
---|---|
JndiXAConnectionFactory()
|
Method Summary | |
---|---|
javax.jms.XAConnection |
createXAConnection()
|
javax.jms.XAConnection |
createXAConnection(java.lang.String userName,
java.lang.String password)
|
java.util.Properties |
getExtraJndiProperties()
The extra JNDI environment properties added the the InitialContext 's environment upon creation. |
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 . |
java.lang.String |
getUrlPkgPrefixes()
The Context.URL_PKG_PREFIXES of the JNDI Context used to fetch the XAConnectionFactory . |
protected void |
init()
|
boolean |
isNarrowJndiObject()
Should PortableRemoteObject.narrow(Object, Class) be applied on the object looked up from
JNDI before trying to cast it to XAConnectionFactory ? |
void |
setExtraJndiProperties(java.util.Properties extraJndiProperties)
Set the extra JNDI environment properties added the the InitialContext 's environment upon creation. |
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 |
setNarrowJndiObject(boolean narrowJndiObject)
Set if PortableRemoteObject.narrow(Object, Class) should be applied on the object looked up from
JNDI before trying to cast it to XAConnectionFactory ? |
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 . |
void |
setUrlPkgPrefixes(java.lang.String urlPkgPrefixes)
Set the Context.URL_PKG_PREFIXES 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. This means
all other properties (providerUrl, urlPkgPrefixes, extraJndiProperties...) are then ignored.
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
.
providerUrl
- the Context.PROVIDER_URL
value.public java.lang.String getUrlPkgPrefixes()
Context.URL_PKG_PREFIXES
of the JNDI Context
used to fetch the XAConnectionFactory
.
Context.URL_PKG_PREFIXES
value.public void setUrlPkgPrefixes(java.lang.String urlPkgPrefixes)
Context.URL_PKG_PREFIXES
of the JNDI Context
used to fetch the XAConnectionFactory
.
urlPkgPrefixes
- the Context.URL_PKG_PREFIXES
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.public java.util.Properties getExtraJndiProperties()
InitialContext
's environment upon creation.
public void setExtraJndiProperties(java.util.Properties extraJndiProperties)
InitialContext
's environment upon creation.
extraJndiProperties
- The extra JNDI environment properties.public boolean isNarrowJndiObject()
PortableRemoteObject.narrow(Object, Class)
be applied on the object looked up from
JNDI before trying to cast it to XAConnectionFactory
?
public void setNarrowJndiObject(boolean narrowJndiObject)
PortableRemoteObject.narrow(Object, Class)
should be applied on the object looked up from
JNDI before trying to cast it to XAConnectionFactory
?
narrowJndiObject
- true if the object should be narrowed, false otherwise.protected void init() throws javax.naming.NamingException
javax.naming.NamingException
public javax.jms.XAConnection createXAConnection() throws javax.jms.JMSException
createXAConnection
in interface javax.jms.XAConnectionFactory
javax.jms.JMSException
public javax.jms.XAConnection createXAConnection(java.lang.String userName, java.lang.String password) throws javax.jms.JMSException
createXAConnection
in interface javax.jms.XAConnectionFactory
javax.jms.JMSException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |