Re: Questions for ActiveMQResourceAdapter.getXAResources method in ActiveMQ RA module

2011-01-06 Thread Ivan
I opened a JIRA https://issues.apache.org/jira/browse/AMQ-3121 and attach a patch, it is for connection creation optimization. For the timing issue, I will try to create a case later. Thanks. 2011/1/6 Gary Tully > that sounds like a reasonable optimization that can avoid the need to > create a c

Re: Questions for ActiveMQResourceAdapter.getXAResources method in ActiveMQ RA module

2011-01-06 Thread Gary Tully
that sounds like a reasonable optimization that can avoid the need to create a connection if the RA is deployed in local transaction only mode (ie: uses the regular non xa connection factory) One thought, it may be a good idea to produce a simple junit test case that demonstrates the timing issue w

Re: Questions for ActiveMQResourceAdapter.getXAResources method in ActiveMQ RA module

2011-01-05 Thread Ivan
Could anyone help to give some comments ? Thanks. 2010/12/28 Ivan > Hi, > I am learning the ActiveMQ RA module, and could not understand some > codes in the getXAResources method of ActiveMQResourceAdapter class, please > help to give some comments, thanks. > a. The implementation class

Questions for ActiveMQResourceAdapter.getXAResources method in ActiveMQ RA module

2010-12-27 Thread Ivan
Hi, I am learning the ActiveMQ RA module, and could not understand some codes in the getXAResources method of ActiveMQResourceAdapter class, please help to give some comments, thanks. a. The implementation class of XAResource is org.apache.activemq.TransactionContext, and it holds a referen