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

    publishing multiple messages within an MDB

    Reji Newbie

      Hi,

      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.
      >rollback(XAResourceImpl.java:210)
      >[JBossMQService] at org.jboss.tm.TxCapsule.rollbackResources(TxCapsule.ja
      >va:1539)
      >[JBossMQService] at org.jboss.tm.TxCapsule.rollback(TxCapsule.java:394)
      >[JBossMQService] at org.jboss.tm.TransactionImpl.rollback(TransactionImpl
      >.java:88)
      >[JBossMQService] at org.jboss.jms.asf.StdServerSession.run(StdServerSessi
      >on.java:156)
      >[JBossMQService] at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worke
      >r.run(PooledExecutor.java:642)
      >[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]
      >[Default] at java.net.SocketInputStream.read(SocketInputStream.java:86)
      >[Default]
      >[Default] at java.io.BufferedInputStream.fill(BufferedInputStream.java:186
      >)
      >[Default]


      is encountered.


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


      Reji Mathai