3 Replies Latest reply on Aug 16, 2005 11:25 AM by rke21

    XAConnectionFactory and UIL2 IOE error.

    rke21

      Hi all!

      I'm sending attempting to send a message to a queue from session bean in a cluster. When I use the XAConnection in cluster mode, the destination manage does not deliver any messages to the queue when I use XAConnectionFactory to connect. Appears that the UIL2 is having problems. Have you seen this before? Any suggestions will be greatly appreciated. thank you.

      stacktrace:

      2005-08-15 10:48:59,700 DEBUG [org.jboss.mq.il.uil2.SocketManager] End WriteTask.run
      2005-08-15 10:48:59,701 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] Exiting on IOE
      java.net.SocketException: Socket closed
      at java.net.SocketInputStream.socketRead0(Native Method)
      at java.net.SocketInputStream.read(SocketInputStream.java:129)
      at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
      at org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:67)
      at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2133)
      at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2313)
      at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2380)
      at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2452)
      at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2601)
      at java.io.ObjectInputStream.readByte(ObjectInputStream.java:845)
      at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:281)
      at java.lang.Thread.run(Thread.java:552)
      2005-08-15 10:48:59,702 DEBUG [org.jboss.mq.il.uil2.SocketManager] End ReadTask.run
      2005-08-15 10:48:59,706 DEBUG [org.jboss.mq.il.uil2.SocketManager] End ReadTask.run
      2005-08-15 10:48:59,707 DEBUG [org.jboss.mq.il.uil2.SocketManager] End WriteTask.run
      2005-08-15 10:48:59,708 DEBUG [org.jboss.mq.il.uil2.UILClientILService] Stopping

      My jboss.xml:
      <resource-ref>
      <res-ref-name>jms/XAConnectionFactory</res-ref-name>
      <jndi-name>XAConnectionFactory</jndi-name>
      </resource-ref>
      <resource-env-ref>

      my ejb-jar.xml:
      <resource-ref >
      <res-ref-name>jms/XAConnectionFactory</res-ref-name>
      <res-type>javax.jms.QueueConnectionFactory</res-type>
      <res-auth>Container</res-auth>
      </resource-ref>

      I I switch to single mode and use JmsXA, it would work. But it doesn't work with using XAConnectionFactory in cluster mode. The master is up and running. It does connect the master, the UIL2 seems to fail. Any suggests will be greatly appreciated. Thank you!!

        • 1. Re: XAConnectionFactory and UIL2 IOE error.
          rke21

          Looks like I figured it out. The UIL2 craps out when the the transact is set to true when creating a session. I thought these parameter are suppose to be ignored. but I guess not.

          • 2. Re: XAConnectionFactory and UIL2 IOE error.

            From the spec:
            XAConnectionFactory => For application server direct use only (or those that know what they are doing).

            If you can point me at the example
            (not somebody else's uneducated comment in this forum)
            that says you should bind XAConnectionFactory to a resource-ref
            then I will get that piece of documentation fixed.

            For more information, use search, read FAQs, etc......
            I'm bored of answering this question. It was the first FAQ ever created.
            http://www.jboss.org/index.html?module=bb&op=viewtopic&t=43817

            An while we are on the topic, don't HIJACK:
            http://wiki.jboss.org/wiki/Wiki.jsp?page=BadPostHijack
            If you don't know what you are doing, don't confuse other users with your guesses.

            • 3. Re: XAConnectionFactory and UIL2 IOE error.
              rke21

              Thanks Adrian.

              I could see why can get pretty bored with answering some of the same questions. I understand how you feel and why it's annoying. :)

              I think I mistakenly binded to XAConnectionFactory. The irony of it all, I didn't even need XA service. hahaha. :D After a long search, I couldn't really find any docs on using HA MQ. hahaha. :D I'm just glad I got it working. :) If I find any errors in the documentation, how do I let you know? Thanks for the links! cool deal!! Dude, Thanks for your response!!!!