[jboss-user] [jBPM] - Re: Start jBPM Application

Laura delli Paoli do-not-reply at jboss.com
Wed Aug 29 08:11:19 EDT 2012


Laura delli Paoli [https://community.jboss.org/people/lauradp] created the discussion

"Re: Start jBPM Application"

To view the discussion, visit: https://community.jboss.org/message/756728#756728

--------------------------------------------------------------
Thanks, Marcelo!
My question is about that I need to run the following main to have the application working. When I experienced HornetQ I added the project to the server and it was added to the deploy folder. 
I'd love (I don't know if it's a nonsense) to have the application starting (e.g. waiting for requests) on server startup.

public static final void main(String[] args) throws Exception {
         startUp();
         // load up the knowledge base
         KnowledgeBase kbase = readKnowledgeBase();
         StatefulKnowledgeSession ksession = JBPMHelper.newStatefulKnowledgeSession(kbase);
         // start a new process instance
         ksession.startProcess("com.sample.bpmn.hello");
         System.out.println("Process started ...");
     }
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/756728#756728]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120829/cdc92a45/attachment.html 


More information about the jboss-user mailing list