Rest API jars

271 views
Skip to first unread message

Bob Hastings

unread,
Sep 15, 2015, 4:05:29 PM9/15/15
to jBPM Usage
Where can I find the complete list of jars needed to make rest calls using a simple java application?  That is not in a server.

Abhijit Humbe

unread,
Sep 16, 2015, 7:52:22 AM9/16/15
to Bob Hastings, jBPM Usage
Hi
Can you try with below dependencies:

<dependency>
  <groupId>org.kie.remote</groupId>
  <artifactId>kie-remote-jaxb</artifactId>
  <version>6.2.0.Final-redhat-6</version>
 </dependency>
<dependency>
    <groupId>org.kie.remote</groupId>
    <artifactId>kie-remote-client</artifactId>
    <version>6.2.0.Final-redhat-6</version>
</dependency>
<dependency>
   <groupId>org.kie.remote</groupId>
   <artifactId>kie-remote-services</artifactId>
   <version>6.2.0.Final-redhat-6</version>
 </dependency>

Abhijit Humbe

On Wed, Sep 16, 2015 at 1:35 AM, Bob Hastings <hastin...@gmail.com> wrote:
Where can I find the complete list of jars needed to make rest calls using a simple java application?  That is not in a server.

--
You received this message because you are subscribed to the Google Groups "jBPM Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-usage+...@googlegroups.com.
To post to this group, send email to jbpm-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-usage/98d12e61-a515-4233-9f0f-9a15a9c825ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bob Hastings

unread,
Sep 16, 2015, 8:55:08 AM9/16/15
to jBPM Usage, hastin...@gmail.com
Does this mean that I need only three jars? kie-remotes-services, kie-remote-jaxb, kie-remote-client?  I should tell you that I no nothing about maven.  Does this file represent some kind of Maven command I have to run.

What I am seeing is that I at least need the HTTP client jars.  I have written a simple program to get a kie session and task service and I find I at least need http clien probably other jars as well.  Currently I only have kie-api-6.2.0.Final.jar  kie-services-client-6.2.0-20140709.172017-40.jar.  I am wondering if I would be better off just making raw rest calls instead of using the API.

    public static void main( String[] args ) throws Exception {
        // the serverRestUrl should contain a URL similar to
        String url = "http://studiok:8080/jbpm-console";
        String user = "admin";
        String password = "admin";
        

        // Setup the factory class with the necessarry information to
        // communicate with the REST services
        RemoteRestRuntimeEngineFactoryBuilder restSessionFactoryBuilder = RemoteRestRuntimeEngineFactory.newBuilder();
        restSessionFactoryBuilder.addUrl( new URL( url) );
        restSessionFactoryBuilder.addUserName( user );
        restSessionFactoryBuilder.addPassword( password );
        
        RemoteRestRuntimeEngineFactory restSessionFactory = restSessionFactoryBuilder.build();

        // Create KieSession and TaskService instances and use them

        RemoteRuntimeEngine engine = restSessionFactory.newRuntimeEngine();

        KieSession ksession = engine.getKieSession();

        TaskService taskService = engine.getTaskService();

    }

Kris Verlaenen

unread,
Sep 16, 2015, 11:51:16 AM9/16/15
to Bob Hastings, jBPM Usage
You need more than just those 3 jars, because you'll need their dependencies as well, see below for a more precise list (maven would download the dependencies as well if you add a dependency from your project on those 3 jars), but you probably don't want to manually find / add them yourself, consider looking into maven.

If you go REST directly, you don't need any dependencies (but you won't end up with java objects, but json / xml replies, so you might have to do some of the parsing there yourself).  For example:
https://github.com/krisv/jbpm-evaluation-examples/blob/master/remote-java-client/src/main/java/org/jbpm/evaluation/EvaluationExampleREST.java

