Home > Archive > EAserver > April 2005 > Jag ThreadManager and standard stateless PB components









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Jag ThreadManager and standard stateless PB components
NB

2005-04-29, 8:26 pm

I have a PB service component where in its run( ) method an instance of Jag
ThreadManager is created. Then JagThreadMangerProxy
.start ("thread group
name", PBcomponentProxy) is called to essentially cause
PBcomponentProxy.run() method to execute according to time interval managed
by ThreadManager.

Life is good when the PBcomponentProxy is for a shared (singleton) PB
component.

What happens if I wish to make the PBcomponentProxy that ThreadmManger is
managing a non shared component (a standard stateless component where
multiple instances are allowed). This shared component is for a cache
service that I need more than one instance of it servicing requests
(unfortunately a PB shared component cannot be multi threaded).

I am bit confused since .start( ) method on Jag ThreadManager takes an
argument of PBComponent type as a second argument and not a specific
instance of a component. My intention to have .run() method of all
instances of PB standard stateless component execute according to time
interval managed by Jag ThreadManager (don't care if they happen at same
time or not).

Is it doable? (I hope my explanation was not too confusing)


Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com