[jboss-user] [jBPM] - Re: Growing NioProcessor Thread Number in Human Tasks

Sandip Bhoi do-not-reply at jboss.com
Fri Nov 25 11:11:14 EST 2011


Sandip Bhoi [http://community.jboss.org/people/sandip.bhoi] created the discussion

"Re: Growing NioProcessor Thread Number in Human Tasks"

To view the discussion, visit: http://community.jboss.org/message/638395#638395

--------------------------------------------------------------
Hi Demian,

It is throwing at following highlighted line session = factory.createSession();
And Cause as NoSuchErrorMethod.

Also I am using jbpm-human-task-5.1.0. version of jar.
 http://community.jboss.org/servlet/JiveServlet/showImage/2-638395-17361/CanNotCreateSession.JPG  http://community.jboss.org/servlet/JiveServlet/downloadImage/2-638395-17361/450-236/CanNotCreateSession.JPG 

public boolean connect() {
        if (session != null && !session.isClosed()) {
            throw new IllegalStateException("Already connected. Disconnect first.");
        } 
        try {
            Map<String, Object> connectionParams = new HashMap<String, Object>();
            if (address==null) {
                address = "127.0.0.1";
            }
            if (port==null) {
                port = 5445;
            }
            connectionParams.put(TransportConstants.PORT_PROP_NAME, port);
            connectionParams.put(TransportConstants.HOST_PROP_NAME, address);

            TransportConfiguration transportConfiguration = new TransportConfiguration(NettyConnectorFactory.class.getCanonicalName(), connectionParams);
            ClientSessionFactory factory = HornetQClient.createClientSessionFactory(transportConfiguration);
session = factory.createSession();
            producer = session.createProducer(HornetQTaskServer.SERVER_TASK_COMMANDS_QUEUE);
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/638395#638395]

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/20111125/7f1fb0cd/attachment-0001.html 


More information about the jboss-user mailing list