Does osworkflow-2.5.0.jar use ThreadLocal?

View: New views
2 Messages — Rating Filter:   Alert me  

Does osworkflow-2.5.0.jar use ThreadLocal?

by Samer Kanjo-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I am using [b]osworkflow-2.5.0.jar[/b] in an application deployed in Websphere 6.1.0.13.

1. Does this jar file use [b]ThreadLocal[/b] variables?
2. If yes, then does it 'clean' up the ThreadLocal variable before returning the thread to the threadpool?

Please post your replies/views soon.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=374561&messageID=460988#460988


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Does osworkflow-2.5.0.jar use ThreadLocal?

by Samer Kanjo-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

An interesting question. I had a look at the source and found that the use of ThreadLocal was not added until version 2.8.0.

In version 2.8.0 it is used in to store a cache of actions. The actions are stored to the cache on calls to AbstractWorkflow.isActionAvailable. When the workflow is transitioned using AbstractWorkflow.transitionWorkflow the cache is cleared.

There is no specific code to clean up the cache.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=374561&messageID=503349#503349


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...