JBoss Community

Re: TaskClient not connecting

created by npereira in jBPM - View the full discussion

Hi Guys,

 

I have been going at it for a few days, and I can't quite understand why this issue is happening.

My code is the following:

 

TaskClient client = new TaskClient(new MinaTaskClientConnector("client 1", new MinaTaskClientHandler(SystemEventListenerFactory.getSystemEventListener())));

                    if(client.connect("10.50.1.123", 9123))

                    {

                              BlockingTaskSummaryResponseHandler taskSummaryResponseHandler = new BlockingTaskSummaryResponseHandler();

                              client.getTasksAssignedAsPotentialOwner("krisv", "en-UK", taskSummaryResponseHandler);

 

                              List<TaskSummary> tasks = taskSummaryResponseHandler.getResults();

   

 

                    }

                    else

                              System.out.println("Not connected!!!!!");

 

Everytime I try to connect from a different computer I keep gewtting the "Not Connected!!" message.

Did any of you guys have this problem?

 

Also I know that for Jboss you have the "./run.sh -b 0.0.0.0" command. Is there any command like this for Human Task Service?

 

Thanks

Reply to this message by going to Community

Start a new discussion in jBPM at Community