JBI Component development (Part 7)

JBI Deployment Module for the LibMapperServiceEngine

1. Build the JBI Deployment Module for the LibMapperServiceEngine

After the build and deployment of the LibMapperServiceEngine on JBI, we need to create the JBI DeploymentPlugin (.nbm) dedicated to the LibMapperServiceEngine.
This specific module will appear on the NetBeans SOA project wizard:

The illustration below shows the NetBeans SOA wizard:



Open in NetBeans 6.1 the JBI DeploymentPlugin [LibMapperServiceEngine] project.


1.1. package libmapperserviceengine.project.wizard.resources:

The package libmapperserviceengine.project.wizard.resources needs to contain the following ressouces files:

- jbi.xml
- semap.properties
- SampleJNICalls.wsdl

The semap.properties file contains the following parameters:

- wsdl=SampleJNICalls
- mapper=libmapper.JNIMapper

The wsdl field must contain the name of the WSDL that describe the interface of the Java library.

The illustration below shows the SampleJNICalls.wsdl file:




The mapper field must contain the name of the specific class that extends the Mapper file. This class will be dynamically loaded by the LibMapperServiceEngine.


The illustration below shows the semap.properties file:




1.2. package libmapperserviceengine.project.wizard

The package libmapperserviceengine.project.wizard contains the following Java class:

- SEPluginProjectWizardIterator.java

- SEPluginProjectWizardIterator:

Edit this class to add the ressource files name to set the following variables on the suArtifacts:
String table.

- String[] suArtifacts = {"semap.properties","SampleJNICalls.wsdl"};

These ressources file will appear later under the LibMapperServiceEngine JBI Module project.

The illustration below shows the suArtifacts String table:




1.3. Build and deploy the plugin


Use the NetBeans JBI DeploymentPlugin [LibMapperServiceEngine] project menu to build the full project.
After the successful build, create the JBI DeploymentPlugin [LibMapperServiceEngine] module NBM plugin.
Now we need to install this new JBI DeploymentPlugin [LibMapperServiceEngine] module NBM plugin into NetBeans 6.1.
Use the NetBeans plugin tool to install the plugin.


The illustration below shows the NetBeans plugin tool wizard:




The illustration below shows the NetBeans plugin tool with the installed JBI DeploymentPlugin [LibMapperServiceEngine]:





At this point the JBI DeploymentPlugin [LibMapperServiceEngine] will appear on the NetBeans SOA wizard that will generate a LibMapperServiceEngine Module.




At this step of development the:

LibMapperServiceEngine is deployed on JBI.
JBI DeploymentPlugin [LibMapperServiceEngine] is available in NetBeans and ready to use.

See Part 8 ...

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Christophe Vaille

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today