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 Sun GlassFish Mobility Platform 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 Enterprise Server Admin Console as admin.
The default password is adminpass.
For a single-tier installation, hostname is the name of the system where Sun GlassFish Mobility Platform 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 Enterprise Server from the command line:
as-install/bin/asadmin start-domain mep |