Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 67124 invoked from network); 22 Feb 2008 16:38:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Feb 2008 16:38:59 -0000 Received: (qmail 63178 invoked by uid 500); 22 Feb 2008 16:38:52 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 63137 invoked by uid 500); 22 Feb 2008 16:38:52 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 63126 invoked by uid 99); 22 Feb 2008 16:38:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Feb 2008 08:38:51 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of davanum@gmail.com designates 209.85.142.184 as permitted sender) Received: from [209.85.142.184] (HELO ti-out-0910.google.com) (209.85.142.184) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Feb 2008 16:38:18 +0000 Received: by ti-out-0910.google.com with SMTP id d10so393912tib.18 for ; Fri, 22 Feb 2008 08:38:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:x-enigmail-version:content-type:content-transfer-encoding; bh=PURaLlZ7L/3cZ3kMT9OLEhOqmbb9JrslPLQCt/AxG2w=; b=FrI1tTqjDu/6IdpKbJi9+5DQX3N9gSuPOqMidgH0rtQSOemSiDjKK0lubZZDSeC7XQbJxl6VaENuNlY9FVDdjLs7Dx99BfDmvj7lkJuNCfIJBoT6tZdhqce/kIW5g1+gYq3imW0KCpcmCMh50IW7gDzkKLhGeur0Q558lCeEop0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:x-enigmail-version:content-type:content-transfer-encoding; b=A4pX3DAJkCxOoIos8mJN7OmS+Zdr0IewU6TGbkHUxqU/xAWL5/ALrUHNAgPUyIKfJ5tm9bGXi6Yc8BT9CVnKWEb65gVgqJ0F5Zj1WHgauHoJKOWbkuSyxVjOKY0JYa2tcd9n31/4oSREW4PLYGxKoz0fX77Y2rYkVxD7T3Z7bqs= Received: by 10.110.47.7 with SMTP id u7mr145432tiu.58.1203698306295; Fri, 22 Feb 2008 08:38:26 -0800 (PST) Received: from ?192.168.2.102? ( [66.31.152.180]) by mx.google.com with ESMTPS id i15sm2824842wxd.17.2008.02.22.08.38.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 22 Feb 2008 08:38:25 -0800 (PST) Message-ID: <47BEFA45.9010904@gmail.com> Date: Fri, 22 Feb 2008 11:37:25 -0500 From: Davanum Srinivas User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: axis-dev@ws.apache.org Subject: [Fwd: [Axis2] Starting a JAXWS service in another bundle] X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Apologies if you see this twice...i sent the first one with a zip file, but it never got thru to the ml, here's a url instead. http://ws.zones.apache.org/~dims/calculator.zip thanks, dims - -------- Original Message -------- Subject: [Axis2] Starting a JAXWS service in another bundle Date: Fri, 22 Feb 2008 11:26:37 -0500 From: Davanum Srinivas To: axis-dev@ws.apache.org Team, FYI, Got this scenario working. Here's the log as proof :) Here's a sample calculator project i used to test the functionality. Basically we register the Axis2 bundle, it starts listening to new bundles being started, when it finds one, it peeks into the classes and deploys any JAXWS service or serviceprovider annotations. if one stops the calculator bundle, axis2 automatically stops the service as well. You can point your browser to http://localhost/axis2/services/CalculatorService?wsdl and use any tool to invoke the web service as well. thanks, dims PS: auto generation of wsdl using JAXWS RI is not done yet (class loader issues). So you will need to specify wsdl/xsd in the web service using wsdlLocation. ==================================================== C:\equinox>java -jar plugins\org.eclipse.osgi_3.3.1.R33x_v20070828.jar -console Feb 22, 2008 11:13:33 AM org.mortbay.http.HttpServer doStart INFO: Version Jetty/5.1.x Feb 22, 2008 11:13:33 AM org.mortbay.util.Container start INFO: Started org.mortbay.jetty.servlet.ServletHandler@1b54362 Feb 22, 2008 11:13:33 AM org.mortbay.util.Container start INFO: Started HttpContext[/,/] Feb 22, 2008 11:13:33 AM org.mortbay.http.SocketListener start INFO: Started SocketListener on 0.0.0.0:80 Feb 22, 2008 11:13:33 AM org.mortbay.util.Container start INFO: Started org.mortbay.http.HttpServer@29c204 osgi> ss Framework is launched. id State Bundle 0 ACTIVE org.eclipse.osgi_3.3.1.R33x_v20070828 1 ACTIVE org.eclipse.equinox.http.jetty_1.0.1.R33x_v20070816 2 ACTIVE javax.servlet_2.4.0.v200706111738 3 ACTIVE javax.servlet.jsp_2.0.0.v200706191603 4 ACTIVE org.eclipse.equinox.http.servlet_1.0.1.R33x_v20070816 5 ACTIVE org.eclipse.equinox.servletbridge_1.0.1.R33x_v20070816 6 ACTIVE org.eclipse.equinox.http.servletbridge_1.0.0.v20070523 7 ACTIVE org.eclipse.osgi.services_3.1.200.v20070605 8 ACTIVE org.mortbay.jetty_5.1.11.v200706111724 9 ACTIVE org.apache.commons.logging_1.0.4.v200706111724 osgi> install file:C:\Apache\axis2\modules\osgi\target\axis2-osgi-SNAPSHOT.jar Bundle id is 60 osgi> start 60 [Axis2/OSGi] Registering Axis2 Servlet log4j:WARN No appenders could be found for logger (org.apache.axis2.deployment.WarBasedAxisConfigurator). log4j:WARN Please initialize the log4j system properly. [Axis2/OSGi] Starting Bundle Listener osgi> install file:c:\equinox\calculator\calculator.jar Bundle id is 61 osgi> start 61 Calculator bundle - Started osgi> [Axis2/OSGi] Starting any services in Bundle - Calculator [Axis2/OSGi] Deployed ServiceGroup - Calculator [Axis2/OSGi] Service - CalculatorService osgi> 0+0 = 0 3+4 = 7 ==================================================== -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Cygwin) iD8DBQFHvvpFgNg6eWEDv1kRArdtAJ4ys/xnzSpPyL3njeQuTUXLHiBHmwCfSe5P bAFIvV+hauWOJqusZRb07kE= =SwsJ -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org