简体   繁体   中英

How to run a java program on ibmi server

Is it possible to call a java pgm that is hosted on my ibmi from the pc? I want to create a java program on my pc. The program should create a connection to my ibmi and call a java program hosted on my machine.

After searching in the web i try to find a solution in this forum. is that possible? what are the preferences that make that ?

edit the java program on my ibmi should call a rpg/cobol program to grab some data and return them to the calling java on my pc.

bye jogi

Take a look at the JT400 project...

The IBM Toolbox for Java is a library of Java classes supporting the client/server and internet programming models to a system running IBM i (or i5/OS or OS/400). The classes can be used by Java applets, servlets, and applications to easily access IBM i data and resources.

Charles is right. JT400 is the way to go.

Here is a functional example.

Please provide some feedback if you run in trouble.

May I suggest looking at the answer to the following Stack Overflow post?

Accessing RPG on iSeries from Java

Depending on the situation, it might make more sense to call the RPG program directly from your PC's Java program. Otherwise, execute the CL Java command: JAVA CLASS(my.java.class) PARM('a' 'b' 'c') CLASSPATH('/path/to/jarFile.jar') using the CommandCall class as described in the above mentioned post.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM