>>> 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
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
│ 2.3.2.3 │ │
>>>>> Uninstalled │ specs-4.4.3
>>>> │
>>>>> jaxrs │ 2.1.0│ │
>>>>> Uninstalled │ specs-4.4.3
>>>> │
>>>>> jaxws
: 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
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
&
│ 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│
│ 3.5.5│ │
> Uninstalled │ cxf-3.5.5 │
> karaf@root()>
>
> This gives me the impression that the whitenboard stuff is working.
>
> -- Jaap
&g
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
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-
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
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.
>>
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
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:
>
>
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
14 matches
Mail list logo