Re: RESTful web service in Karaf using CXF and blueprint

2016-08-15 Thread Tim Ward
If the services that you're looking to provide use JAX-RS the there is a specification proposal for OSGi R7 that you should look at. Prototyping work is starting in Apache Aries now. Tim Sent from my iPhone > On 15 Aug 2016, at 18:56, Scott Lewis wrote: > >> On 8/15/2016 10:28 AM, Christian

Re: Karaf 4.0.5 - No subshell in remote connection?

2016-08-15 Thread Jean-Baptiste Onofré
OK I gonna reproduce and investigate. I'm sure it worked at least on 4.0.3 afair. Regards JB On Aug 15, 2016, 14:42, at 14:42, Erwin Hogeweg wrote: >I does not, and it is reproducible on Mac. > >Erwin > >> On Aug 15, 2016, at 09:35, Jean-Baptiste Onofré >wrote: >> >> Hi >> >> Does it work

Re: RESTful web service in Karaf using CXF and blueprint

2016-08-15 Thread Scott Lewis
On 8/15/2016 10:28 AM, Christian Schneider wrote: ECF also supports CXF now but I am not sure at what level of CXF features. This provider [1], will support all of the jax-rs Configurable/Configuration capabilities that CXF supports. It will also be possible to extend [1] to create a cust

Re: RESTful web service in Karaf using CXF and blueprint

2016-08-15 Thread Benson Margulies
Christian, you might recall that I got into problems with configuration issues, and you plan to address the issues I ran into in 2.0. I can dig that mail up again if you don't still have it. Thus 'not ready yet.' On Mon, Aug 15, 2016 at 1:30 PM, Christian Schneider wrote: > Hi Benson, > > would b

Re: RESTful web service in Karaf using CXF and blueprint

2016-08-15 Thread Christian Schneider
Hi Benson, would be great to get some feedback about your experiences using dOSGi. As we are approaching the 2.0 version now is the best time to get important features in. Christian 2016-08-15 19:24 GMT+02:00 Benson Margulies : > Correct. I tried the dOSGi stuff, and it wasn't really ready to d

Re: RESTful web service in Karaf using CXF and blueprint

2016-08-15 Thread Christian Schneider
The tutorial uses blueprint to publish the service and uses the CXF namespace for blueprint. This is currently the most flexible approach as it supports all features of CXF. It is limited to blueprint though. If you want to use DS to annotate your service and do injections then like Scott describ

Re: RESTful web service in Karaf using CXF and blueprint

2016-08-15 Thread Benson Margulies
Correct. I tried the dOSGi stuff, and it wasn't really ready to do what I needed to do. On Mon, Aug 15, 2016 at 1:17 PM, David Jencks wrote: > Just to see if I understand what you are doing, this approach does not > involve the osgi service registry in any way for the REST service > implementat

Re: RESTful web service in Karaf using CXF and blueprint

2016-08-15 Thread David Jencks
Just to see if I understand what you are doing, this approach does not involve the osgi service registry in any way for the REST service implementation object? You are directly registering the component instance with CXF, and there is no need for it to expose any service interfaces at all? tha

Re: RESTful web service in Karaf using CXF and blueprint

2016-08-15 Thread Benson Margulies
I do this by making DS @Activate methods call the CXF API to publish REST services. On Mon, Aug 15, 2016 at 1:08 PM, Scott Lewis wrote: > Hi Marc, > > The OSGi Remote Services specification (and the associated Remote Service > Admin sepc) defines a standardized way to export OSGi services for re

Re: RESTful web service in Karaf using CXF and blueprint

2016-08-15 Thread Scott Lewis
Hi Marc, The OSGi Remote Services specification (and the associated Remote Service Admin sepc) defines a standardized way to export OSGi services for remote access. The specification is defined in a way that allows the use of arbitrary distribution providers that are responsible for making

RESTful web service in Karaf using CXF and blueprint

2016-08-15 Thread Marc Durand
Hello, I was following Christian's tutorial here: http://liquid-reality.de/display/liquid/2011/12/22/Karaf+Tutorial+Part+4+-+CXF+Services+in+OSGi And I also found come blog posts from JB that show how to deploy RESTful services using blueprint. What I couldn't find was an example on how to depl

Re: How do mvn: urls end up in classpaths in Karaf 4.0.5?

