axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <dava...@gmail.com>
Subject [Fwd: [Axis2] Starting a JAXWS service in another bundle]
Date Fri, 22 Feb 2008 16:37:25 GMT
-----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 <davanum@gmail.com>
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


Mime
View raw message