This content has been marked as final.
Show 6 replies
-
1. Re: static variable in actionhandler
kukeltje Aug 26, 2008 6:11 AM (in response to ajanz)Hmm... I would expect so, since they are related to processinstances (versioning is related to them). Not that it could be changed I guess, but the behaviour you see is not weird to me
-
2. Re: static variable in actionhandler
ajanz Aug 26, 2008 6:48 AM (in response to ajanz)ah ok. i understand.
i also got an rulesactionhandler and i want the rules to be loaded only once...
do you have an idea how to do this? -
3. Re: static variable in actionhandler
lblaauw Aug 26, 2008 8:46 AM (in response to ajanz)Well,
I use the spring jbpm integration stuff and configur a handler in spring for
this purpose.
Regards,
Leo"AJanz" wrote:
ah ok. i understand.
i also got an rulesactionhandler and i want the rules to be loaded only once...
do you have an idea how to do this? -
4. Re: static variable in actionhandler
ajanz Aug 26, 2008 9:36 AM (in response to ajanz)is there any other solution for this problem?
please help.
it's urgent... -
5. Re: static variable in actionhandler
steve.j.hall Aug 26, 2008 11:16 AM (in response to ajanz)Perhaps the Singleton design pattern would do the trick. See any design patterns book for how to implement and use.
-
6. Re: static variable in actionhandler
ajanz Aug 26, 2008 12:18 PM (in response to ajanz)thats what i already did
i usepublic class MySingleton{ static MySingletoninstance = new MySingleton(); static long count =0; public static MySingletongetInstance(){ return instance; }