2016-08-15 Thread Benson Margulies
One other factoid: When I don't use "#methodname" to select a method, I do see a few of these IllegalStateExceptions go by for things like configadmin and sshd. They don't even result in log traffic. When I use the #, that adds a guice jar file, and the result is a fail. On Mon, Aug 15, 2016 at

How do mvn: urls end up in classpaths in Karaf 4.0.5?

2016-08-15 Thread Benson Margulies
Folks, I just upgraded my build to use pax-exam 4.9.1. And I got a very strange problem. If I run a single function test method: mvn -Dit.test=com.basistech.ws.itest.AnvilsRealComponentIT"#complexEntityRouting" my code dies, because an mvn: URL leaks out. This happens when Guice is referenc

Re: Introducing blueprint-test

2016-08-15 Thread Matt Pavlovich
Thanks =) I'll get the patch to Aries knocked out this week. There is a little cruft in the helper/util classes, but that can be trimmed out without impacting users as time goes on. On 8/15/16 9:05 AM, James Carman wrote: This is cool, Matt! I am sure a lot of us have already gone through th

Re: Introducing blueprint-test

2016-08-15 Thread James Carman
This is cool, Matt! I am sure a lot of us have already gone through this hassle, but I have not seen it formalized yet. Good work! On Mon, Aug 15, 2016 at 9:51 AM Matt Pavlovich wrote: > This blueprint-test is useful for testing blueprints that do *not* > contain Camel routes. The camel-test-bl

Re: Introducing blueprint-test

2016-08-15 Thread Matt Pavlovich
This blueprint-test is useful for testing blueprints that do */not/* contain Camel routes. The camel-test-blueprint requires a Camel route to startup, so it can't be used as a general purpose blueprint test library. -Matt Pavlovich On 8/14/16 7:59 AM, Jean-Baptiste Onofré wrote: What's the

Re: Karaf 4.0.5 - No subshell in remote connection?

2016-08-15 Thread Erwin Hogeweg
I does not, and it is reproducible on Mac. Erwin > On Aug 15, 2016, at 09:35, Jean-Baptiste Onofré wrote: > > Hi > > Does it work when starting Karaf using bin/karaf ? > > Regards > JB > > On Aug 15, 2016, at 14:05, Erwin Hogeweg > wrote: > All - > > I don’t se

Re: 4.0.6 release

2016-08-15 Thread James Carman
That's great! Thanks again, JB. Let us know if there's something we can help with. :) On Mon, Aug 15, 2016 at 9:32 AM Jean-Baptiste Onofré wrote: > Hi James > > I plan to cut the release and submit to vote on Thursday. I have some work > in progress. > > Regards > JB > On Aug 15, 2016, at 14

Re: Karaf 4.0.5 - No subshell in remote connection?

2016-08-15 Thread Jean-Baptiste Onofré
Hi Does it work when starting Karaf using bin/karaf ? Regards JB On Aug 15, 2016, 14:05, at 14:05, Erwin Hogeweg wrote: >All - > >I don’t see the subshells when I connect from a remote machine. Either >by opening the gogo shell in web console or logging in from an ssh >connection. This is the

Re: 4.0.6 release

2016-08-15 Thread Jean-Baptiste Onofré
Hi James I plan to cut the release and submit to vote on Thursday. I have some work in progress. Regards JB On Aug 15, 2016, 14:22, at 14:22, James Carman wrote: >

Re: 4.0.6 release

2016-08-15 Thread James Carman
JB, What's the current plan on 4.0.6? I can hold off a release of my custom container if it's happening relatively soon. We'd love to have the proper boot feature ordering stuff. Thanks for getting 3.0.8 out so quickly, btw! Thanks, James On Thu, Aug 4, 2016 at 9:17 AM Jean-Baptiste Onofré

Karaf 4.0.5 - No subshell in remote connection?

2016-08-15 Thread Erwin Hogeweg
All - I don’t see the subshells when I connect from a remote machine. Either by opening the gogo shell in web console or logging in from an ssh connection. This is the standard karaf user with all the default settings. Is there another permission that needs to be enabled? I checked the 4.0 manu

Re: Aries JPA 2.3.0: mapping file not used

2016-08-15 Thread Timothy Ward
There was a major rewrite of Aries JPA between version 1.x and 2.x. It appears as though the mapping file support was lost (I can find no reference to mapping files in the parser). This is obviously something that needs to be fixed - is there any way that you can supply a simplified version of