Java 类javax.jms.XAJMSContext 实例源码

项目:pooled-jms    文件:JmsPoolXAConnectionFactory.java   
@Override
protected XAJMSContext createProviderContext(String username, String password, int sessionMode) {
    if (connectionFactory instanceof ConnectionFactory) {
        if (username == null && password == null) {
            return ((XAConnectionFactory) connectionFactory).createXAContext();
        } else {
            return ((XAConnectionFactory) connectionFactory).createXAContext(username, password);
        }
    } else {
        throw new javax.jms.IllegalStateRuntimeException("connectionFactory should implement javax.jms.ConnectionFactory");
    }
}
项目:pooled-jms    文件:XAConnectionPoolTest.java   
public XAJMSContext createXAContext() {
    return null;
}
项目:pooled-jms    文件:XAConnectionPoolTest.java   
public XAJMSContext createXAContext(String userName, String password) {
    return null;
}
项目:activemq-artemis    文件:ActiveMQRAConnectionFactoryImpl.java   
@Override
public XAJMSContext createXAContext() {
   return createXAContext(null, null);
}
项目:activemq-artemis    文件:ActiveMQRASessionFactoryImpl.java   
@Override
public XAJMSContext createXAContext() {
   incrementRefCounter();

   return new ActiveMQRAXAJMSContext(this, threadAwareContext);
}
项目:activemq-artemis    文件:ActiveMQConnectionForContextImpl.java   
@Override
public XAJMSContext createXAContext() {
   refCounter.increment();

   return new ActiveMQXAJMSContext(this, threadAwareContext);
}
项目:activemq-artemis    文件:ActiveMQConnectionFactory.java   
@Override
public XAJMSContext createXAContext() {
   return createXAContext(user, password);
}
项目:tomee    文件:TomEEXAConnectionFactory.java   
@Override
public XAJMSContext createXAContext() {
    return new XAJMSContextImpl(this, Session.SESSION_TRANSACTED, userName, password);
}
项目:tomee    文件:TomEEXAConnectionFactory.java   
@Override
public XAJMSContext createXAContext(String userName, String password) {
    return new XAJMSContextImpl(this, Session.SESSION_TRANSACTED, userName, password);
}
项目:org.ops4j.pax.jms    文件:ConnectionFactoryAdapter.java   
@Override
public XAJMSContext createXAContext() {
    return doCallInTcclRuntimeException(obtainXaTargetConnectionFactory()::createXAContext);
}
项目:org.ops4j.pax.jms    文件:ConnectionFactoryAdapter.java   
@Override
public XAJMSContext createXAContext(String username, String password) {
    return doCallInTcclRuntimeException(() -> obtainXaTargetConnectionFactory().createXAContext(username, password));
}
项目:activemq-artemis    文件:ActiveMQConnectionForContext.java   
XAJMSContext createXAContext();