Can I deploy a web services in my application without a http containter?
huang gang
Greenhorn
Joined: Nov 17, 2002
Posts: 13
posted
0
Hi, all
I wonder if I can write a web services server in my standalone application without start a HTTP container?
Is there any example?
thanks very much.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 32767
posted
0
Most web services work over HTTP -hence the name *WEB* service-, but you can use SMTP or a messaging service (JMS) if you really need to. But since you'll need some kind of server anyway, you might as well go with HTTP, which is much more widely used than the other options. Tomcat can be embedded in another (desktop) Java application, if you don't want a dedicated web server. Just deploy Axis in it, turn off the other HTTP entry points, and you have your web-service-but-not-HTTP server. You can download a special version of Tomcat for embedded use; it's much smaller than the regular version. [ August 09, 2005: Message edited by: Ulf Dittmer ]