[Messaging, JMS & JBossMQ] - Re: XA Recovery of messages sent to a Topic
by adrian@jboss.org
"mmusgrov" wrote :
| This is a problem for TM recovery since the XAResource a for temporary topic queue does not return XAResource.XA_RDONLY for the prepare phase. Thus when the TM calls recover on the resource no xids are returned and hence the transaction can never be recovered.
|
I don't understand this? If JBossMQ doesn't return the XID then the TM
must assume it was committed.
anonymous wrote :
| Could anyone hazzard a guess as to how much effort would be involved in resolving this issue.
It would however be a good optimization to return read only in this case.
(Read Only i s an optimization which is why the behaviour you describe is not a bug).
The PersistenceManager knows whether
it wrote anything to the transaction log (database).
i.e. it could do org.jboss.mq.pm.Tx.checkPersisted()
but unfortunately the ServerIL has no way to return this information to the client.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151501#4151501
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151501
18 years, 2 months
[Messaging, JMS & JBossMQ] - Re: MDB login for topic subscriber
by maralcbr
hi Adrian,
Thanks for your respose.
Our problem is that we are running a cluster - this problem just happens with the second node of the cluster - the mdb/pool from the first loaded server connects fine, but the second loaded server gives that client id message.
We could solve the issue with a hand from Brian Stanberry, giving a login/client id on the jboss command line. But although it fixes the problem, it seems a horrible solution.
Analysing your answer, as the mdb is not a ha-singleton, it is loaded on both servers. Then, either if we put the pool size to one, we will have one connection on each server which will bring the same issue.
I understood that if we remove the client-id it will work fine. The client-id configuration is not necessary?
Thank in advance.
Regards,
Marcelo
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151494#4151494
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151494
18 years, 2 months