|
Java™ by example!
|
|
|
How do I send a message to a JMS queue?
I used openjms to develop this example. Download it, start up the server (startup.sh/bat) and create a queue testqueue (admin.sh/bat). The following example sends a TextMessage to the testqueue queue in PERSISTENT delivery mode, meaning that the JMS server will store the message on secondary storage to prevent loosing the message with server failures or crashes. The message stays there until delivered to all the consumers. Main.java:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|