Hi JB,
yes that was my first place to start... really like the examples in the
source, they are really helpful.

ok:
Fist thing are JAXRs Applications. In OSGI7 we will use
@JaxrsName("myApp")
@JaxrsApplicationBase("foo")
@Component
class....

in OSGI 6 I think we should be able to use
@Component(property = {"osgi.jaxrs.name=myApp",
"osgi.jaxrs.application.base=/foo"}, service = A.class)
class...
That does not work or did I misunderstood something?

Second how do i create additional Servlets and how do I select them in a
resource?
E.g. A configfile/servicepid
org.apache.aries.jax.rs.whiteboard-bar.cfg
application.base.prefix=/bar
should create an additional servlet container?

Then with
@JaxrsWhiteboardTarget
or
"osgi.jaxrs.whiteboard.target="

I can select the servlet/Whiteboard, but how does the LDAP string look?
(service.pid=org.apache.aries.jax.rs.whiteboard-bar)?

Best regards,
Matthias


Am Mi., 6. Nov. 2019 um 18:00 Uhr schrieb Jean-Baptiste Onofré <
[email protected]>:

> Hi Matthias,
>
> did you take a look on the Karaf example ?
>
> https://github.com/apache/karaf/tree/master/examples/karaf-rest-example
>
> It contains different approaches, including whiteboard.
>
> Can you describe a bit what you are looking for ? We can then create the
> Jira at Karaf/Aries to improve example/documentation.
>
> Regards
> JB
>
> On 06/11/2019 17:56, Matthias Leinweber wrote:
> > Hello Karaf Team,
> >
> > I know that this not the 100% correct mailing list for aries jax-rs.
> > However my question is what do you plan for further releases of Karaf? I
> > try to use the aries implementation but I struggle with the
> configuration.
> > Beside the incomplete documentation and the "very special" DSL which is
> > used I dug into the code and understood the following things.
> >
> > * You can not add additional JAXRSApplications. ("osgi.jaxrs.name
> > <http://osgi.jaxrs.name>=myApp", "osgi.jaxrs.application.base=/approot"}
> > although there is code which should do this?
> > * Additional configurations for other then the default servlet is not
> > possible although there is a service factory manager which should handle
> > additional configs?
> > * With org.apache.aries.jax.rs.whiteboard.default.cfg
> > # application.base.prefix you can add a global url prefix to your
> > JaxRSResoureces. Would be nice if that could be documented somewhere.
> >
> > Don't get me wrong I do not say that the bundle is bad, but at some
> > point it could be easier to understand.
> >
> > regards Matthias
> >
> >
>
> --
> Jean-Baptiste Onofré
> [email protected]
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>


--

Reply via email to