Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-26 Thread Paul Spencer
>>> The Rest class and the PersonService are in the same bundle. >>> >>> Do you know if there are any examples out there that show >> @JaxrsApplicationSelect in combination with DS? >>> It seems now that Application/@JaxrsApplicationBase ignores DS. >&g

RE: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-26 Thread Jaap Gordijn
t Application/@JaxrsApplicationBase ignores DS. > > > > -- Jaap > > > >> -Original Message- > >> From: Paul Spencer > >> Sent: dinsdag 24 januari 2023 01:41 > >> To: user@karaf.apache.org > >> Subject: Re: aries-jax-rs-whiteboa

Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-25 Thread Paul Spencer
│ 2.3.2.3 │ │ >>>>> Uninstalled │ specs-4.4.3 >>>> │ >>>>> jaxrs │ 2.1.0│ │ >>>>> Uninstalled │ specs-4.4.3 >>>> │ >>>>> jaxws

RE: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-25 Thread Jaap Gordijn
: Paul Spencer > Sent: dinsdag 24 januari 2023 01:41 > To: user@karaf.apache.org > Subject: Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not > with DS > > - Does bundle:headers for the REST bundle have a required capability to the > Person Service, foo.bar.PersonS

Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-23 Thread Paul Spencer
does not produce any output > > Best, > > -- Jaap > >> -Original Message- >> From: Paul Spencer >> Sent: maandag 23 januari 2023 23:12 >> To: user@karaf.apache.org >> Subject: Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not &

RE: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-23 Thread Jaap Gordijn
│ 3.5.5│ │ > > Started │ cxf-3.5.5 > │ > > cxf-databinding-jaxb │ 3.5.5 │ │ > > Uninstalled │ cxf-3.5.5 > │ > > cxf-jaxrs-cdi │ 3.5.5│

Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-23 Thread Paul Spencer
│ 3.5.5│ │ > Uninstalled │ cxf-3.5.5 │ > karaf@root()> > > This gives me the impression that the whitenboard stuff is working. > > -- Jaap &g

RE: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-23 Thread Jaap Gordijn
2023 21:19 > To: user@karaf.apache.org > Subject: Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not > with DS > > Jaap, > Something is missing. The @Referenece should prevent the component > from becoming Active when a PeopleService does not exist. > Look

Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-23 Thread Paul Spencer
ence annotation. > This doesn't work, the variable remains null. > No injection is happening. > > -- Jaap > >> -Original Message- >> From: Paul Spencer >> Sent: maandag 23 januari 2023 21:09 >> To: user@karaf.apache.org >> Subject: Re: aries-jax-rs-

RE: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-23 Thread Jaap Gordijn
alled (Rest() in my case. > > And no DS. > > > > -- Jaap > > > >> -Original Message- > >> From: Paul Spencer > >> Sent: maandag 23 januari 2023 18:59 > >> To: user@karaf.apache.org > >> Subject: Re: aries-jax-rs-whiteboard with @Jax

Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-23 Thread Paul Spencer
gt; Sent: maandag 23 januari 2023 18:59 >> To: user@karaf.apache.org >> Subject: Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not >> with DS >> >> Jaap, >> Your @Activate annotation is incorrect. >> Try the following. >>

RE: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-23 Thread Jaap Gordijn
gt; To: user@karaf.apache.org > Subject: Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not > with DS > > Jaap, > Your @Activate annotation is incorrect. > Try the following. > > > … > public class Rest() { > > @Reference > private PersonService

Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-23 Thread Paul Spencer
Jaap, Your @Activate annotation is incorrect. Try the following. … public class Rest() { @Reference private PersonService personService; @Activate public void activate(Map properties) { ... } } Paul Spencer > On Jan 23, 2023, at 12:40 PM, Jaap Gordijn wrote: > >

aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-23 Thread Jaap Gordijn
Hi, I use an Application object (with @JaxrsApplicationSelect), injection via DS does not work: @Component(service = Rest.class, scope = ServiceScope.PROTOTYPE) @JaxrsResource @JaxrsApplicationSelect("(" + JaxrsWhiteboardConstants.JAX_RS_NAME + "=MyApplication)") @JSONRequired