• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Service Tag in Server.XML

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ranchers,

I have 2 web-apps running under 1 Tomcat instance Both applications are initializing some System attributes when it's started. so i used two <service> tags in the server.xml this works fine but it needs two ports(8081,8082).

but I need that both web-apps should be listened from one port (8081). Is that possible

I am working with tomcat4.1.0.

thanks in Advance
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
a tomcat Service does not have a port attribute. That's on the enclosing Server component. And as the Tomcat docs state, you can have one or more Service components within a Server. So set up both your Services under the same Server, listening on whatever port you want them to share.
reply
    Bookmark Topic Watch Topic
  • New Topic