Show TOC

Creating Connector Projects in the Developer StudioLocate this document in the navigation 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

  1. Choose the New pushbutton.

  2. Select Start of the navigation path Java EE Next navigation step Connector Project End of the navigation path, 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 Configuration dropdown list. You can also choose Modify to select project facets manually - for example, 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 New to create a new EAR project.

      For more information, see:

      Creating Enterprise Application Projects .

  4. To specify additional configuration settings, choose Next . If you have enabled the Java Persistence facet, choose Next again to configure the facet settings.

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

  5. 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.

    • Choose External Folder to locate libraries outside the Developer Studio.

    • Choose Workspace to locate libraries 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 .

  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.