How to integrate Apache Ode with Eclipse to run Bpel

    In this case, we use Bpel designer(eclipse plug-in) to design bpel. If you use eclipse 3.4(Ganymede) edition, you can install Bpel designer official edition directly. If use eclipse 3.5(Galileo), you can reference this article to install it. It recommend to use eclipse 3.5, because it more friendly to edit xml file include XSLT. But I wouldn't show how to design bpel. Assumed that you have learned and have a bpel that can executed.

  1. First, we need to download Tomcat(not installer) and Ode. In this case, we use Tomcat 6.0.29 and Ode 1.3.4. Decompress Tomcat archives to a directory where you choose, and ode is too. Then you can find ode.war file in Ode directory, decompress it and put it into path/to/tomcat/webapps.
  2. Open Eclipse, and select Window -> Preferences -> Server -> Runtime Environment on tool-bar.


  3. Press "Add..." button to add a "Apache Ode 1.x Runtime" runtime server.


  4. Next, we should assign Tomcat and Ode's directory. In this time, Ode should be in Tomcat's webapps directory.


  5. Press "finish" and complete. Then go to Servers's view tab, and add a new runtime server that we create previously. In step c, we can add Bpel project into runtime server.

    a.

    b.

    c.


  6. Finally, start server and type "htto://localhost:8080/ode" on browser to check ode whether started or not.
    If you found that Bpel hasn't deployed successful. There is one issue need to check. If there are sub folders in your Bpel project, you can't add it to runtime server on eclipse (reference step 5.c). That's because when Ode deployed your Bpel project, all the files in sub folder will be moved out. It's will cause "file not fount" errors. In this situation, you can "Export" your Bpel project to path/to/ode/WEB-INF/processes/ . It's can deployed Bpel also.

    We can find deployment information like as follows, it's mean Bpel was deployed successful.

20:05:08,117 INFO  [BpelProcess] Created new process DAO for {http://sample.bpel.org/bpel/so2po}SO2PO-1 (guid=hqejbhcnphr5gq993nj426).
20:05:08,142 INFO  [BpelServerImpl] Registered process {http://sample.bpel.org/bpel/so2po}SO2PO-1.

留言

熱門文章