EBI External Notifications API iSeries/AS400 RPGLE Example
There are times we need to execute Business Process Scripts from outside of EBI, on a iSeries/AS400 RPGLE based system. The information below is shipped and documented by EXTOL. This documentation is circa 2003 but is still relevant today.
One big difference between iSeries and the other OS's (Linux and Windows) is the additional RPGLE Source Code. The RPGLE program will set-up the JAVA call each time, to include the correct environment variables such as classpath.
Shipped EXTOL Items
- EBI_Notifications_2.x.zipEXTOL Shipped EBI Notifications Zip File
-
#!/bin/bash
HOME=$HOME:/home/ebiowner
NOTIF=$NOTIF:$HOME:$HOME/ebi_notification/notification/conf:$HOME/ebi_notification/notification/lib:$HOME/ebi_notification/notification/lib/EBI.jar:$HOME/ebi_notification/notification/lib/dom4j.jar:$HOME/ebi_notification/notification/lib/log4j.jar:$HOME/ebi_notification/notification/lib/jbossall-client.jar:$HOME/ebi_notification/notification/lib/jboss-j2ee.jar
clear
export JAVA_HOME=/home/jdk1.6.0_02/bin
export PATH=$PATH:$JAVA_HOME
echo Running EBI Notification API
java -cp $NOTIF SendEbiItmNotif "notification.api" " " 100 "Event Triggered"
echo Finished running SendEbiItmNotif program
jndi.properties
Below is the shipped jndi.properties file. The bold item should be updated if the .bat does not reside on the same machine as the EXTOL Server.
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces java.naming.provider.url=jnp://localhost:1099
SendEbiItmNotif.java
Below is the java source code that is shipped with the EBI_Notifications_2.x.zip
RPGLE: EBIEVTCAL
Below is the RPGLE source code that is shipped with the EBI_Notifications_2.x.zip
By: Sean Hoppe on