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

Multiple Web Services Running On one Axis Engine  RSS feed

 
wei ma
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on a research project about Web Services. Since we do not have enough computers to form a "Web Service Network". I have to simulate the "network" by installing multiple web services on same Axis Engine. The idea is that each Web Service will take one unique port, after Web Services being launched, they should be able to cooperate to each other as if they are running on differnt computers.
I believe that there is a way to assign port numbers to Web Services. But I just don't know how to do it with Axis engine. Does anyone have an answer for this?
Thank you very much!!
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think u can run tomcat at different port by changing the port number in server.xml file,but i'm not sure what the consequence u will face both in webservices and tomcat point of view.
regards
balaji
 
Peter Reinhardt
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think there is a way of having several ports for your web server (tomcat).
The question is really what your research project is all about (say if you test network speed) and what you gain if your webservices run on several ports instead of just one port (A more interesting question is rather, one VM or several VMs).
you can certainly have several instances of tomcat on different ports, but this just slows your machine down (and is no good simulation in terms of speed).
Peter
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't start different web services on different ports in the same Axis engine because the Axis engine only runs inside ONE servlet inside Tomcat, which only listens for HTTP on ONE port. You would have to start multiple copies of Tomcat, each listening on a different port, as described earlier. That would probably meet your requirement. It should be easy -- just create multiple copies of the entire Tomcat+Axis directory structure and change the configuration file in each one.
Kyle
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!