XAConnectionFactory and UIL2 IOE error.
rke21 Aug 15, 2005 2:14 PMHi 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!!