<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Re: Advice on how to set up a network deployment
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/andymcc">Andy McC</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/809286#809286">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>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.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>For the record, here's the steps I used:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="text-align: start;">1) I made the changes to standalone.xml, build.xml, conf/default.jbpm.console.properties and conf/guvnor.preferences.properties outlined in <a class="jive-link-wiki-small" href="https://community.jboss.org/docs/DOC-48369">Network configuration jBPM5.4 (with Bug Fixes)</a></p><ol><ul><li style="text-align: start;">I used host <span style="color: #ff0000;"><strong>0.0.0.0</strong></span></li><li style="text-align: start;">I did not apply the JPA2 changes</li><li style="text-align: start;">ant clean.demo</li><li style="text-align: start;">ant install.demo</li></ul></ol><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="text-align: start;">2) In jbpm-human-task-war.war I updated the file WEB-INF/web.xml with the following changes:</p><ul><li style="text-align: start;">This step was essential to get task forms to work properly</li></ul><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="padding-left: 60px;">&lt;!-- HornetQ configuration parameters --&gt;</p><p style="padding-left: 60px;">&lt;init-param&gt;</p><p style="padding-left: 60px;">&#160;&#160;&#160;&#160; &lt;param-name&gt;hornetq.host&lt;/param-name&gt;</p><p style="padding-left: 60px;">&#160;&#160;&#160;&#160; &lt;param-value&gt;<strong style="color: #ff0000;">0.0.0.0</strong>&lt;/param-value&gt;</p><p style="padding-left: 60px;">&lt;/init-param&gt;</p><p style="padding-left: 60px;">&lt;init-param&gt;</p><p style="padding-left: 60px;">&#160;&#160;&#160;&#160; &lt;param-name&gt;hornetq.port&lt;/param-name&gt;</p><p style="padding-left: 60px;">&#160;&#160;&#160;&#160; &lt;param-value&gt;<span style="color: #ff0000;"><strong>5153</strong></span>&lt;/param-value&gt;</p><p style="padding-left: 60px;">&lt;/init-param&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="text-align: start;">3) In Drools-Guvnor I changed WorkItemDefinitions file so that references to localhost:8080 became <span style="color: #ff0000;"><strong>0.0.0.0</strong></span>:8080</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="text-align: start;">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)</p><ul><li style="text-align: start;">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.</li></ul><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="padding-left: 30px;">&lt;target name="stop.jboss7" depends="check.jboss.version" if="jboss.version.is.7"&gt;</p><p style="padding-left: 60px;">&lt;exec executable="${jboss.home}/bin/jboss-cli.bat"</p><p style="padding-left: 90px;">osfamily="windows"&gt;</p><p style="padding-left: 90px;">&lt;arg value="<strong style="color: #ff0000;">--controller=0.0.0.0:9999</strong>" /&gt;</p><p style="padding-left: 90px;">&lt;arg value="<strong style="color: #ff0000;">--user=<em>&lt;username&gt;</em></strong>" /&gt;</p><p style="padding-left: 90px;">&lt;arg value="<span style="color: #ff0000;"><strong>--password=&lt;<em>password</em>&gt;</strong></span>" /&gt;</p><p style="padding-left: 90px;">&lt;arg value="<strong style="color: #ff0000;">connect,:shutdown,exit</strong>" /&gt;</p><p style="padding-left: 60px;">&lt;/exec&gt;</p><p style="padding-left: 60px;">&lt;exec executable="${jboss.home}/bin/jboss-cli.sh" osfamily="unix"&gt;</p><p style="padding-left: 90px;">&lt;arg value="--connect" /&gt;</p><p style="padding-left: 90px;">&lt;arg value="command=:shutdown" /&gt;</p><p style="padding-left: 60px;">&lt;/exec&gt;</p><p style="padding-left: 30px;">&lt;/target&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="text-align: start;">Hopefully others will find this useful.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="text-align: start;">Andy McC</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/809286#809286">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>