Bug 805638

Summary: jBPM Console ignores HT service host and port configuration
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Jiri Locker <jlocker>
Component: jBPM ConsoleAssignee: Kris Verlaenen <kverlaen>
Status: VERIFIED --- QA Contact: Jiri Locker <jlocker>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: BRMS 5.3.0.GACC: kverlaen, lpetrovi
Target Milestone: ER6   
Target Release: BRMS 5.3.0.GA   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
server.log none

Description Jiri Locker 2012-03-21 17:45:55 UTC
Created attachment 571796 [details]
server.log

Description of problem:
In a scenario where jbpm-human-task.war is configured to start the HT service on a different host and port than the defaults (localhost:9123), the jBPM console is unable to connect to the task service.

Although it is possible to configure the task service address in gwt-console-server.war/WEB-INF/classes/jbpm.console.properties, the console crashes on the first access if the task service is not running on localhost:9123.

Version-Release number of selected component (if applicable):
ER5

How reproducible:
always

Steps to Reproduce:
1. 
2.
3.
  
Actual results:
jBPM Console crashes on the first access if the task service is not running on localhost:9123, even if the task service address is configured correctly in jbpm.console.properties (inside gwt-console-server.war)

Expected results:
jBPM Console should connect to task service running on any host and port if the address is specified in jbpm.console.properties. The transport protocol (mina,jms,hornetq) should be configurable too.

Additional info:
see server log for the exception trace

Comment 1 Maciej Swiderski 2012-03-22 17:15:18 UTC
Pull request prepared and avilable at: https://github.com/droolsjbpm/jbpm/pull/63

Introduces number of configuration parameters via jbpm.console.properties to match configuration avilable for human task web application. It defaults to Mina to be backward compatible with previous versions of jBPM already out.

In addition to what is possible in terms of transports of human task web application console can be configured to use local task server without any remote communication.

Comment 2 Maciej Swiderski 2012-04-02 08:10:19 UTC
Please use following pull request instead of #63 as it provides latest modifications: https://github.com/droolsjbpm/jbpm/pull/67

Comment 4 Kris Verlaenen 2012-04-03 15:58:20 UTC
Merged, BRMS should update the jbpm.console.properties file to use HornetQ instead of Mina (in combination with the changes in the human task service war to switch that to HornetQ as well).

Comment 5 Ryan Zhang 2012-04-23 07:39:26 UTC
Update status to ON_QA. Please verify them against ER6.

Comment 6 Jiri Locker 2012-05-31 09:05:12 UTC
Fix verified in ER8.