Hi,
You can try code as below:
String repo = "./repo"; //where you repo dir of axis2 simple server
located
ConfigurationContext context =
ConfigurationContextFactory.createConfigurationContextFromFileSystem(
repo, null);
SimpleHTTPServer server = new SimpleHTTPServer(context, 8085);
server.start();
Best Regards!
Lizhao Chen
________________________________
From: cat ting99 [mailto:[EMAIL PROTECTED]
Sent: Friday, September 07, 2007 7:32 PM
To: [email protected]
Subject: How to embed Axis2 into standalone Java Application?
Hello all,
Here I would like to know how to integrate Axis2 into standard Java
application.
My scenario is a typical asynchronous web service scenario:
My Java client application needs to send a soap-based subscription
request to a remote web service, and then wait for the soap-based
notifications using a local web service.
However, rather than have these two logic running as separate entities
(one as java app and the other runs in a servlet container), I would
like to integrate them into one standalone java app which these two
logic runs in two threads but can communicate with each other within the
application rather than using other channels such as TCP socket.
So I would like to know how could the above requirements be met by
embedding Axis2 into standard Java application and still be able to
communication between the standard Java thread and the Axis2
application?
Any comments are welcome!
Thanks in advance
/ M.L
============================================================
The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader
of this message is not the intended recipient, or an employee
or agent responsible for delivering this message to the
intended recipient, you are hereby notified that any reproduction,
dissemination or distribution of this communication is strictly
prohibited. If you have received this communication in error,
please notify us immediately by replying to the message and
deleting it from your computer. Thank you. Tellabs
============================================================