CXF-RS get but no response

2015-03-14 Thread garethahealy
I am just doing a hello world example for a restful service[1] but i don't
get any response, as i would expect. When debugging the test as well, i
never hit the method[2].

I've included some debug[3] but i can't see anything from it.

Any ideas what i am doing wrong?

[1]https://github.com/garethahealy/jboss-fuse-examples/tree/master/ws-restful
[2]https://github.com/garethahealy/jboss-fuse-examples/blob/master/ws-restful/src/main/java/com/garethahealy/ws/restful/services/DefaultHelloWorldService.java#L49
[3]https://gist.github.com/garethahealy/a163900ab1ab700204e4



--
View this message in context: 
http://camel.465427.n5.nabble.com/CXF-RS-get-but-no-response-tp5764141.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: CXF-RS get but no response

2015-03-16 Thread Sergey Beryozkin
As far as I recall you can not use a cxfrs bean with a "from", one can 
delegate to it with a from:jetty, etc... I believe you need to drop a 
'bean' part...
AFAIK The bean component is useful if you need to invoke on a JAX-RS 
service implementation. You can do it in Camel 2.15.0 directly with a 
cxfrs consumer and a performInvocation option


Cheers, Sergey



On 14/03/15 13:03, garethahealy wrote:

I am just doing a hello world example for a restful service[1] but i don't
get any response, as i would expect. When debugging the test as well, i
never hit the method[2].

I've included some debug[3] but i can't see anything from it.

Any ideas what i am doing wrong?

[1]https://github.com/garethahealy/jboss-fuse-examples/tree/master/ws-restful
[2]https://github.com/garethahealy/jboss-fuse-examples/blob/master/ws-restful/src/main/java/com/garethahealy/ws/restful/services/DefaultHelloWorldService.java#L49
[3]https://gist.github.com/garethahealy/a163900ab1ab700204e4



--
View this message in context: 
http://camel.465427.n5.nabble.com/CXF-RS-get-but-no-response-tp5764141.html
Sent from the Camel - Users mailing list archive at Nabble.com.





Re: CXF-RS get but no response

2015-03-28 Thread garethahealy
I worked out what i was doing wrong. The from uri for cxf was acting as a
proxy, so i needed to add a bean call.

[1]https://github.com/garethahealy/jboss-fuse-examples/blob/master/ws-restful/src/main/resources/OSGI-INF/blueprint/ws-restful-context.xml#L56



--
View this message in context: 
http://camel.465427.n5.nabble.com/CXF-RS-get-but-no-response-tp5764141p5764962.html
Sent from the Camel - Users mailing list archive at Nabble.com.