Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8106459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:28:25+00:00 2026-06-06T00:28:25+00:00

Here is what I would like to achieve: I have a web service A

  • 0

Here is what I would like to achieve:

I have a web service A which I want to be able to deploy side by side with other web services of type A – different version(s). For now I assume 2 instances side by side. I need it because the service has a warm up stage, which takes some time to build up stuff from DB and only after it is ready it can start serving requests …

I was thinking to deploy to Tomcat6 context paths like: “/ServiceA-1.0”, “/ServiceA-2.0”
and then have a “virtual” context like “/ServiceA” which will point to the desired physical service e.g. “/ServiceA-1.0”. So external world will know about ServiceA, but internally, my ServiceA related stack would know about versioned ServiceA url ( there are more components involved but only ServiceA is serving outer world ). When new service is ready, I would just reconfigure the “virtual” context to point to a new service.

So far, I was not able to find out how to do this with Tomcat and starting to tkink it is not possible. I found suggestions to place Apache Server in front of Tomcat and do the routing there, but I do not want to enroll another piece of software unless necessary.

My questions are:
– is this kind of a “virtual” context and routing possible to do with Tomcat6?
– any other options, wisdom and lessons learned how to achieve this kind of service swapping scenario?

Best,
Jozef

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T00:28:27+00:00Added an answer on June 6, 2026 at 12:28 am

    Given the warm up period that you mention I assume that you want more or less uninterrupted service when you switch implementations. This really is easy to handle with an Apache in front.

    I typically enjoy the flexibility I get from this extra layer. Apache is not too invasive on your system. Plus – if you run on unix – it’s trivial (read: default) to have Apache listen on port 80 while you’ll have to go extra miles to make tomcat listen on port 80 and not run as root.

    If you have never touched Apache, be assured that it’s easy to learn in short time. Especially when you don’t need the full power that it brings. Configuring a reverse proxy (or mod_jk) is well documented everywhere. And the feature you mention is a hybrid of reverse proxy and load balancer – even if you only have one server to balance the load “between”, you’ll have two different contexts/versions.

    Don’t fear the Apache, you’re on the right path 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web-site based on PHP, to which I would like to add
What I would like to achieve here is a user selects an operator, e.g.
A bit of a complex problem to describe here: I would like to have
Here is the idea I would like to develop. I need to have an
Assume I have a RESTful web service, which holds information about an object that
I have an ajax script which fetches results from a web-service and displays them
What I have below is some notification code. What I would like to achieve
$('#selector').click(function() { // here I would like to load a javascript file // let's
I'm following the documentation here as I would like to add Actors to the
I am using jquery uploader from here and I would like to know how

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.