Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Programming Guide


Running J2EE COBOL clients

You can use OO syntax in a COBOL program to implement a Java 2 Platform, Enterprise Edition (J2EE) client. You can, for example, invoke methods on enterprise beans that run in the WebSphere® for z/OS environment.

Before you run a COBOL J2EE client, you must set the Java system property java.naming.factory.initial to access WebSphere naming services. For example:

export COBJVMINITOPTIONS
="-Djava.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFactory"

Example: J2EE client written in COBOL


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)