TOC Previous Next
Java Bridge configuration
To use the Java Bridge functionality, some additional configuration is required.
| Important: The Java Bridge functionality is available only if the Zend Platform for i5/OS product is installed. It is not contained in Zend Core for i5/OS. |
Main configuration file: javamw.rc
The main configuration file for the Java Bridge support is as follows:
/usr/local/Zend/Platform/bin/javamw.rc
| Restriction: Do not attempt to edit this file using a PC-based editor such as Notepad. This will corrupt the file. We recommend that you use the i5/OS editor (EDTF). |
The main change you will likely have to make to this file is to add entries to the Java classpath. For example, we added the IBM Toolbox for Java as follows:
...
CLASSPATH=$BINDIR/javamw.jar:/jt400/jt400.jar:$CLASSPATH
...
Java Bridge status
After you have installed both Zend Core for i5/OS and Zend Platform for i5/OS successfully, you can verify that the support is active by accessing the following URL in a browser:
http://MYSERVER:89/Zend
Platform/server/index.php?frame=java
Figure 6-1 shows an example of the page that opens.
Figure 6-1 Java Bridge status page
From this screen we can see that our classpath change in fact worked.
We can stop and restart the Java Bridge support from this screen. You can also perform these actions from an i5/OS PASE terminal with the following commands (first change into the correct directory with cd /usr/local/Zend/Platform).
Start *bin/javamw.rc star*t
Stop bin/javamw.rc stop
Restart bin/javamw.rc restart
Status bin/javamw.rc status
TOC Previous Next