activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <gary.tu...@gmail.com>
Subject Re: How to send one message to a topic in MDB?
Date Wed, 09 Sep 2009 14:24:26 GMT
think that should be resolved, the broker sees a single XA identifier and
jboss sees a single XAResource. So long as the completion occurs on only one
of the threads (as it should) it will work.

2009/9/9 andrewsomesyoung <ayoung@digitalreefinc.com>

>
>
> Gary Tully wrote:
> >
> > Andy, I think you are experiencing
> > https://issues.apache.org/activemq/browse/AMQ-2346 which was recently
> > resolved on trunk. The ended transaction map allows joined contexts to
> > share
> > the outcome of a transaction,
> >
>
> Gary, not knowing the details behind
> https://issues.apache.org/activemq/browse/AMQ-2346, it's not as obvious to
> me that this is the same issue. The problem I am seeing seems pretty
> straightforward: the JBoss transaction code is sending multiple start
> messages to the ActiveMQ XAResource, passing a flag of TMJOIN on the second
> one, as it seems the JTA specification says to do. This behaviour works as
> designed. The ActiveMQ XAResource delegates the start to its
> TransactionContext, which very clearly can not handle TMJOIN or TMRESUME
> flags. (They're commented out in a TODO). The result is both start messages
> are sent over the wire to the ActiveMQ broker, which passes them on to two
> separate threads. If the timing is right, the first thread removes the
> transaction from the TransactionBroker and then the second thread tries to
> access it resulting in the "XA Transaction ... has not been started" error.
>
> If this has been fixed in trunk, then I am excited to hear it.
>
> Andy
> --
> View this message in context:
> http://www.nabble.com/How-to-send-one-message-to-a-topic-in-MDB--tp25325925p25364792.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>


-- 
http://blog.garytully.com

Open Source Integration
http://fusesource.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message