Java Reference
In-Depth Information
4. Select the Open as Main Project check box.
5. Click Open Project.
6. In the Projects tab, right-click the project and select Build.
7. Run the Producer client, sending one message to the queue:
a. Right-click the producer project and select Properties.
b. Select Run from the Categories tree.
c. In the Arguments field, type the following:
queue
d. Click OK.
e. Right-click the project and select Run.
The output of the client looks like this:
Destination type is queue
Sending message: This is message 1 from producer
8. Run the MessageBrowser client. Right-click the messagebrowser pro-
ject and select Run.
The output of the client looks something like this:
Click here to view code image
Message:
Text: This is message 1 from producer
Class: com.sun.messaging.jmq.jmsclient.TextMessageImpl
getJMSMessageID():
ID:12-128.149.71.199(8c:34:4a:1a:1b:b8)-40883-1255980521747
getJMSTimestamp(): 1129062957611
getJMSCorrelationID(): null
JMSReplyTo: null
JMSDestination: PhysicalQueue
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-1255980521747
Search WWH ::




Custom Search