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 778343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T19:44:56+00:00 2026-05-14T19:44:56+00:00

i am new to servlet programming. i want to know that… is it possible

  • 0

i am new to servlet programming. i want to know that… is it possible to pass objects between two servlets residing on different application servers??? say two tomcat servers…

means what i want to do is:
[browser]–> [app server 1 performs some operation on data]–> [server 2 does some operation on data]

i am sure it is possible but can anyone tell me how??

  • 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-05-14T19:44:56+00:00Added an answer on May 14, 2026 at 7:44 pm

    Short of server clustering (which you don’t want to get into at this point, trust me), the only way to do this is to send a redirect from the first server to the other, encoding the data you want to send on to the URL.

    You can’t pass the actual object, since the servlets are on different servers, so passing data is the best you’ll be able to manage.

    If you do fancy playing with Tomcat clustering, then this gives the facility of storing objects in the HTTP session which are replicated across all servers in the cluster. I’d definitely categorise this is as “advanced usage”, though, and not something to get into if you’re new to this stuff.

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

Sidebar

Related Questions

I have Servlet that looks something like this: public class MyServlet extends Servlet {
I have servlet that does the following: public class LoginServlet extends HttpServlet { protected
Ok im new to AJAX. Kind of know about the lifecycle of a request,
I'm pretty new to Servlets and JSP and to using databases. At the moment
I've written the code for a servlet to serve images in my app from
I am designing a simple web-based application. I am new to this web-based domain.I
I've created a web app that uses OAuthentication to log in to Twitter and
I'm writing my Servlet application and would like to use the following static method
I have the following action servlet and was wondering if I should create a
I'm somewhat new to Spring (using 3.0), so I'm hoping there is a simple

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.