File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Stand alone Java Process as a web server server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Stand alone Java Process as a web server server" Watch "Stand alone Java Process as a web server server" New topic
Author

Stand alone Java Process as a web server server

Krishna D. Bhat
Greenhorn

Joined: Feb 25, 2007
Posts: 10
I have a requirement to Deploying Web service on runtime i.e. starting web service container in Java Program.

I saw in http://today.java.net/pub/a/today/2007/07/03/jax-ws-web-services-without-ee-containers.html as to how Web service can be deployed in Java program in J2SE 6.0.

But I want to implement same in J2SE 5.0.

Can you please let me know the ways??

Thnaks
Krishna


SCJP: 96% SCWCD: studying
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39550
    
  27
You can embed a Tomcat instance in the application. See this article for how to do this. Since both Axis and JAX-WS are web applications they can be deployed in Tomcat.


Ping & DNS - updated with new look and Ping home screen widget
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2906
Jetty is often used as a lighter-weight alternative to Tomcat.

Also Axis2 comes with org.apache.axis2.transport.http.SimpleHTTPServer. How do I Embed SimpleHTTPServer in My Application and Deploy a POJO?.
[ February 05, 2008: Message edited by: Peer Reynders ]

"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
yuling chen
Greenhorn

Joined: May 20, 2006
Posts: 2
Hi,

I'm new to J2SE6 web services. Is the light weight HTTP Server that comes with J2SE6 equivalent to Jetty? Is there anyway to get HTTPSession information from this light weight HTTP Server?

Thanks,

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Stand alone Java Process as a web server server
 
Similar Threads
Passed SCEA part1
axis2 with netbeans 6.1
Deploy JAXWS (Axis2) in Tomcat.
Starting Out
Web Services And JMS