5 3 2 JSM from LANSA for IBM i or Windows

Install LANSA on Linux

5.3.2 JSM from LANSA for IBM i or Windows

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:

  • Have you installed the JSM Server on a Linux machine? (JSMDirect is not necessary.)
  • Have you installed the JSM Server licenses?
  • Do you know the IP address of the JSM Server on the Linux machine?
  • Have you installed LANSA on IBM i or Windows?

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)