| Method from org.jboss.mq.SpyXAConnectionFactory Detail: |
public XAConnection createXAConnection() throws JMSException {
try
{
return new SpyXAConnection(factory);
}
catch (JMSException e)
{
throw e;
}
catch (Exception e)
{
throw new SpyJMSException("Failed to create XAConnection", e);
}
}
|
public XAConnection createXAConnection(String userName,
String password) throws JMSException {
try
{
if (userName == null)
throw new SpyJMSException("Username is null");
if (password == null)
throw new SpyJMSException("Password is null");
return new SpyXAConnection(userName, password, factory);
}
catch (JMSException e)
{
throw e;
}
catch (Exception e)
{
throw new SpyJMSException("Failed to create XAConnection", e);
}
}
|
public XAQueueConnection createXAQueueConnection() throws JMSException {
return (XAQueueConnection) createXAConnection();
}
|
public XAQueueConnection createXAQueueConnection(String userName,
String password) throws JMSException {
return (XAQueueConnection) createXAConnection(userName, password);
}
|
public XATopicConnection createXATopicConnection() throws JMSException {
return (XATopicConnection) createXAConnection();
}
|
public XATopicConnection createXATopicConnection(String userName,
String password) throws JMSException {
return (XATopicConnection) createXAConnection(userName, password);
}
|
public Reference getReference() throws NamingException {
return new Reference("org.jboss.mq.SpyXAConnectionFactory", new org.jboss.mq.referenceable.ObjectRefAddr("DCF",
factory),
"org.jboss.mq.referenceable.SpyConnectionFactoryObjectFactory", null);
}
|