I tried the example from http://www.jboss.org/wiki/Wiki.jsp?page=QueueExample

I get this output, but I get an other exception in my server.log.

C:\slet>java -cp .;jbossall-client.jar Client
  | Creating jndi context - alternatively use a jndi.properties
  | Looking up queue
  | Looking up connection factory
  | Creating connection
  | Creating session
  | Creating sender
  | Creating message
  | Sending message
  | Creating receiver
  | Try to receive message, it will not work
  | You have to start the connection before receiving messages
  | This receive will work
  | Got message: SpyTextMessage {
  | Header {
  |    jmsDestination  : QUEUE.testQueue
  |    jmsDeliveryMode : 2
  |    jmsExpiration   : 0
  |    jmsPriority     : 4
  |    jmsMessageID    : ID:1-11126226935151
  |    jmsTimeStamp    : 1112622693515
  |    jmsCorrelationID: null
  |    jmsReplyTo      : null
  |    jmsType         : null
  |    jmsRedelivered  : false
  |    jmsProperties   : {}
  |    jmsPropReadWrite: false
  |    msgReadOnly     : true
  |    producerClientId: ID:1
  | }
  | Body {
  |    text            :hello
  | }
  | }

Error from server.log:

2005-04-04 15:51:33,375 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin 
ReadTask.run
  | 2005-04-04 15:51:33,375 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin 
WriteTask.run
  | 2005-04-04 15:51:33,375 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created 
ObjectOutputStream
  | 2005-04-04 15:51:33,375 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created 
ObjectInputStream
  | 2005-04-04 15:51:33,421 DEBUG 
[org.jboss.mq.il.uil2.ServerSocketManagerHandler] Setting up the UILClientIL 
Connection
  | 2005-04-04 15:51:33,421 DEBUG 
[org.jboss.mq.il.uil2.ServerSocketManagerHandler] The UILClientIL Connection is 
set up
  | 2005-04-04 15:51:33,671 DEBUG 
[org.jboss.mq.il.uil2.ServerSocketManagerHandler] Exiting on IOE
  | java.io.EOFException
  |     at 
java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2670)
  |     at java.io.ObjectInputStream.readByte(ObjectInputStream.java:864)
  |     at 
org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:285)
  |     at java.lang.Thread.run(Thread.java:595)
  | 2005-04-04 15:51:33,671 DEBUG [org.jboss.mq.il.uil2.SocketManager] End 
ReadTask.run
  | 2005-04-04 15:51:33,671 DEBUG [org.jboss.mq.il.uil2.SocketManager] End 
WriteTask.run

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3872562#3872562

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3872562


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to