Re: how do I get a Service instance from a POJO?

2010-10-10 Thread Richard S. Hall
On 10/8/10 17:38, sam lee wrote: Hey, I can get a Service instance from another Service by using: @Reference private MyService myService; But, how can I get a reference to MyService instance from a POJO? Since the POJO will be used in some other service, should I get MyService refere

Re: how do I get a Service instance from a POJO?

2010-10-10 Thread Clement Escoffier
On 10.10.2010, at 18:59, Richard S. Hall wrote: > On 10/8/10 17:38, sam lee wrote: >> Hey, >> >> I can get a Service instance from another Service by using: >> @Reference >> private MyService myService; >> >> But, how can I get a reference to MyService instance from a POJO? >> Since the

Re: how do I get a Service instance from a POJO?

2010-10-10 Thread sam lee
I'm using SCR http://felix.apache.org/site/apache-felix-maven-scr-plugin.html It's sort of difficult to pass Service objects around to plain POJO the way my program is written. I don't like to couple my POJO with Service. I just wanted to get an instance of Service when I needed from POJO. I'll g

Re: how do I get a Service instance from a POJO?

2010-10-10 Thread Felix Meschberger
Hi, On 08.10.2010 23:38, sam lee wrote: > Hey, > > I can get a Service instance from another Service by using: > @Reference > private MyService myService; > > But, how can I get a reference to MyService instance from a POJO? > Since the POJO will be used in some other service, should I g

Re: how do I get a Service instance from a POJO?

2010-10-10 Thread Richard S. Hall
On 10/10/10 13:24, sam lee wrote: I'm using SCR http://felix.apache.org/site/apache-felix-maven-scr-plugin.html It's sort of difficult to pass Service objects around to plain POJO the way my program is written. I don't like to couple my POJO with Service. I just wanted to get an instance of Ser

Re: Unable to acquire global lock for resolve

2010-10-10 Thread Richard S. Hall
Any follow up on this? -> richard On 9/29/10 3:28 PM, Richard S. Hall wrote: On 9/29/10 15:19, Richard S. Hall wrote: On 9/29/10 12:59, mvangeert...@comcast.net wrote: All, When attempting to deploy dom4j as part of a Hibernate 3 feature, I get the following error: Error executing

Re: File install vs bundle cache

2010-10-10 Thread Bengt Rodehav
Can anyone explain how this works? Maybe someone working with file install? /Bengt 2010/10/8 Bengt Rodehav > I'm using Karaf 1.6.0 (Felix 2.0.5 I think) and File install 3.0.2. > > I use iPOJO (1.6.4) to create service factories that are instantiated by > file install by dropping a configuratio

Re: File install vs bundle cache

2010-10-10 Thread Guillaume Nodet
On Fri, Oct 8, 2010 at 14:33, Bengt Rodehav wrote: > I'm using Karaf 1.6.0 (Felix 2.0.5 I think) and File install 3.0.2. > > I use iPOJO (1.6.4) to create service factories that are instantiated by > file install by dropping a configuration file in a dedicated directory. > When > I update the con

Re: File install vs bundle cache

2010-10-10 Thread Felix Meschberger
Hi, On 11.10.2010 08:51, Guillaume Nodet wrote: > On Fri, Oct 8, 2010 at 14:33, Bengt Rodehav wrote: > >> I'm using Karaf 1.6.0 (Felix 2.0.5 I think) and File install 3.0.2. >> >> I use iPOJO (1.6.4) to create service factories that are instantiated by >> file install by dropping a configuration