private int port = 9123;
private MinaTaskClient client;
public void connect() {
if (client == null) {
client = new MinaTaskClient(
"org.drools.process.workitem.wsht.WSHumanTaskHandler",
new TaskClientHandler(SystemEventListenerFactory.getSystemEventListener()));
NioSocketConnector connector = new NioSocketConnector();
SocketAddress address = new InetSocketAddress(ipAddress, port);
boolean connected = client.connect(connector, address);