How - to - Guide: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f013e82c-e56e-2910-c3ae-c602a67b9...
The procedure given in the above guide describes the module development using SAP NetWeaver Developer Studio (NWDS) with Local components. With Local components / projects the process is simple to develop and deploy on the server for use. But, in various companies there are many security reasons due to which they do not allow sharing of the SDM Password for deployment of components. In such cases, the development and deployment of components is always through the Software Component Development Tracks or NetWeaver Development Infrastructure (NWDI). With NWDI, the projects are called as Development Components (DC).
The step - by - step process of development of Adapter Module using NWDI can be stated as:
o Expose Module Library Jars as Public Parts
o Activating the External Library DC
o Creating the J2EE EJB Module DC.
o Adding Module Libraries (API Public Part) as Used DC
o Adding the code to the module
o Building the EJB DC
o Activating the EJB DC
o Creating the J2EE Enterprise Application DC.
o Adding Module Libraries (SDA Public Part) as Used DC
o Adding library and services references to the EAR
o Building the EAR DC
o Activating and Deploying the EAR DC
The steps that additional and / or differ from the steps given in How to Guide are rendered in BOLD.
The following section describes in details all the steps that are important from the NWDI perspective of Development of the J2EE Module.
Before starting up with the actual process of development it is important that the user is aware of:
For development of the Adapter Module we need to use the following seven JAR files provided in PI Server:
When the development is done using local projects, these JAR files are added directly to the classpath of the EJB Project. But, when it comes to development with NWDI, these required external JAR files need to be complied in a different DC Type called as External Library.
The steps to create an External Library DC:
The Steps for creating reusable Public Parts of the DC:
The concept of EJB and the coding in the EJB for the Adapter Module are the same, even when DC development is done on track. The creation of the EJB DC and adding and EJB to the DC is the same except creation of Activity for the EJB DC as an extra step.
The way to include the external JARs differs with EJB DC Development.
The EJB DC id built from the Context Menu option Development Component à Build DC.
The procedure to "Activate" the EJB DC is similar to that of activating the External Library DC.
Note: Make sure that the steps: to add code to the business method of EJB, replacing the comments in the bean for the Remote, Home, Local and Local Home files and adding the JNDI name to the bean are performed as given in the original How - to - Guide.
An Enterprise Application DC is required to wrap the EJB Module DC for deployment. Here, again the steps for creating, Building and Deploying the EAR DC will be similar to that of the EJB DC and External Library DC. We will not go into the details of it.
The only extra step in the EAR DC development is the addition of the public part of the External Library DC.
Once the EAR DC is deployed on the runtime PI server of the track, the J2EE Adapter Module is ready to use in the communication channel.
The procedure to use the module in the business scenario does not differ at all from what is given in the How - to - Guide.