I installed JBoss 4.0.3(and did not change configuration),
and downloaded sample JMS program "jms_tutorial-1_3_1.zip"
form http://java.sun.com/products/jms/tutorial/.

I sent 3 messages by executing SimpleQueueSender
and received them by executing SimpleQueueReceiver
as following:

1. execute 3 DOS window(Command prompt)
2. run JBoss on DOS window 1
3. execute "java SimpleQueueReceiver queue/testQueue"
4. execute "java SimpleQueueSender queue/testQueue 3"

The result is below:
$ java SimpleQueueSender queue/testQueue 3
Queue name is queue/testQueue
Sending message: This is message 1
Sending message: This is message 2
Sending message: This is message 3

$ java SimpleQueueReceiver queue/testQueue
Queue name is queue/testQueue
Reading message: This is message 3
Reading message: This is message 1
Reading message: This is message 2

Why the order of receiving message is different from 
the order of sending one?

When I executed SimpleQueueSender first
and executed SimpleQueueReceiver second,
the result is same order between sending and receiving.

Is it Bug or JBoss specification?
Please tell me the cause and the way of solving.

BTW, this sample program work well on
Sun Java System Application Server 2005Q2.

My environment:
OS: Windows XP SP2(RHEL WS 3.0, too)
Java: J2SE 1.5.0_05
JBoss: 4.0.3

jndi.properties:
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=jnp://localhost:1099
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces  


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

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


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to