Show TOC

Procedure documentationCreating Connector Projects in the Developer Studio Locate this document in the navigation structure

 

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
  1. Choose the New (New) pushbutton.

  2. Select   Java EE   Connector Project  , then choose Next.

  3. Specify the Connector project settings:

    1. Fill out the Project Name field.

    2. Select SAP Libraries from the Target Runtime dropdown list.

    3. Select version of the Connector module from the J2C Module Version dropdown list.

    4. (Optional) Select a configuration template from the Configurations dropdown list or choose the Modify pushbutton to choose project facets manually. If you do not need the SAP-specific deployment descriptor connector-j2ee-engine.xml, deselect SAP Specific Connector Module.

    5. If you want to add your Connector project to an Enterprise Archive immediately, select the Add project to an EAR checkbox, then select an existing EAR project from the EAR Project Name dropdown list, or choose the New pushbutton to create a new EAR project.

      For more information, see:

      Creating Enterprise Application Projects.

      Assembling and Configuring the Resource Adapter

  4. Choose Next.

  5. If necessary, change the default Source Folder.

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

    For more information about configuring the Java Persistence facet, see Creating JPA Projects in the Developer Studio.

  7. Choose Finish.

Adding Libraries to the Connector
  1. In the Project Explorer, select the connectorModule folder of the Connector project.

  2. In the context menu, choose Properties.

  3. Choose Native Library in the properties tree.

  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 deployment descriptor you want to edit.

  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. You can also use the Source view and edit the XML code directly.