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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:08:52+00:00 2026-06-10T12:08:52+00:00

using the ServletContext to enable communication between Servlets within the same Application is quite

  • 0

using the ServletContext to enable communication between Servlets within the same Application is quite nice and I wonder if there’s a comparable way to enable communication between servlets from different apps (which are deployed on the same Servlet-Container?

The background is that I’ve two applications which could be distributed to multiple servers. In that case they’re supposed to communicate via SOAP – but in case they’re both hosted in the same server (and Servlet-Container) I’d like to avoid the SOAP overhead and have direct communication.

Any suggestions?

Cheers

  • 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-10T12:08:53+00:00Added an answer on June 10, 2026 at 12:08 pm

    Such API existed in the first version of Servlet API. You could find other servlets from servlet context and call them. I doubt you could call servlets from other web applications.

    Anyway this API was deprecated and is not supported more. The reason is that EJBs were introduced. Servlets play role of a web front-end only. They should not implement business logic and therefore should not communicate with each other.

    The modern way to perform communication among different application is either using web services or EJB or if you are using Spring – their remote mechanisms or messaging.

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

Sidebar

Related Questions

grails cf-push results in errors listed below. Is there a way using the cloudfoundry
Is there a way to initialize the ServletContext for a webapp on a Resin
Why would we set ServletContext parameters using the setAttribute() method, as we can accomplish
Using SQL Server 2008 R2 we are looking for a way to select the
What (if any) is the difference between storing a variable in the ServletContext and
Why is below exception occuring ? Are there issues using google app engine with
I have my application using Spring MVC + Apache 2 tiles + Spring security,
I'm looking how I could get an Injector using Guice in a web application.
Did anyone encountered this exception while using Jena in Java Web Application... Please Kindly
What is the benefit of using the servletContext as opposed the request in order

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.