Provides you with instructions that guide you through the process of generating a JSP client for the AccessBooks Java interface,
and deploying it to your JBoss application server.
You generate a JSP client from the service interface file that contains your defined operations, and use this generated client
to access the deployed Java interface. For an EJB to access a COBOL service running on an enterprise server, you must have
the EJB and a
Micro Focus resource adapter running on an application server.
Generate a JSP client
Enterprise Developer requires that client applications running on UNIX systems are built using the
Single Executable File target type. When the main project uses a target type other than
Single Executable File as does the ProgramEJB project (which uses the
All Native Library Files target type), you must generate the client applications into a separate project.
- From the Eclipse IDE, open the COBOL perspective as follows:
- Click
Open Perspective
.
- On the
Open Perspective dialog box, select
COBOL, and then click
Open.
- From the
COBOL Explorer, right-click the
AccessBooks Java Service; then select
Generate Client from the context menu.
The Console tells you when the client has generated successfully.
Note: If the
Console is not visible:
- Click the
Console tab.
- On the icon bar, click the down arrow associated with
Display Selected Console
.
- Click
Service Interfaces Console.
Deploy the JSP client and resource adapter to JBoss
Before you can run your JSP client, you must first deploy the resource adapter to JBoss.
- From the
Files window or at a terminal, copy the
AccessBooks.ear file, located in your project's
repos/AccessBooks.deploy directory, to the
$JBOSS_HOME/standalone/deployments directory.
- Copy the
mfcobol-notx.rar resource adapter file from the
$COBDIR/javaee/javaee7/jboss-dir directory, where
jboss-dir represents the directory name for your installed version of JBoss, to your
$JBOSS_HOME/standalone/deployments directory.