FAQ > PERCobol and Java > PERCobol supports EJBs can you share briefly how this works?

Search the FAQ for entries containing:

PERCobol supports direct creation of Java classes, with Java capabilities. (This is not yet standard Cobol 200x standard, but rather closer to it with a Java capabilities. So single-inheritance and multiple implementation is available, exactly as in straight Java.)

CLASS-ID. name INHERITS "class" IMPLEMENTS "class" ... .
METHOD-ID. name.
DATA ...
PROCEDURE...
END METHOD.

METHOD-ID. name.
END METHOD.

METHOD-ID. name.
END METHOD.
...
END CLASS.

In PERCobol, each program and class may be instantiated multiple separate times. (A separate working-storage is created, for example.)

Object references and INVOKE's are supported in PERCobol. An empty method name in the INVOKE is the constructor.

Last updated on December 28, 2009 by Daniel Myers