<!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="http://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: Starting up jBPM 5.1
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/melc">Chris Melas</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/632449#632449">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hello,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>If you take a look inside build.xml at the target start.demo you will see that all it does is to start jboss, h2, human task, eclipse. So in a production/development/staging server environment you will probably use an RDBMS that is always started, so no need for start.h2, you will probably not care if eclipse is started at your server or even on your system you can start eclipse yourself so no need for start.eclipse. Now regarding jboss of course you will always need to start jboss, possibly with your own parameters. Starting jboss through ant i.e. ant start.jboss is like run from bin folder of jboss, however it also sets some parameters (i.e. memory related, bind address etc) so you can either set those parameters or your own parameters in run script of jboss or simply use the ant mechanism which is pretty flexible and straight forward.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>So basically all you need is <strong>ant start.jboss</strong> if running from ant or execute the jboss run script. Regarding the human task you also have to start it because it is a separate java application. So you can either run it localy by calling <strong>ant start.human.task</strong>, or you can wrap it in a web application deploy it on jboss and no need for ant start.human.task. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Please note that if you take the human task web application route, in order to propertly initialize the users, groups and the database tables (the first time), you will have to make an http request to the human task web application when the server starts. This is easily done in ant, for example add the code below inside the start.jboss ant target just before the closing tag </target></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>.......</em></p><p><em><fail if="jboss.timeout" message="jboss did not start within 5 minutes"/></em></p><p><em><echo message="jboss started..." /></em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong><waitfor maxwait="2" maxwaitunit="minute" checkevery="30"</strong></p><p><strong>checkeveryunit="second" timeoutproperty="taskService.timeout"></strong></p><p><strong><span><http url="</span><a class="jive-link-external-small" href="http://$" target="_blank">http://$</a><span>{jboss.bind.address}:yourPort/TaskServiceWebApp"/></span></strong></p><p><strong></waitfor></strong></p><p><strong><fail if="taskService.timeout" message="taskService did not start"/></strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span><get src="</span><a class="jive-link-external-small" href="http://$" target="_blank">http://$</a><span>{jboss.bind.address}:yourPort/TaskServiceWebApp" dest="${install.home}/" /><!--you can even use an http get--></span></p><p><strong><echo message="task service started..." /></strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>So to conclude,</p><p> either call <em>ant start.jboss;ant start.human.task;</em> or <em>bin/run .....; ant start.human.task;</em> or <em>the call to start.human.task can also go inside the run script ....</em></p><p>or make the human task a web app and just call ant start.jboss with the extra code above.</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/632449#632449">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="http://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>