2 Replies Latest reply on Oct 20, 2001 9:13 AM by Reji

    publishing multiple messages within an MDB

    Reji Newbie


      I have been using a message driven bean as a JMS consumer. This MDB also acts as a publisher, it
      publishes a series of messages within a loop to another Topic X(which resides on a different m/c).

      Another MDB listens to X and receives these messages.

      The problem i a am facing is that if i publish a single message everything works fine but if i publish a series of messages ,an exception similar to this...

      >[JBossMQService] Rolling back JMS transaction
      >[JBossMQService] XAException: tx=XidImpl [FormatId=257, GlobalId=eng-ganesh//8,
      >BranchQual=] errorCode=XAER_NOTA
      >[JBossMQService] javax.transaction.xa.XAException
      >[JBossMQService] at org.opentools.minerva.jdbc.xa.wrapper.XAResourceImpl.
      >[JBossMQService] at org.jboss.tm.TxCapsule.rollbackResources(TxCapsule.ja
      >[JBossMQService] at org.jboss.tm.TxCapsule.rollback(TxCapsule.java:394)
      >[JBossMQService] at org.jboss.tm.TransactionImpl.rollback(TransactionImpl
      >[JBossMQService] at org.jboss.jms.asf.StdServerSession.run(StdServerSessi
      >[JBossMQService] at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worke
      >[JBossMQService] at java.lang.Thread.run(Thread.java:484)
      >[Container factory] Transaction XidImpl [FormatId=257, GlobalId=eng-ganesh//10,
      >BranchQual=] timed out. status=STATUS_ACTIVE
      >[Default] java.net.SocketException: Connection reset by peer: JVM_recv in socket
      > input stream read
      >[Default] at java.net.SocketInputStream.socketRead(Native Method)
      >[Default] at java.net.SocketInputStream.read(SocketInputStream.java:86)
      >[Default] at java.io.BufferedInputStream.fill(BufferedInputStream.java:186

      is encountered.

      Please note that the two MDB's are on two different machines .

      Reji Mathai