1 Reply Latest reply on Oct 4, 2011 8:59 AM by Steve L Walker

    Invocation API or Java Client Libraries

    Abhiram88 Level 1

      Hi All,


      I want to invoke my short/long lived processes through my java code.


      Now, There are two ways to achieve this as i know .


      1. Invocation API (which I am using currently now)

      2. java client libraries


      Now my question is whether one can use java client libraries to invoke workbench processes through java code?

      If yes, is it better than Invocation API ?




        • 1. Re: Invocation API or Java Client Libraries
          Steve L Walker Level 5



          You can invoke any service defined to LC (there are several exceptions for good reasons) whether they are out-of-the-box services or applications you have built yourself.


          In my opinion, your preference for invocation should be based upon the best fit for your existing Java classes. That's the beauty of the LC APIs. They give you some flexibility. The invocation APIs are nice for dealing with documents (PDF and native file formats). However, if your Java class(es) use Web Services then use the SOAP endpoint to call the LC process, for example. If performance is an issue and the Java class(es) run on the same host as LC, then use EJB.