Re: Call system API from Java

"D*B" <[email protected]>
Newsgroups gmane.comp.lang.as400.java
Message-ID <29F0BB3F5C9E4F73A80CBEBC981EAD2F@Lisp>
<Pete>
Dieter,

It will be on IBM i.  It's a Java program and I need to call an IBM i API. 
I was thinking along the lines of JNI, I have done some of that in Windows. 
I just needed an example to understand a little more about the needed 
references and libraries (if any).  I could do it in ROG is I had to but the 
Java program was pretty complete...just needed that IBM i API call to finish 
it.  I really don't want to rewrite the thing so I can use RPG to make the 
API call into a system API.

I'll keep poking around.  I know I could go the JT400 route but even those 
API's are wrappers around JNI calls to system services (I think).  I saw 
some code that was using sockets to communicate but I think they were DB 
routines.

Still looking

Pete Helgren
</Pete>

Pete,

jt400 calls are simply adressing some native server programm via sockets. 
Similar to JDBC with some proprietary protocoll. The conversion stuff and 
some other classes are pure Java. If you would tell wich API is needed, 
maybe I've an example.

Dieter 

-- 
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request-+hD5IHI5Xscn3HwCXmMcX9BPR1lH4CV8@public.gmane.org
Before posting, please take a moment to review the archives
at https://archive.midrange.com/java400-l.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.