JBoss Community

Re: Growing NioProcessor Thread Number in Human Tasks

created by Sandip Bhoi in jBPM - View the full discussion

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/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

Start a new discussion in jBPM at Community