Re: Injecting an ASO into a service

2006-01-19 Thread Howard Lewis Ship
That will work but is a bit dangerous; if you inject a global object, its not too bad, but if you inject a session-scoped object into a singleton service (not a threaded or pooled service), then a single instance of the ASO will be shared across threads, which is not what you want. A more elaborat

Re: Injecting an ASO into a service

2006-01-19 Thread Rudolf Baloun
Hi, i tried this. I added this in hivemodule.xml: interface="org.apache.tapestry.engine.IEngineService"> value="aso:shared-resource-provider"/> interface="org.a

Re: Injecting an ASO into a service

2006-01-17 Thread Christian Haselbach
Hello Dmitry Gusev <[EMAIL PROTECTED]> wrote: > Here is an example of creating ApplicationStateObjectProvider which allows > you to inject ASOs via "aso" prefix, for instance: Thank you very much, that should be exactly what I was looking for. I just thought that getting an ASO object in a servi

Re: Injecting an ASO into a service

2006-01-17 Thread Dmitry Gusev
Here is an example of creating ApplicationStateObjectProvider which allows you to inject ASOs via "aso" prefix, for instance: In order to do this we need to define an "aso" prefix for Application State Objects. We can do it li

Re: Injecting an ASO into a service

2006-01-17 Thread Christian Haselbach
Hello Quoting Raul Raja Martinez <[EMAIL PROTECTED]>: > I had the inverse problem and I solved using Hiveutils, its > objectbuilder allows you to inject services and objects into POJOS that > then can be used as ASOs. Thanks for the hint, I will have a look at it. Regards, Christian ---

Re: Injecting an ASO into a service

2006-01-16 Thread Raul Raja Martinez
I don't know if this might help you but just in case take a look at: I had the inverse problem and I solved using Hiveutils, its objectbuilder allows you to inject services and objects into POJOS that then can be used as ASOs. Take a look at the posting in this list whit title: PROBLEM SOLV

Injecting an ASO into a service

2006-01-16 Thread Christian Haselbach
Hello, injecting an ASO into a page or component is simple, but I cannot figure out how to inject one into a service. Can anyone tell me what to do? Thanke Regards, Christian P.S.: Injecting the ApplicationStateManager and obtaining the state object from the it by name works fine, but this is n