If your EIS/EAI system is SAP, you must download some libraries from SAP and must also configure the Application Server to work with the Sun JCA Adapter for SAP, as described in the following sections:
The SAP Java Connector toolkit (SAP JCo) is a middleware component that enables the Sun JCA Adapter for SAP to communicate directly with SAP. This component is required by the SAP BAPI OTD Wizard, which you use when you develop an Enterprise Connector that accesses a Sun JCA Adapter. (See Accessing a Sun JCA Adapter for an EIS/EAI System in Sun Java System Mobile Enterprise Platform 1.0 Developer’s Guide for Enterprise Connectors for details.)
You must be a licensed SAP customer in order to gain access to these SAP libraries.
Log in to the SAP site http://service.sap.com/connectors using your authorized login.
Click SAP Java Connector.
In the left-hand menu, click Tools and Services.
Download the SAP JCo archive file for your operating system.
Unzip the archive file into a directory of your choice.
After you unzip the archive, you will find a JAR file named sapjco.jar. You will also find one or two libraries specific to your operating system (the number varies depending on the version of SAP you are using).
Copy all these files into the Application Server lib directory.
This directory is as-install/lib, where as-install is the directory where you installed the Application Server.
You need to create a connector connection pool and a connector resource for the Sun JCA Adapter for SAP, and then set properties for the connector connection pool. On a two-tier MEP installation, this task must be performed on the Enterprise tier (the second tier).
Create the sappool connection pool.
In a browser, go to http://hostname:4848/ and log in to the Application Server Admin Console as admin.
The default password is adminpass.
For a single-tier installation, hostname is the name of the system where MEP is installed. For a two-tier installation, hostname is the name of the system where the Enterprise tier (the second tier) is installed.
In the tree view, expand Resources, then Connectors, and then select Connector Connection Pools.
Click New.
The New Connector Connection Pool panel appears.
Type sappool in the Name field.
Choose sun-sap-adapter from the Resource Adapter drop-down list.
Click Next.
Click Finish.
Create the jcaps/sap connector resource.
Modify the settings for the sappool connection pool.
In the tree view, expand CAPS, then expand Connector Connection Pools.
Click sappool.
If the sappool connector connection pool does not appear in the tree view, expand another node, then expand Connector Connection Pools once again. You should now see sappool.
Specify Client Connection Settings as indicated in the following table.
Name |
Description |
---|---|
Client Connection Mode |
Choose Automatic if it is not already selected |
Application Server Hostname |
The name of your SAP server |
System Number |
The system number given you by SAP (often 00) |
Client Number |
The client number given you by SAP |
User |
Your SAP user name |
Password |
Your SAP password |
Language |
The language you use for SAP access |
System ID |
The system ID of your SAP installation |
Use the default values for all other settings.
Click Save.
If you are using a 64–bit JDK, add a JVM setting.
In the tree view, select the Application Server node.
Click the JVM Settings tab, then click the JVM Options sub-tab.
Click Add JVM Option.
In the Value field, type -d64.
Click Save.
Click the Restart Required link.
Click Stop Instance.
Restart the Application Server from the command line:
as-install/bin/asadmin start-domain mep |