These steps assume that you have the tutorial installed on both of the two systems you are using and that you are able to access the file system of jupiter from earth or vice versa. You will edit the source files to specify the new connection factory. Then you will rebuild and run the clients. Follow these steps.
To edit the source files, follow these steps:
On earth,, open the following file in NetBeans IDE:
tut-install/examples/jms/simple/producer/src/java/Producer.java
Find the following line:
@Resource(lookup = "jms/ConnectionFactory")
Change the line to the following:
@Resource(lookup = "jms/JupiterConnectionFactory")
On jupiter, open the following file inNetBeans IDE:
tut-install/examples/jms/simple/synchconsumer/src/java/SynchConsumer.java
To recompile and repackage the Producer example on earth, right-click the producer project and select Clean and Build.
To recompile and repackage the SynchConsumer example on jupiter, right-click the synchconsumer project and select Clean and Build.
On earth, deploy and run Producer. Follow these steps:
On jupiter, run SynchConsumer. Follow these steps: