Re: [T5] how to Eager Loading PERTHREAD_SCOPE service?
Hi, try AOP ... (e.g. AspectJ) Jirka Jun Tsai napsal(a): > 2007/8/19, Ben Tomasini <[EMAIL PROTECTED]>: >> It seems to me that the normal eager load behavior would be irrelevant for >> a >> perthread service because a perthread service must be bound to a thread >> which is using the registry, and the registry cannot be used until it is >> built. > > > > I wanto to eager load the service at per thread. how to do ? > -- Jiří Mareš (mailto:[EMAIL PROTECTED]) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] how to Eager Loading PERTHREAD_SCOPE service?
do you mean pooling? g,kris-"Davor Hrg" <[EMAIL PROTECTED]> schrieb: -An: "Tapestry users" Von: "Davor Hrg" <[EMAIL PROTECTED]>Datum: 19.08.2007 05:37PMThema: Re: [T5] how to Eager Loading PERTHREAD_SCOPE service?do you want your service loaded for each thread,and for each thread a new instance created ?why do you need this ?consider avoiding this ?who creates the threads ?Davor HrgOn 8/19/07, Jun Tsai <[EMAIL PROTECTED]> wrote:>> 2007/8/19, Ben Tomasini <[EMAIL PROTECTED]>:> >> > It seems to me that the normal eager load behavior would be irrelevant> for> > a> > perthread service because a perthread service must be bound to a thread> > which is using the registry, and the registry cannot be used until it is> > built.>>>> I wanto to eager load the service at per thread. how to do ?>>>>>>>> --> regards,> Jun Tsai> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] how to Eager Loading PERTHREAD_SCOPE service?
do you want your service loaded for each thread, and for each thread a new instance created ? why do you need this ? consider avoiding this ? who creates the threads ? Davor Hrg On 8/19/07, Jun Tsai <[EMAIL PROTECTED]> wrote: > > 2007/8/19, Ben Tomasini <[EMAIL PROTECTED]>: > > > > It seems to me that the normal eager load behavior would be irrelevant > for > > a > > perthread service because a perthread service must be bound to a thread > > which is using the registry, and the registry cannot be used until it is > > built. > > > > I wanto to eager load the service at per thread. how to do ? > > > > > > > > -- > regards, > Jun Tsai >
Re: [T5] how to Eager Loading PERTHREAD_SCOPE service?
2007/8/19, Ben Tomasini <[EMAIL PROTECTED]>: > > It seems to me that the normal eager load behavior would be irrelevant for > a > perthread service because a perthread service must be bound to a thread > which is using the registry, and the registry cannot be used until it is > built. I wanto to eager load the service at per thread. how to do ? -- regards, Jun Tsai
Re: [T5] how to Eager Loading PERTHREAD_SCOPE service?
EagerLoad and PerThread just don't fit together, you should move the code that needs to be eager loaded to another service. and use it from your threaded service. provide some more insight into your use case so we can assist you concretely. Davor Hrg On 8/19/07, Ben Tomasini <[EMAIL PROTECTED]> wrote: > > It seems to me that the normal eager load behavior would be irrelevant for > a > perthread service because a perthread service must be bound to a thread > which is using the registry, and the registry cannot be used until it is > built. > > On 8/18/07, Jun Tsai <[EMAIL PROTECTED]> wrote: > > > > I had a perthread scope service ,I find the @EagerLoad can't let the > > service eager loading. how to do it? > > > > Thanks > > -- > > regards, > > Jun Tsai > > >
Re: [T5] how to Eager Loading PERTHREAD_SCOPE service?
It seems to me that the normal eager load behavior would be irrelevant for a perthread service because a perthread service must be bound to a thread which is using the registry, and the registry cannot be used until it is built. On 8/18/07, Jun Tsai <[EMAIL PROTECTED]> wrote: > > I had a perthread scope service ,I find the @EagerLoad can't let the > service eager loading. how to do it? > > Thanks > -- > regards, > Jun Tsai >