I would recommend using Apache CXF instead of XFire. CXF is a bit of the next XFire version, and XFire is not developped anymore. Exposing a bean as an HTTP service is just a matter of a few lines of xml configuration.
http://svn.apache.org/repos/asf/servicemix/smx4/features/trunk/examples/cxf-osgi/src/main/resources/META-INF/spring/beans.xml Using spring DM, we could easily use an existing service instead of simply giving the class name. Also note that this example uses CXF and expose the service over HTTP using the OSGi HTTP service. This example can be deployed onto ServiceMix Kernel which is based on Felix. If you want to have a look at it, have a look at http://servicemix.apache.org/smx4/cxf-examples.html, which contains very basic instructions on how to deploy this sample (ServiceMix 4 is evolving quite quickly, so if you have any problems, join our mailing list and we'll fix it asap). On Fri, Apr 18, 2008 at 2:20 PM, Marcel Offermans <[EMAIL PROTECTED]> wrote: > On Apr 18, 2008, at 14:08 , Niklas Gustavsson wrote: > > > > On Fri, Apr 18, 2008 at 2:01 PM, Marcel Offermans > > <[EMAIL PROTECTED]> wrote: > > > > > This is what we have done for "remoting" OSGi services (either as SOAP > or > > > REST services or even JMX mbeans). The remoting bundle just listens for > > > services with either a property (or you can even use @annotations if you > > > don't mind running on at least Java 5). > > > > > > > Yeah, I forgot to mention using the JSR-181 annotations. Funny enough > > since it's the way I'm currently thinking about going forward :-) > > > > That's what we did too, because those then allow you to simply feed those > into your SOAP framework of choice. > > > > > For the remoting bundle, are you using something openly available? > > > > We created a bundle based on XFire, but this was already done about two > years ago and it was part of a commercial project. It should not be too hard > though to bundle up XFire or something similar and either use the > HttpService or embed a webserver in that same bundle. > > Greetings, Marcel > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

