Hi On Thu, Jul 7, 2011 at 9:57 AM, Skusa, Andre <[email protected]> wrote: > Hi there, > > this is a basic question about the configuration of the target plattform for > using Apache CXF DOSGI. > > My general goal is to provide some of my OSGi services as web service. It > doesn't matter for me, on which way. I found it elegant and simple, to use > CXF DOSGI since I only need to set some properties in my XML service > definition. > > The complication is that I also use my OSGi application as plattform for a > web application. Here I'm applying the Eclipse Jetty Starter Kit > (http://wiki.eclipse.org/Jetty/Tutorial/EclipseRT-Jetty-Starter-Kit) as > target plattform, which even allows me to deploy JSF2 applications. > > As far as I understood CXF DOSGI, it comes with an own web server. > Surprisingly I managed to combine both, the Jetty-OSGI and CXF DOSGI (in the > single bundle distribution), to one target plattform and it worked out. I got > my web application as well as the web service at the same address with the > same port! > > I'm wondering how this works, if really two web servers has been started for > that. Or am I wrong with that? >
When you use a context parameter to configure a port, then (OSGI) HTTPService will be used and the web server will be reused...I'm presuming jetty-OSGI also uses HttpService. > So, my question simply is, whether and how I can use both, Jetty-OSGi and > DOSGi. Or whether this is the right approach at all to provide web services > from an OSGi base. Maybe I can apply the usual JAX-WS way by using the > already running Jetty? > I guess the main difference is how the endpoint publication is initiated - if you drive the process from OSGI, from the custom activators for ex, without being necessarily aware of whether it's JAX-WS or something else that will be used to underpin the exposed endpoint, then this is where DOSGi will be a good choice... Cheers, Sergey > Thanks in advance, > > Andre > > > Dr. Andre Skusa > > WINCOR NIXDORF International GmbH > Retail Division > > RSS - Retail Store Solutions > > Mail: Heinz-Nixdorf-Ring 1, 33106 Paderborn, Germany > Phone: +49-5251-693-4701 > > E-Mail: [email protected]<mailto:[email protected]> > > Web: www.wincor-nixdorf.com<http://www.wincor-nixdorf.com/> > > _____________________________________________________ > WINCOR NIXDORF International GmbH > Sitz der Gesellschaft: Paderborn > Registergericht Paderborn HRB 3507 > Geschäftsführer: Eckard Heidloff (Vorsitzender), Stefan Auerbach, Dr. Jürgen > Wunram > Vorsitzender des Aufsichtsrats: Karl-Heinz Stiller > Steuernummer: 339/5884/0020 - Ust-ID Nr.: DE812927716 - WEEE-Reg.-Nr. > DE44477193 > > > WINCOR NIXDORF International GmbH > Sitz der Gesellschaft: Paderborn > Registergericht Paderborn HRB 3507 > Geschäftsführer: Eckard Heidloff (Vorsitzender), Stefan Auerbach, Dr. Jürgen > Wunram > Vorsitzender des Aufsichtsrats: Karl-Heinz Stiller > Steuernummer: 339/5884/0020 - Ust-ID Nr.: DE812927716 - WEEE-Reg.-Nr. > DE44477193 > > Diese E-Mail enthält vertrauliche Informationen. > Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich > erhalten haben, > informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. > Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist > nicht gestattet. > > This e-mail may contain confidential information. > If you are not the intended recipient (or have received this e-mail in error) > please notify the sender immediately and destroy this e-mail. > Any unauthorised copying, disclosure or distribution of the material in this > e-mail is strictly forbidden. > -- Sergey Beryozkin http://sberyozkin.blogspot.com Talend - http://www.talend.com
