Java Reference
In-Depth Information
6. In the Projects tab, right-click the project and select Build.
To Deploy and Run the Clients for the Asynchronous Receive Example Using NetBeans IDE
1. Run the AsynchConsumer example:
a. Right-click the asynchconsumer project and select Properties.
b. Select Run from the Categories tree.
c. In the Arguments field, type the following:
topic
d. Click OK.
e. Right-click the project and select Run.
The client displays the following lines and appears to hang:
Destination type is topic
To end program, type Q or q, then <return>
2. Now run the Producer example:
a. Right-click the producer project and select Properties.
b. Select Run from the Categories tree.
c. In the Arguments field, type the following:
topic 3
d. Click OK.
e. Right-click the project and select Run.
The output of the client looks like this:
Click here to view code image
Destination type is topic
Sending message: This is message 1 from producer
Sending message: This is message 2 from producer
Sending message: This is message 3 from producer
In the other tab, the AsynchConsumer client displays the following:
Click here to view code image
Destination type is topic
To end program, type Q or q, then <return>
Reading message: This is message 1 from producer
Search WWH ::




Custom Search