[jboss-user] [jBPM] - Re: TaskClient not connecting
npereira
do-not-reply at jboss.com
Tue May 10 05:26:43 EDT 2011
npereira [http://community.jboss.org/people/npereira] created the discussion
"Re: TaskClient not connecting"
To view the discussion, visit: http://community.jboss.org/message/604402#604402
--------------------------------------------------------------
Hi bpmn2user,
Thanks for your reply, but unfortunatly I wasn't able to connect. I tried,
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
KnowledgeBase kbase = kbuilder.newKnowledgeBase();
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
CommandBasedWSHumanTaskHandler taskHandler = new CommandBasedWSHumanTaskHandler(ksession);
taskHandler.setConnection("10.1.5.148", 9123);
*taskHandler.connect();*
TaskClient client = new TaskClient(new MinaTaskClientConnector("client 1", new MinaTaskClientHandler(SystemEventListenerFactory.getSystemEventListener())));
taskHandler.setClient(client);
if(client.connect())
System.out.println("OK");
else
System.out.println("NOT OK");
But on the highlighted line, I get the following error,
Exception in thread "main" java.lang.IllegalArgumentException: Could not connect task client
at org.jbpm.process.workitem.wsht.CommandBasedWSHumanTaskHandler.connect(CommandBasedWSHumanTaskHandler.java:88)
Does it make any sense to you? Is it something I'm missing in my code?
Regards,
Nelson
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/604402#604402]
Start a new discussion in jBPM at Community
[http://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/20110510/a98f35be/attachment.html
More information about the jboss-user
mailing list