Very first step is installing GlassFish ESB v2 GA (Nov 2008, Stable & Released) which also includes netbeans 6.1 ide & glassfish v2. (https://open-esb.dev.java.net/Downloads.html)
Tutorial on http://www.netbeans.org/kb/61/soa/synchsample.html is very straightforward..
Now it is time to create a composite application from scratch.. The steps are:
- create a sample web service to invoke from the following process. I used a random number generator..
- create New Project/SOA/Bpel Module
- create New Project/SOA/Composite Application
- right click composite app and add created bpel module as new jbi module for that app.
- create a Bpel process in Bpel module.
- create a Wsdl (abstract) in Bpel module.
- add PartnerLink to your bpel file with the type in the wsdl., the wsdl is automatically imported by the Bpel process.
- add receive and reply elements to be pointed by that partnerlink.
- copy the wsdl of the outer ws to bpel module. do not forget to copy all dependent files such as xsd s and update the location definitions in wsdl.
- add wsdl import by file.
- create a partnerlink for that wsdl in bpel file. this creates a wrapper wsdl for the outer wsdl and automatically adds them to the main wsdl of the process.
- do not forget to replace the soap location as 9080 in the main wsdl of the process.
- create a binding and a service for the main wsdl. otherwise, you can not test them via test node of the composite app.
- deploy the composite app.
- test the process via the test node in the composite app.
Btw, i really liked OpenESB.. It provides a compact environment for web service development and orchestration.. Deployment and testing the process is very very easy. (Testing the deployed process in Eclipse Bpel + Apache ODE killed me before, but maybe it is my unskillfulness, so i say this out of the record :)) ) I liked the robustness and user friendliness of the Netbeans Bpel designer. Deleting elements from the process or moving the elements does not lead to problems..
That is all for now :)
Edit on 25.06.2009 11:12 : I supposed that full netbeans ide download does not provide me with open esb, but i was wrong (due to wrong download:( ) So, netbeans (with all option) from http://www.netbeans.org/downloads/start.html?platform=linux&lang=en&option=all&version=6.5.1 also supports open esb..
Edit on 26.06.2009 11.16: This is also a step-by-step tutorial http://www.netbeans.org/kb/61/soa/helloworldca.html
Hiç yorum yok:
Yorum Gönder