JBoss Community

Re: CommandBasedWSHumanTaskHandler session, client ???

created by Mauricio Salatino in jBPM - View the full discussion

Hi Gary,

I think that you find the reason why you need to create the handlers and register them each time that. Runtime Handlers are not persisted with the session information, that means that each time that you load the session you need to re-register them in order to be sure that they will work for that runtime session. If you create a new Handler, the session is persisted and another thread or JVM loads the session persistend in the database the handler cannot be shared.

 

I'm right now changing the code inside the TaskHandlers to improve it, but as you can see, the handler contains a task client that as soon as its created it tryies to reach a Human Task server. Mina was the first transport supported and now that we support a couple of them + the local implementation this code needs to be changed a little bit. As I mention, I'm working on that now and I hope to get it done for tomorrow.

 

Cheers

Reply to this message by going to Community

Start a new discussion in jBPM at Community