Java Reference
In-Depth Information
project/build.properties file and change the location of the javaee.home
property each time you build or run a client on a different system.
1. Start the GlassFish Server on earth .
2. Start the GlassFish Server on jupiter .
3. To create a new connection factory on jupiter , follow these steps:
a. From a command shell on jupiter , go to the
tut-install /examples/jms/simple/producer/ directory.
b. Type the following command:
ant create-local-factory
The create-local-factory target, defined in the build.xml file for
the Producer example, creates a connection factory named jms/Jupiter-
ConnectionFactory .
4. To create a new connection factory on earth that points to the connection
factory on jupiter , follow these steps:
a. From a command shell on earth , go to the
tut-install /examples/jms/simple/producer/ directory.
b. Type the following command:
ant create-remote-factory -Dsys= remote-system-name
Replace remote-system-name with the actual name of the remote system.
The create-remote-factory target, defined in the build.xml file
for the Producer example, also creates a connection factory named jms/
JupiterConnectionFactory . In addition, it sets the AddressList
property for this factory to the name of the remote system.
Additional resources will be created when you deploy the application, if they have not
been created before.
The reason the glassfish-resources.xml file does not specify jms/Jupiter-
ConnectionFactory is that on earth the connection factory requires the Ad-
dressList property setting, whereas on jupiter it does not. You can examine the
targets in the build.xml file for details.
Search WWH ::




Custom Search