Discussion:
[jboss-user] [jBPM] - Advice on how to set up a network deployment
Andy McC
2013-04-18 10:38:12 UTC
Permalink
Andy McC [https://community.jboss.org/people/andymcc] created the discussion

"Advice on how to set up a network deployment"

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

--------------------------------------------------------------
I would like to configure 5.4.0.Final so that I can host JBoss, Guvnor etc on one system (in this case an ordinary Windows 7 PC) and run user consoles on several other systems (mixture of Windows PCs, laptops, BlackBerry PlayBook) over a LAN/WAN.

I will be working primarily from these resources
* A fairly recent community Article https://community.jboss.org/docs/DOC-48369 https://community.jboss.org/wiki/NetworkConfigurationJBPM54withBugFixes
* User Manual Section 11.5 http://docs.jboss.org/jbpm/v5.4/userguide/ch.designer.html#d0e4384 http://docs.jboss.org/jbpm/v5.4/userguide/ch.designer.html#d0e4384

Can I please ask for the following advice:
* Are these two resources sufficient for what I want to do?
* Can I simply set the host to 0.0.0.0 in all cases (as implied by the first reference) or do I need to be more specific?
* Is this Article still relevant? https://community.jboss.org/docs/DOC-21179 https://community.jboss.org/wiki/JBPM-530FinalManualDeploymentGuideForBeginner
* Within designer my WorkDefinitions files (*.wid etc) contain hardcoded references to localhost and 8080. Do I need to go through and edit these by hand or will they be updated to reflect any changes I make?
* Have I missed any other articles that might be useful?
* Is there an easier way to do all of this? :)

Very grateful for any advice the community can offer! In return, if I can get it all to work I'll write it up in a new Article.

Thanks

Andy McC

jBPM 5.4.0.Final, Eclipse Helios (i.e. the default newbie set up), Windows 7 and 8
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Andy McC
2013-04-19 13:23:17 UTC
Permalink
Andy McC [https://community.jboss.org/people/andymcc] created the discussion

"Re: Advice on how to set up a network deployment"

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

--------------------------------------------------------------
OK I seem to have got this all set up and working. Most of the information was available from the links in my original post.

For the record, here's the steps I used:

1) I made the changes to standalone.xml, build.xml, conf/default.jbpm.console.properties and conf/guvnor.preferences.properties outlined in https://community.jboss.org/docs/DOC-48369 Network configuration jBPM5.4 (with Bug Fixes)
** I used host *0.0.0.0*
** I did not apply the JPA2 changes
** ant clean.demo
** ant install.demo

2) In jbpm-human-task-war.war I updated the file WEB-INF/web.xml with the following changes:
* This step was essential to get task forms to work properly

<!-- HornetQ configuration parameters -->
<init-param>
     <param-name>hornetq.host</param-name>
     <param-value>*0.0.0.0*</param-value>
</init-param>
<init-param>
     <param-name>hornetq.port</param-name>
     <param-value>*5153*</param-value>
</init-param>

3) In Drools-Guvnor I changed WorkItemDefinitions file so that references to localhost:8080 became *0.0.0.0*:8080

4) I noticed that ant stop.demo would not shutdown JBoss properly. To do so I modified build.xml as follows (approx line 799 onwards)
* NB This isn't ideal as the password and username data could be visible to other users. But it does what I need for the time being.

<target name="stop.jboss7" depends="check.jboss.version" if="jboss.version.is.7">
<exec executable="${jboss.home}/bin/jboss-cli.bat"
osfamily="windows">
<arg value="*--controller=0.0.0.0:9999*" />
<arg value="*--user=+<username>+*" />
<arg value="*--password=<+password+>*" />
<arg value="*connect,:shutdown,exit*" />
</exec>
<exec executable="${jboss.home}/bin/jboss-cli.sh" osfamily="unix">
<arg value="--connect" />
<arg value="command=:shutdown" />
</exec>
</target>

Hopefully others will find this useful.

Andy McC
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Andy McC
2013-04-19 15:04:43 UTC
Permalink
Andy McC [https://community.jboss.org/people/andymcc] created the discussion

"Re: Advice on how to set up a network deployment"

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

--------------------------------------------------------------
Sorry - I should have added that Step 2 was in line with https://community.jboss.org/docs/DOC-21179 jBPM-5.3.0.Final Manual Deployment Guide for Beginner

Andy McC
--------------------------------------------------------------

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

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