Return-Path: Delivered-To: apmail-axis-java-user-archive@www.apache.org Received: (qmail 22388 invoked from network); 28 Oct 2010 16:39:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Oct 2010 16:39:46 -0000 Received: (qmail 84518 invoked by uid 500); 28 Oct 2010 16:39:45 -0000 Delivered-To: apmail-axis-java-user-archive@axis.apache.org Received: (qmail 84390 invoked by uid 500); 28 Oct 2010 16:39:44 -0000 Mailing-List: contact java-user-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@axis.apache.org Delivered-To: mailing list java-user@axis.apache.org Received: (qmail 84382 invoked by uid 99); 28 Oct 2010 16:39:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Oct 2010 16:39:44 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.125.82.173] (HELO mail-wy0-f173.google.com) (74.125.82.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Oct 2010 16:39:40 +0000 Received: by wyj26 with SMTP id 26so2093213wyj.32 for ; Thu, 28 Oct 2010 09:39:18 -0700 (PDT) Received: by 10.227.156.210 with SMTP id y18mr11111284wbw.63.1288283958099; Thu, 28 Oct 2010 09:39:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.227.144.211 with HTTP; Thu, 28 Oct 2010 09:38:42 -0700 (PDT) In-Reply-To: References: <201010281813.11474.m.fernau@cps-net.de> From: Martin Makundi Date: Thu, 28 Oct 2010 19:38:42 +0300 Message-ID: Subject: Re: how to embed axis2 using jetty as http-server? To: java-user@axis.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable BTW: This might be useful for the basic use case, web.xml: org.apache.axis.transport.http.AxisHTTPSessionListener quickstart wicket.quickstart.TakpServlet applicationClassName wicket.quickstart.TakpApplication 1 AxisServlet Apache-Axis Servlet org.apache.axis.transport.http.AxisServlet AdminServlet Apache-Axis AdminServlet org.apache.axis.transport.http.AdminServlet 100 quickstart /* AxisServlet /servlet/AxisServlet AxisServlet /axis/services/* AdminServlet /servlet/AdminServlet wsdl text/xml xsd text/xml 2010/10/28 Martin Makundi : > Hi Martin! > > I have been seeking to do the same. I also use jetty also but have not > found a way to deploy PROGRAMMATICALLY. > > I have found that I always need to configure my services to > server-config.wsdd file. Without that it doesn't seem to work, at > least with JAX-WS web services. > > However, if you find a way to do it, let me know ;) > > http://efreedom.com/Question/1-3545492/Howto-Specify-BeanSerializer-Compl= ex-DataType-Jax-Ws-Using-Axis2 > http://efreedom.com/Question/1-3479663/Deploy-JAX-WS-Service-Jetty-Axis2-= Complex-Datatypes > ** > Martin > > > 2010/10/28 Martin Fernau : >> Hello, >> >> I try to find a way to use the axis2 engine with my embedded jetty-serve= r. >> There must be a solution for this - but I can't find a way to get it to = work. >> >> I want to add webservices _programmatically_ - I don't want to use aar-F= iles >> for deploying. What I have so far: >> >> 1) I can embed axis2 in my application using SimpleHTTPServer and >> programmaticly add webservices using the ConfigurationContext object. Bu= t this >> way I need to use the SimpleHTTPServer which I don't want to. >> 2) I can use the embedded Jetty-Server and deploying axis2 like this: >> --- cut >> Server server =3D new Server(8080); >> ServletContextHandler context =3D new >> =A0 ServletContextHandler(ServletContextHandler.SESSIONS); >> context.setContextPath("/"); >> server.setHandler(context); >> >> AxisServlet axis =3D new AxisServlet(); >> ServletHolder sh =3D new ServletHolder(axis); >> sh.setInitParameter("axis2.repository.path", "/some/where/repo"); >> context.addServlet(sh,"/services/*"); >> >> server.start(); >> --- cut >> This way axis2 require a repository at "/some/where/repo". There I need = to >> have the 'services' directory where I can place my aar-files. Axis will >> recognize the aar-files and add them during runtime. This works but this= isn't >> what I want to have. >> >> I need to develop a server for our application which needs to be extensi= ble >> with plugins. These plugins needs to be able to add functionality to the >> server like adding a new servlet (thus I need to use jetty which allows = me to >> programmatically add servlets during runtime) and/or adding a new webser= vice. >> To be as flexible as possible I try to find a way that I don't need to m= anage >> external aar-Files. >> >> My question is: Is there a way to embed axis2 like I did with example 1 = but >> use embedded jetty as http-server like I did in example 2?? >> >> Best Regards, >> Martin >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org >> For additional commands, e-mail: java-user-help@axis.apache.org >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org For additional commands, e-mail: java-user-help@axis.apache.org