330 WebSphere Business Integration Adapters
20.6 Create the back-end application
Our back-end application is a Java application that uses RMI. To create the
back-end application:
1. Ensure that the application configuration properties are correct.
2. In the RedMaintenance folder of the SG246345 directory, open the config file
with a text editor. Example 20-1 shows the contents of the config file.
Example 20-1 The config file settings
# Configuration properties for AppStart
databaseMaxConn=5
databaseURL=jdbc:db2:SG246345
databaseUserName=db2admin
databaseUserPwd=itso4you
jdbcDriverClass=COM.ibm.db2.jdbc.app.DB2Driver
3. Modify the database password to ensure that it is correct.
4. Save and close this file.
5. Start rmiregistry.
6. Open a command window and type:
rmiregistry
Leave this window open in the background.
7. Create a shortcut on the desktop for starting the application engine, as shown
in Figure 20-20 on page 331. Ensure that the start directory is
RedMaintenance.
Note: The rmiregistry command creates and starts a remote object
registry on the specified port on the current host. If the port is omitted, the
registry is started on port 1099. The rmiregistry command produces no
output and is typically run in the background. A remote object registry is a
bootstrap naming service that is used by RMI servers on the same host to
bind remote objects to names. Clients on local and remote hosts can then
look up remote objects and make remote method invocations.
The registry is typically used to locate the first remote object on which an
application needs to invoke methods. That object in turn will provide
application-specific support for finding other objects.