The moose likes Web Services and the fly likes Can I deploy a web services in my application without a http containter? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Can I deploy a web services in my application without a http containter?" Watch "Can I deploy a web services in my application without a http containter?" New topic
Author

Can I deploy a web services in my application without a http containter?

huang gang
Greenhorn

Joined: Nov 17, 2002
Posts: 13
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
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 ]

Android appsImageJ pluginsJava web charts
huang gang
Greenhorn

Joined: Nov 17, 2002
Posts: 13
tomcat can be integrated into my app? that's great! many thanks for your suggestion!

I am a green horn at this,
 
 
subject: Can I deploy a web services in my application without a http containter?
 
Threads others viewed
Send sms from java application
Deploying the Eclipse generated web service client on Tomcat
Usage of webservices in a Application
Change Web Service Permission
Rich Internet Applications
MyEclipse, The Clear Choice