[jboss-user] [jBPM] - Re: Advice on how to set up a network deployment
Andy McC
do-not-reply at jboss.com
Fri Apr 19 09:23:17 EDT 2013
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]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130419/3b986658/attachment.html
More information about the jboss-user
mailing list