« UK Workshops | Main | Software Performance Engineering »

Invoking BPEL from Java Revisited

Calling BPEL from Java - a quicker approach


Having finally got around to installing the new JDeveloper build I decided to have at look at the new web services proxy generation. Streets ahead of the old 10.1.2 way of generating web services. It made me look again at calling BPEL from Java. Just by pointing JDeveloper at the WSDL of the BPEL process to be invoked I was able to generate a proxy to call the process from Java, it also generated classes to marshal and unmarshal the parameters to/from XML messages, so even the XML generation was taken care of. In fact this was quicker and easier than calling BPEL using the Java API.


So why would I ever use the Java API?


Reasons for Using the Java API


  • The Java API uses RMI to invoke the process and this is potentially faster than calling it via SOAP.

  • The Java API makes it easier to tweak the way the process is called because it understands the options available.

  • The Java API allows access to full functionality of the BPEL Process manager, not just the process being invoked.

  • Reasons for Invoking from Java using Web Service Proxy


  • Easier to generate and manipulate the document as a Java bean rather than having a seperate step to do the mapping.

  • Amount of code the developer writes is probably less.

  • Easy to use the wizard to set up a callback web service.

  • My Favorite New Feature in JDeveloper 10.1.3


    Years ago I used an editor called "oced" - Occam Editor - to edit Occam code. Occam was a parallel language used to program the Inmos transputer. My favorite part of the editor was the ability to elide parts of the code to make it easier to see the big picture. Well this ability has now come to modern IDEs, including JDeveloper


    Picture of JDeveloper
    I can hide a function or a comment, making it easier to look at the big picture. I love it, easy to please aren't I!

    Post a comment

    (If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

    About This Entry

    This page contains a single entry from the blog posted on October 7, 2005 12:59 AM.

    The previous post in this blog was UK Workshops.

    The next post in this blog is Software Performance Engineering.

    Many more can be found on the main index page or by looking through the archives.

    Powered by
    Movable Type and Oracle