L.S., CXF has support for JAX-RS, so you might be able to use that inside a bean but I don't think we've already integrated that in our own CXF components. Another option would be to create your own Marshalers for the servicemix-http component.
But I think the easiest way to invoke this kind of service at the moment is by using the servicemix-camel component and create Camel routes that use the camel-http component (http://camel.apache.org/http.html). This Camel component basically allows you to send any kind of HTTP request and gives you the response so you can start working with that too. Regards, Gert Vanthienen ------------------------ Open Source SOA: http://fusesource.com Blog: http://gertvanthienen.blogspot.com/ 2009/5/27 awhelan <[email protected]>: > > I figured there wasn't a way to deploy the WAR to the service bus(although > thanks for the ServiceMix 4 OSGi tip! It's something to consider. Trouble is > FUSE 4.1.0.0 is in what they are calling an Incubation period and I had > nothing but trouble with it.). > > I wanted to run it externally(say in Tomcat) to ServiceMix on a different > port and configure it into the ServiceMix bus. I figured there is a way to > configure/build a ServiceMix Service Engine to except the HTTP GET, POST, > and PUT call and then do something with them. Does this make sense? > > > Gert Vanthienen wrote: >> >> L.S., >> >> In ServiceMix 3.3, there is no way of deploying a WAR file directly on >> the ESB. If you had been using JAX-RS, we probably could enhance >> something with the CXF component to support it, but for the >> org.restlet framework we would have to build a specific component to >> get it working or somehow hook it up in the servicemix-http component. >> >> The good news is that ServiceMix 4.0.0 (aka FUSE ESB 4.1.0.0) does >> support deploying a WAR file. You get all the 'classic' JBI >> components packaged in ServiceMix 3.3, but we built an entirely new >> OSGi-based container that still supports deploying JBI artifacts, but >> also plain Spring XML files, OSGi bundles and WAR files. This way, >> you would be able to deploy your existing WAR file as well as leverage >> any investment you made in JBI artifacts. >> >> Regards, >> >> Gert Vanthienen >> ------------------------ >> Open Source SOA: http://fusesource.com >> Blog: http://gertvanthienen.blogspot.com/ >> >> >> >> 2009/5/27 awhelan <[email protected]>: >>> >>> Hello, >>> >>> I have an existing piece of software. It is a RESTful service web >>> application written using the org.restlet framework. It deploys as a >>> servlet >>> in a WAR file. I am wondering if you servicemix veterans can give me some >>> insight about the best way to expose this through servicemix. >>> >>> I was able to expose it throught the BEA/Orace ESB and now I am looking >>> to >>> expose it using Fuse 3.4.0.2 (and am not finding the documentation >>> helpful >>> in exposing a web application (WAR) based service in fuse. It all seems >>> geared towards SOAP based web services and JMS based services. >>> Even tips on exposing a CGI service/servlet would be helpful. >>> >>> Any help suggestions would be appreciated. >>> -- >>> View this message in context: >>> http://www.nabble.com/Exposing-an-HTTP-%28GGI-RESTFul%29-service-in-servicemix-tp23746674p23746674.html >>> Sent from the ServiceMix - User mailing list archive at Nabble.com. >>> >>> >> >> >> ----- >> --- >> Gert Vanthienen >> http://gertvanthienen.blogspot.com >> > > -- > View this message in context: > http://www.nabble.com/Exposing-an-HTTP-%28GGI-RESTFul%29-service-in-servicemix-tp23746674p23748047.html > Sent from the ServiceMix - User mailing list archive at Nabble.com. > >
