You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Rodrigo Madera <ro...@gmail.com> on 2007/10/08 19:39:34 UTC
Felix 'Command' implementations with DS
Hello,
I'm having an issue with a custom Felix command which implements (naturally)
the Command interface.
Everything is okay and the shell accepts the command, except that
Declarative Services does not
provide me an interface to one of my services (a very simple one).
So I have a question: has anyone had problems with Felix Command impls and
DS?
Thanks,
Rodrigo
Re: Felix 'Command' implementations with DS
Posted by Felix Meschberger <fm...@gmail.com>.
Hi Rodrigo,
Ah ! suspected that when reading about the "new()" operator - I assume
you meant simple class instantiation. Yes, of course, the DS controls
the components and its instances as per the descriptor. You (or any
admin or whoever bundle programmer) don't have to care about
instantiating components :-)
Regards
Felix
Am Montag, den 08.10.2007, 21:25 +0100 schrieb Rodrigo Madera:
> Well, continuing my monologue, here is the answer to my problem:
>
> I was instantiating the DS component, so DS wasn't actually handling
> the object. The solution was to use activate/deactivate methods in my
> component and work with the 'this' instance, which had all I needed.
>
> Hope this helps at least somebody out there over time!
>
> Rodrigo
>
> P.S. Guess all the developers are in Europe?
>
> On 10/8/07, Rodrigo Madera <ro...@gmail.com> wrote:
> >
> > Btw, I am using this component using the new() operator.
> > I'm suspecting very confidently that this is the problem.
> >
> > I'm having a dialogue with the OSGi 4.1 spec =o)
> >
> > Rodrigo
> >
> > On 10/8/07, Rodrigo Madera <ro...@gmail.com> wrote:
> > >
> > > Is there a log or someplace I can grab DS output?
> > >
> > > The problem is not with a Command implementation anymore...
> > > It's a normal component... I need some debugging info!!! =o(
> > >
> > > Thanks,
> > > Rodrigo
> > >
> > > On 10/8/07, Rodrigo Madera <rodrigo.madera@gmail.com > wrote:
> > > >
> > > > Just to clarify:
> > > >
> > > > When I wrote:
> > > > except that Declarative Services does not provide me an
> > > > interface to one of my services
> > > >
> > > > What I meant was REFERENCE instead of interface:
> > > > except that Declarative Services does not provide me a
> > > > reference to one of my services.
> > > >
> > > > Thanks,
> > > > Rodrigo
> > > >
> > > >
> > > >
> > > >
> > > > On 10/8/07, Rodrigo Madera < rodrigo.madera@gmail.com> wrote:
> > > > >
> > > > > Hello,
> > > > >
> > > > > I'm having an issue with a custom Felix command which implements
> > > > > (naturally) the Command interface.
> > > > >
> > > > > Everything is okay and the shell accepts the command, except that
> > > > > Declarative Services does not
> > > > > provide me an interface to one of my services (a very simple one).
> > > > >
> > > > > So I have a question: has anyone had problems with Felix Command
> > > > > impls and DS?
> > > > >
> > > > > Thanks,
> > > > > Rodrigo
> > > > >
> > > >
> > > >
> > >
> >
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: Felix 'Command' implementations with DS
Posted by Rodrigo Madera <ro...@gmail.com>.
Well, continuing my monologue, here is the answer to my problem:
I was instantiating the DS component, so DS wasn't actually handling
the object. The solution was to use activate/deactivate methods in my
component and work with the 'this' instance, which had all I needed.
Hope this helps at least somebody out there over time!
Rodrigo
P.S. Guess all the developers are in Europe?
On 10/8/07, Rodrigo Madera <ro...@gmail.com> wrote:
>
> Btw, I am using this component using the new() operator.
> I'm suspecting very confidently that this is the problem.
>
> I'm having a dialogue with the OSGi 4.1 spec =o)
>
> Rodrigo
>
> On 10/8/07, Rodrigo Madera <ro...@gmail.com> wrote:
> >
> > Is there a log or someplace I can grab DS output?
> >
> > The problem is not with a Command implementation anymore...
> > It's a normal component... I need some debugging info!!! =o(
> >
> > Thanks,
> > Rodrigo
> >
> > On 10/8/07, Rodrigo Madera <rodrigo.madera@gmail.com > wrote:
> > >
> > > Just to clarify:
> > >
> > > When I wrote:
> > > except that Declarative Services does not provide me an
> > > interface to one of my services
> > >
> > > What I meant was REFERENCE instead of interface:
> > > except that Declarative Services does not provide me a
> > > reference to one of my services.
> > >
> > > Thanks,
> > > Rodrigo
> > >
> > >
> > >
> > >
> > > On 10/8/07, Rodrigo Madera < rodrigo.madera@gmail.com> wrote:
> > > >
> > > > Hello,
> > > >
> > > > I'm having an issue with a custom Felix command which implements
> > > > (naturally) the Command interface.
> > > >
> > > > Everything is okay and the shell accepts the command, except that
> > > > Declarative Services does not
> > > > provide me an interface to one of my services (a very simple one).
> > > >
> > > > So I have a question: has anyone had problems with Felix Command
> > > > impls and DS?
> > > >
> > > > Thanks,
> > > > Rodrigo
> > > >
> > >
> > >
> >
>
Re: Felix 'Command' implementations with DS
Posted by Rodrigo Madera <ro...@gmail.com>.
Btw, I am using this component using the new() operator.
I'm suspecting very confidently that this is the problem.
I'm having a dialogue with the OSGi 4.1 spec =o)
Rodrigo
On 10/8/07, Rodrigo Madera <ro...@gmail.com> wrote:
>
> Is there a log or someplace I can grab DS output?
>
> The problem is not with a Command implementation anymore...
> It's a normal component... I need some debugging info!!! =o(
>
> Thanks,
> Rodrigo
>
> On 10/8/07, Rodrigo Madera <ro...@gmail.com> wrote:
> >
> > Just to clarify:
> >
> > When I wrote:
> > except that Declarative Services does not provide me an
> > interface to one of my services
> >
> > What I meant was REFERENCE instead of interface:
> > except that Declarative Services does not provide me a reference
> > to one of my services.
> >
> > Thanks,
> > Rodrigo
> >
> >
> >
> >
> > On 10/8/07, Rodrigo Madera < rodrigo.madera@gmail.com> wrote:
> > >
> > > Hello,
> > >
> > > I'm having an issue with a custom Felix command which implements
> > > (naturally) the Command interface.
> > >
> > > Everything is okay and the shell accepts the command, except that
> > > Declarative Services does not
> > > provide me an interface to one of my services (a very simple one).
> > >
> > > So I have a question: has anyone had problems with Felix Command impls
> > > and DS?
> > >
> > > Thanks,
> > > Rodrigo
> > >
> >
> >
>
Re: Felix 'Command' implementations with DS
Posted by Rodrigo Madera <ro...@gmail.com>.
Is there a log or someplace I can grab DS output?
The problem is not with a Command implementation anymore...
It's a normal component... I need some debugging info!!! =o(
Thanks,
Rodrigo
On 10/8/07, Rodrigo Madera <ro...@gmail.com> wrote:
>
> Just to clarify:
>
> When I wrote:
> except that Declarative Services does not provide me an interface
> to one of my services
>
> What I meant was REFERENCE instead of interface:
> except that Declarative Services does not provide me a reference
> to one of my services.
>
> Thanks,
> Rodrigo
>
>
>
>
> On 10/8/07, Rodrigo Madera <ro...@gmail.com> wrote:
> >
> > Hello,
> >
> > I'm having an issue with a custom Felix command which implements
> > (naturally) the Command interface.
> >
> > Everything is okay and the shell accepts the command, except that
> > Declarative Services does not
> > provide me an interface to one of my services (a very simple one).
> >
> > So I have a question: has anyone had problems with Felix Command impls
> > and DS?
> >
> > Thanks,
> > Rodrigo
> >
>
>
Re: Felix 'Command' implementations with DS
Posted by Rodrigo Madera <ro...@gmail.com>.
Just to clarify:
When I wrote:
except that Declarative Services does not provide me an interface to
one of my services
What I meant was REFERENCE instead of interface:
except that Declarative Services does not provide me a reference to
one of my services.
Thanks,
Rodrigo
On 10/8/07, Rodrigo Madera <ro...@gmail.com> wrote:
>
> Hello,
>
> I'm having an issue with a custom Felix command which implements
> (naturally) the Command interface.
>
> Everything is okay and the shell accepts the command, except that
> Declarative Services does not
> provide me an interface to one of my services (a very simple one).
>
> So I have a question: has anyone had problems with Felix Command impls and
> DS?
>
> Thanks,
> Rodrigo
>