In this scenario, you will use LANSA functions on an IBM i or Windows machine to send commands to the JSM Server on Linux.
Before You Begin
Before you begin to test the JSM Server, check the following:
Step 1. Start JSM
Use the strjsm script to start a JSM instance.
If the JSM Server does not start, or stops after a few seconds, refer to Troubleshooting in the Installing LANSA on Windows Guide.
Note the Process Identifier used.
Step 2. Review Example Code
For code that you can use to test the Java Service Manager (JSM), refer to Appendix B. Client Application Examples in the LANSA Integrator Guide. A good starting point is Open/Close Example which tests that you have correctly started and configured the JSM.
Make sure that you use the IP address or host name of the Linux JSM Server in your JSM_OPEN command. For example:
USE BUILTIN(JSM_OPEN) WITH_ARGS('linuxhost:4560') TO_GET(#JSMSTS #JSMMSG)