[jboss-user] [jBPM] - Re: Using jbpm-human-task-war.war instead of DemoTaskService.class

jemmerling do-not-reply at jboss.com
Mon Jan 30 14:22:38 EST 2012


jemmerling [https://community.jboss.org/people/jemmerling] created the discussion

"Re: Using jbpm-human-task-war.war instead of DemoTaskService.class"

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

--------------------------------------------------------------
Although I haven't tried it, I think the simple answer is that you would kill the Demo Task Server. This is the reason:

Looking at the code for the WAR, I can see that it launches an instance of MinaTaskServer. If you look at the code for MinaTaskServer, I believe you will see that it is hard-coded to listen at port 9123. To put this in perspective, I believe this can be considered an example of "by convention" behavior as I believe this port number can be overridden however it doesn't require you to specify it, it will just listen at port 9123 "by convention".

So this seems to all be good, however, I don't think the WAR is a good deployment solution because it creates its own thread which is not managed by the Servlet Container - this could make life unpleasant when wanting to stop and start if using the Admin Console, etc.

Hope this helps!

--JE
--------------------------------------------------------------

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

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/20120130/ebc271dc/attachment.html 


More information about the jboss-user mailing list