|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atomikos.jms.AbstractConnectionFactoryBean
public abstract class AbstractConnectionFactoryBean
Copyright © 2006, Atomikos. All rights reserved. Common logic for the connection factory beans.
Field Summary | |
---|---|
protected String |
resourceName_
|
protected String |
xaFactoryJndiName_
|
protected String |
xidFactory_
|
Constructor Summary | |
---|---|
protected |
AbstractConnectionFactoryBean()
|
Method Summary | |
---|---|
protected abstract void |
checkSetup()
|
Reference |
getReference()
|
String |
getResourceName()
Get the resource name. |
String |
getXaFactoryJndiName()
Retrieve the JNDI name where the XAConnectionFactory is expected. |
String |
getXidFactory()
Get the XID format as previously set. |
void |
init()
Initialization method to register the underlying resource for recovery and other init code. |
void |
setResourceName(String name)
Set the unique resource name for this factory (required). |
void |
setXaFactoryJndiName(String name)
Sets the JNDI name of the underlying XAConnectionFactory (optional). |
void |
setXidFactory(String xidFactory)
Set the name of the XID factory to use (optional). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.jms.ConnectionFactory |
---|
createConnection, createConnection |
Field Detail |
---|
protected String resourceName_
protected String xidFactory_
protected String xaFactoryJndiName_
Constructor Detail |
---|
protected AbstractConnectionFactoryBean()
Method Detail |
---|
public void setXaFactoryJndiName(String name)
name
- The JNDI name where the XAConnectionFactory can be found.
It is up to the client to make sure that the name exists and
points to an existing XAConnectionFactory.public String getXaFactoryJndiName()
public void setResourceName(String name)
MQSeries NOTE: For IBM MQSeries, the name should include MQSeries_XA_RMI or the XA routines will not work properly!
name
- The unique resource name.public String getResourceName()
public void setXidFactory(String xidFactory)
xidFactory
- The factory name.public String getXidFactory()
public Reference getReference() throws NamingException
getReference
in interface Referenceable
NamingException
public void init() throws JMSException
JMSException
protected abstract void checkSetup() throws JMSException
JMSException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |