Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
huang gang
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
huang gang
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tomcat can be integrated into my app? that's great! many thanks for your suggestion!

I am a green horn at this,
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!