After you create the adapter application project, you must add
the required external dependencies into the project. SAP Java™ Connector
(SAP JCo) interface is an external dependency that the adapter has for connecting
to the SAP software application. The adapter uses this interface to make calls
to the SAP native interfaces.
Before you begin
Use
WebSphere Integration Developer to add the SAP Java Connector (SAP JCo) interface
to the imported project. All external libraries and JAR files must first be
copied to the appropriate locations on WebSphere Process Server:
- Copy the dependencies libraries (*.dll, *.so, and *.o files) to the <WPS_INSTALL>\bin directory.
- (Windows® users)
Install the msvcp71.dll and msvcr71.dll files
in the Windows system path. See SAP Note 684106 on the SAP
Service Marketplace Web site (www.service.sap.com) for additional details.
The DLL files are contained in the attachments section of the SAP Note along
with instructions on how to install them. You must have a valid user name
and password for the SAP Service Marketplace to view the SAP Note.
- Copy sapjco.jar to the <WPS_INSTALL>\lib directory.
Where <WPS_INSTALL> represents the WebSphere® Process
Server installation directory.
Why and when to perform this task
Follow these steps to add the sapjco.jar file to the project.
Steps for this task
- In the J2EE perspective of WebSphere Integration Developer, click Connector
Properties.
- Right-click CWYAP_SAPAdapter and then click Properties. The Java Build Path window appears.
- In the left-side pane of the Java Build Path window,
click Java Build Path.
- In the right-side pane, click the Libraries tab
and then click Add External Jars.
- Choose the file sapjco.jar and click Open. The file sapjco.jar should now appear in the list of JARs
and class folders in the build path.
- Click OK. The sapjco.jar file
is now part of your connector project and appears in the Project
Explorer window of WebSphere Integration Developer.
What to do next
The next step is to configure the service, a process that includes
configuring the adapter and creating the business objects that the adapter
will exchange with the SAP software application.