Call RMI from database
Recently I tried to call SAP BAPI program from oracle database, I did some searches and I found that we can do this using RMI server easily.
I used book “Oracle database programing using java and web services” section 4.4 “SAP Java Connector: Accessing the SAP System from the Oracle Database”
I followed the steps in this example using IBM AIX Version 5.3 as RMI server, we have database 11g Enterprise Edition Release 11.2.0.3.0 already installed in this server.
I did the following:-
1- Extracted the SapJco sapjco21P_10-10002239 in AIX server.
2- Install java6 in this AIX server.
3- Used it to compile classes SapBapiCallerInterface.java, SapBapiCaller.java, SapBapiCallerRmiServer.java and SapBapiCallerClient.java.