Kris

  <classpathentry kind="var" path="M2_REPO/org/kie/remote/kie-remote-client/6.2.0-SNAPSHOT/kie-remote-client-6.2.0-SNAPSHOT.jar" sourcepath="M2_REPO/org/kie/remote/kie-remote-client/6.2.0-SNAPSHOT/kie-remote-client-6.2.0-SNAPSHOT-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/codehaus/jackson/jackson-core-asl/1.9.9/jackson-core-asl-1.9.9.jar" sourcepath="M2_REPO/org/codehaus/jackson/jackson-core-asl/1.9.9/jackson-core-asl-1.9.9-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/kie/remote/kie-remote-jaxb/6.2.0-SNAPSHOT/kie-remote-jaxb-6.2.0-SNAPSHOT.jar" sourcepath="M2_REPO/org/kie/remote/kie-remote-jaxb/6.2.0-SNAPSHOT/kie-remote-jaxb-6.2.0-SNAPSHOT-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/kie/kie-api/6.2.0-SNAPSHOT/kie-api-6.2.0-SNAPSHOT.jar" sourcepath="M2_REPO/org/kie/kie-api/6.2.0-SNAPSHOT/kie-api-6.2.0-SNAPSHOT-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-api/1.7.2/slf4j-api-1.7.2.jar" sourcepath="M2_REPO/org/slf4j/slf4j-api/1.7.2/slf4j-api-1.7.2-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/kie/kie-internal/6.2.0-SNAPSHOT/kie-internal-6.2.0-SNAPSHOT.jar" sourcepath="M2_REPO/org/kie/kie-internal/6.2.0-SNAPSHOT/kie-internal-6.2.0-SNAPSHOT-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/mvel/mvel2/2.2.4.Final/mvel2-2.2.4.Final.jar" sourcepath="M2_REPO/org/mvel/mvel2/2.2.4.Final/mvel2-2.2.4.Final-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/com/sun/xml/bind/jaxb-impl/2.2.5/jaxb-impl-2.2.5.jar" sourcepath="M2_REPO/com/sun/xml/bind/jaxb-impl/2.2.5/jaxb-impl-2.2.5-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/codehaus/jackson/jackson-jaxrs/1.9.9/jackson-jaxrs-1.9.9.jar" sourcepath="M2_REPO/org/codehaus/jackson/jackson-jaxrs/1.9.9/jackson-jaxrs-1.9.9-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/codehaus/jackson/jackson-mapper-asl/1.9.9/jackson-mapper-asl-1.9.9.jar" sourcepath="M2_REPO/org/codehaus/jackson/jackson-mapper-asl/1.9.9/jackson-mapper-asl-1.9.9-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/codehaus/jackson/jackson-xc/1.9.9/jackson-xc-1.9.9.jar" sourcepath="M2_REPO/org/codehaus/jackson/jackson-xc/1.9.9/jackson-xc-1.9.9-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/kie/remote/kie-remote-common/6.2.0-SNAPSHOT/kie-remote-common-6.2.0-SNAPSHOT.jar" sourcepath="M2_REPO/org/kie/remote/kie-remote-common/6.2.0-SNAPSHOT/kie-remote-common-6.2.0-SNAPSHOT-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/jboss/resteasy/jaxrs-api/2.3.7.Final/jaxrs-api-2.3.7.Final.jar" sourcepath="M2_REPO/org/jboss/resteasy/jaxrs-api/2.3.7.Final/jaxrs-api-2.3.7.Final-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/jsoup/jsoup/1.7.1/jsoup-1.7.1.jar" sourcepath="M2_REPO/org/jsoup/jsoup/1.7.1/jsoup-1.7.1-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/jboss/spec/javax/jms/jboss-jms-api_1.1_spec/1.0.1.Final/jboss-jms-api_1.1_spec-1.0.1.Final.jar" sourcepath="M2_REPO/org/jboss/spec/javax/jms/jboss-jms-api_1.1_spec/1.0.1.Final/jboss-jms-api_1.1_spec-1.0.1.Final-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/hornetq/hornetq-core-client/2.3.24.Final/hornetq-core-client-2.3.24.Final.jar" sourcepath="M2_REPO/org/hornetq/hornetq-core-client/2.3.24.Final/hornetq-core-client-2.3.24.Final-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/jgroups/jgroups/3.2.13.Final/jgroups-3.2.13.Final.jar" sourcepath="M2_REPO/org/jgroups/jgroups/3.2.13.Final/jgroups-3.2.13.Final-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/hornetq/hornetq-commons/2.3.24.Final/hornetq-commons-2.3.24.Final.jar" sourcepath="M2_REPO/org/hornetq/hornetq-commons/2.3.24.Final/hornetq-commons-2.3.24.Final-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/jboss/logging/jboss-logging/3.1.4.GA/jboss-logging-3.1.4.GA.jar" sourcepath="M2_REPO/org/jboss/logging/jboss-logging/3.1.4.GA/jboss-logging-3.1.4.GA-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/io/netty/netty/3.6.10.Final/netty-3.6.10.Final.jar" sourcepath="M2_REPO/io/netty/netty/3.6.10.Final/netty-3.6.10.Final-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/hornetq/hornetq-journal/2.3.24.Final/hornetq-journal-2.3.24.Final.jar" sourcepath="M2_REPO/org/hornetq/hornetq-journal/2.3.24.Final/hornetq-journal-2.3.24.Final-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/hornetq/hornetq-jms-client/2.3.24.Final/hornetq-jms-client-2.3.24.Final.jar" sourcepath="M2_REPO/org/hornetq/hornetq-jms-client/2.3.24.Final/hornetq-jms-client-2.3.24.Final-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/kie/remote/ws/kie-remote-ws-common/6.2.0-SNAPSHOT/kie-remote-ws-common-6.2.0-SNAPSHOT.jar" sourcepath="M2_REPO/org/kie/remote/ws/kie-remote-ws-common/6.2.0-SNAPSHOT/kie-remote-ws-common-6.2.0-SNAPSHOT-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/jboss/spec/javax/xml/ws/jboss-jaxws-api_2.2_spec/2.0.2.Final/jboss-jaxws-api_2.2_spec-2.0.2.Final.jar" sourcepath="M2_REPO/org/jboss/spec/javax/xml/ws/jboss-jaxws-api_2.2_spec/2.0.2.Final/jboss-jaxws-api_2.2_spec-2.0.2.Final-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-api/2.7.14/cxf-api-2.7.14.jar" sourcepath="M2_REPO/org/apache/cxf/cxf-api/2.7.14/cxf-api-2.7.14-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/codehaus/woodstox/woodstox-core-asl/4.2.0/woodstox-core-asl-4.2.0.jar" sourcepath="M2_REPO/org/codehaus/woodstox/woodstox-core-asl/4.2.0/woodstox-core-asl-4.2.0-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/codehaus/woodstox/stax2-api/3.1.1/stax2-api-3.1.1.jar" sourcepath="M2_REPO/org/codehaus/woodstox/stax2-api/3.1.1/stax2-api-3.1.1-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/apache/ws/xmlschema/xmlschema-core/2.0.3/xmlschema-core-2.0.3.jar" sourcepath="M2_REPO/org/apache/ws/xmlschema/xmlschema-core/2.0.3/xmlschema-core-2.0.3-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/apache/geronimo/specs/geronimo-javamail_1.4_spec/1.7.1/geronimo-javamail_1.4_spec-1.7.1.jar" sourcepath="M2_REPO/org/apache/geronimo/specs/geronimo-javamail_1.4_spec/1.7.1/geronimo-javamail_1.4_spec-1.7.1-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/wsdl4j/wsdl4j/1.6.3/wsdl4j-1.6.3.jar" sourcepath="M2_REPO/wsdl4j/wsdl4j/1.6.3/wsdl4j-1.6.3-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-frontend-simple/2.7.14/cxf-rt-frontend-simple-2.7.14.jar" sourcepath="M2_REPO/org/apache/cxf/cxf-rt-frontend-simple/2.7.14/cxf-rt-frontend-simple-2.7.14-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-core/2.7.14/cxf-rt-core-2.7.14.jar" sourcepath="M2_REPO/org/apache/cxf/cxf-rt-core/2.7.14/cxf-rt-core-2.7.14-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-bindings-soap/2.7.14/cxf-rt-bindings-soap-2.7.14.jar" sourcepath="M2_REPO/org/apache/cxf/cxf-rt-bindings-soap/2.7.14/cxf-rt-bindings-soap-2.7.14-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-databinding-jaxb/2.7.14/cxf-rt-databinding-jaxb-2.7.14.jar" sourcepath="M2_REPO/org/apache/cxf/cxf-rt-databinding-jaxb/2.7.14/cxf-rt-databinding-jaxb-2.7.14-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-transports-http/2.7.14/cxf-rt-transports-http-2.7.14.jar" sourcepath="M2_REPO/org/apache/cxf/cxf-rt-transports-http/2.7.14/cxf-rt-transports-http-2.7.14-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/com/sun/xml/bind/jaxb-xjc/2.2.5/jaxb-xjc-2.2.5.jar" sourcepath="M2_REPO/com/sun/xml/bind/jaxb-xjc/2.2.5/jaxb-xjc-2.2.5-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-frontend-jaxws/2.7.14/cxf-rt-frontend-jaxws-2.7.14.jar" sourcepath="M2_REPO/org/apache/cxf/cxf-rt-frontend-jaxws/2.7.14/cxf-rt-frontend-jaxws-2.7.14-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/xml-resolver/xml-resolver/1.2/xml-resolver-1.2.jar" sourcepath="M2_REPO/xml-resolver/xml-resolver/1.2/xml-resolver-1.2-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/asm/asm/3.3.1/asm-3.3.1.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-bindings-xml/2.7.14/cxf-rt-bindings-xml-2.7.14.jar" sourcepath="M2_REPO/org/apache/cxf/cxf-rt-bindings-xml/2.7.14/cxf-rt-bindings-xml-2.7.14-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-ws-addr/2.7.14/cxf-rt-ws-addr-2.7.14.jar" sourcepath="M2_REPO/org/apache/cxf/cxf-rt-ws-addr/2.7.14/cxf-rt-ws-addr-2.7.14-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-ws-policy/2.7.14/cxf-rt-ws-policy-2.7.14.jar" sourcepath="M2_REPO/org/apache/cxf/cxf-rt-ws-policy/2.7.14/cxf-rt-ws-policy-2.7.14-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/apache/neethi/neethi/3.0.2/neethi-3.0.2.jar" sourcepath="M2_REPO/org/apache/neethi/neethi/3.0.2/neethi-3.0.2-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/ch/qos/logback/logback-classic/1.0.9/logback-classic-1.0.9.jar" sourcepath="M2_REPO/ch/qos/logback/logback-classic/1.0.9/logback-classic-1.0.9-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/ch/qos/logback/logback-core/1.0.9/logback-core-1.0.9.jar" sourcepath="M2_REPO/ch/qos/logback/logback-core/1.0.9/logback-core-1.0.9-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-remote-naming/1.0.8.Final/jboss-remote-naming-1.0.8.Final.jar" sourcepath="M2_REPO/org/jboss/jboss-remote-naming/1.0.8.Final/jboss-remote-naming-1.0.8.Final-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-ejb-client/1.0.13.Final/jboss-ejb-client-1.0.13.Final.jar" sourcepath="M2_REPO/org/jboss/jboss-ejb-client/1.0.13.Final/jboss-ejb-client-1.0.13.Final-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/jboss/marshalling/jboss-marshalling/1.4.10.Final/jboss-marshalling-1.4.10.Final.jar" sourcepath="M2_REPO/org/jboss/marshalling/jboss-marshalling/1.4.10.Final/jboss-marshalling-1.4.10.Final-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/jboss/xnio/xnio-api/3.0.12.GA/xnio-api-3.0.12.GA.jar" sourcepath="M2_REPO/org/jboss/xnio/xnio-api/3.0.12.GA/xnio-api-3.0.12.GA-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/jboss/remoting3/jboss-remoting/3.3.4.Final/jboss-remoting-3.3.4.Final.jar" sourcepath="M2_REPO/org/jboss/remoting3/jboss-remoting/3.3.4.Final/jboss-remoting-3.3.4.Final-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/jboss/marshalling/jboss-marshalling-river/1.4.10.Final/jboss-marshalling-river-1.4.10.Final.jar" sourcepath="M2_REPO/org/jboss/marshalling/jboss-marshalling-river/1.4.10.Final/jboss-marshalling-river-1.4.10.Final-sources.jar"/>
  <classpathentry kind="var" path="M2_REPO/org/jboss/sasl/jboss-sasl/1.0.0.Final/jboss-sasl-1.0.0.Final.jar" sourcepath="M2_REPO/org/jboss/sasl/jboss-sasl/1.0.0.Final/jboss-sasl-1.0.0.Final-sources.jar"/>


--
You received this message because you are subscribed to the Google Groups "jBPM Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-usage+...@googlegroups.com.
To post to this group, send email to jbpm-...@googlegroups.com.

Bob Hastings

unread,
Sep 16, 2015, 3:54:27 PM9/16/15
to jBPM Usage, hastin...@gmail.com
Thanks.  I think I have all of the jars. I need.  Also, since I do not know Maven, I have found this sight useful to get the jars, source and javadocs: https://repository.jboss.org/nexus/content/repositories/releases/org/

Kris Verlaenen

unread,
Sep 21, 2015, 8:43:11 AM9/21/15
to Bob Hastings, jBPM Usage
On Wed, Sep 16, 2015 at 9:54 PM, Bob Hastings <hastin...@gmail.com> wrote:
Thanks.  I think I have all of the jars. I need.  Also, since I do not know Maven, I have found this sight useful to get the jars, source and javadocs: https://repository.jboss.org/nexus/content/repositories/releases/org/

That is a maven repository ;)

So even without knowing it you started using it (although manually, maven can automatically download jars for you, probably worth spending a little time on).

Kris
 

--
You received this message because you are subscribed to the Google Groups "jBPM Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-usage+...@googlegroups.com.
To post to this group, send email to jbpm-...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages