Java Reference
In-Depth Information
getJMSDeliveryMode(): PERSISTENT
getJMSRedelivered(): false
getJMSType(): null
getJMSExpiration(): 0
getJMSPriority(): 4
Properties: null
Message:
Class: com.sun.messaging.jmq.jmsclient.MessageImpl
getJMSMessageID():
ID:13-128.149.71.199(8c:34:4a:1a:1b:b8)-40883-1255980521767
getJMSTimestamp(): 1255980521767
getJMSCorrelationID(): null
JMSReplyTo: null
JMSDestination: PhysicalQueue
getJMSDeliveryMode(): PERSISTENT
getJMSRedelivered(): false
getJMSType(): null
getJMSExpiration(): 0
getJMSPriority(): 4
Properties: null
The first message is the TextMessage , and the second is the non-text control
message.
8. Go to the synchconsumer directory.
9. Run the SynchConsumer client to consume the messages:
appclient -client client-jar/synchconsumerClient.jar queue
The output of the client looks like this (along with some additional output):
Click here to view code image
Destination type is queue
Reading message: This is message 1 from producer
Running JMS Clients on Multiple Systems
JMS clients that use the GlassFish Server can exchange messages with each other when
they are running on different systems in a network. The systems must be visible to each
other by name (the UNIX host name or the Microsoft Windows computer name) and must
both be running the GlassFish Server.
Search WWH ::




Custom Search