Saturday 17 September 2011

Creating a Composite Application Project



Creating a Composite Application Project
A BPEL Module project is not directly deployable. You must first add a BPEL Module project, as a JBI module, to a Composite Application project. You can then deploy the Composite Application project. Deploying the project makes the service assembly available to the application server and enables its service units to run.
To Create a New Composite Application Project
1. Choose File > New Project (Ctrl-Shift-N).
2. In the Categories list choose Service Oriented Architecture, in the Projects list choose Composite Application, and click Next.
3. In the Name and Location page, change the project name to HelloWorldApplication, and specify the location of project files.
4. To set the new Composite Application the main project as main, leave the Set as Main Project checkbox selected, and click Finish.
5. To add the BPEL Module as a JBI module to the Composite Application project, right-click the new Composite Application and choose Add JBI Module.
The Select Project dialog box opens.
6. Select the HelloWorld project you created earlier and click Add Project JAR Files.
The Select Project dialog box closes and the HelloWorld.jar file is added to the JBI Modules node of the HelloWorldApplication Composite Application
Building and Deploying the Composite Application Project
Building a project compiles the BPEL source file and packages the BPEL file and web service artifacts, including WSDL and XSD files, into a JAR archive. Deploying the project compiles the files in the Composite Application project, packages the compiled BPEL and related web service artifacts (including WSDL and XSD files) into an archive, and deploys them to the Application Server.
To Build and Deploy the Composite Application Project
1. Right-click the Composite Application project's node, and choose Build.
When the build is complete the Output window reports Build Successful. If the Output window is not visible, choose Window -> Output -> Output.
2. Right-click the Composite Application project's node, and choose Deploy.
3. Deployment has succeeded when you see a Build successful message in the GlassFish tab of the Output window.
4. Open the Services window and expand Servers -> GlassFish V2 -> JBI -> Service Assemblies to see your new deployed Service Assembly.
If you do not see the deployed project, right-click the Service Assemblies node and choose Refresh.

0 comments:

Post a Comment