Show TOC Start of Content Area

Procedure documentation Creating Connector Projects in the Developer Studio  Locate the document in its SAP Library structure

Use

Connector components (resource adapters) allow Java EE components to communicate with non-Java EE enterprise components, and vice versa.

In the SAP NetWeaver Developer Studio, you create connector components using Connector Projects.

Procedure

Creating a Connector Project

Crea...

       1.      Choose FileNewProject… from the main menu.

       2.      Select J2EE Connector Project, then choose Next.

       3.      Enter the Connector Project settings as required.

                            a.      Choose SAP Libraries as the Target Runtime.

                            b.      Choose SAP Connector Project as the Configurations.

                            c.      To add the Connector Project to an Enterprise Application Project, select the Add project to an EAR checkbox, then select a project from the EAR Project Name dropdown list.

                            d.      Choose Next.

       4.      If necessary, change the default project facets. If you do not need the SAP-specific deployment descriptor connector-j2ee-engine.xml, deselect SAP Specific Connector Module.

       5.      Choose Next.

       6.      If necessary, change the default project directory.

       7.      If you have enabled the Java Persistence facet, choose Next to configure the facet settings.

More information about configuring the Java Persistence facet: Creating JPA Projects in the Developer Studio

       8.      Choose Finish.

Adding Libraries to the Connector

...

       1.      Select the connectorModule folder of the Connector Project in the Project Explorer.

       2.      In the context menu, choose Properties.

       3.      Choose Native Library.

       4.      In the Location path, specify the directory where the libraries are located.

       Use External Folder if the libraries are located outside the Developer Studio.

       Use Workspace if their location is within the Developer Studio workspace.

       5.      Choose Apply, then choose OK.

Editing the Deployment Descriptors

...

       1.      In the connectorModule/META-INF directory of the Connector Project, select the relevant deployment descriptor.

       2.      In the context menu, choose Open withXML Editor.

       3.      Using the context menu in the Design view of the XML Editor, add the necessary elements to the descriptor, and save the changes.

End of Content Area