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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:51:43+00:00 2026-06-09T16:51:43+00:00

I have a situation where in my web layer, I do a remote EJB

  • 0

I have a situation where in my web layer, I do a remote EJB lookup and cache the initial context. Now the remote EJB is deployed in a WAS cluster. so if the remote ejb is deployed across server1,server2 and server3 and let us say the first time, the initial context pointing to server1 is cached.

After this server1 goes down but other servers are still up. But because the initial context is cached, the ejb calls fail.

Now the simple solution is to remove the cache and do a fresh lookup every time. But that would degrade performance. Is there a way to have the best of both worlds here…reliability and also performance?

  • 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-09T16:51:44+00:00Added an answer on June 9, 2026 at 4:51 pm

    The list of bootstrap servers in the corbaloc: provider URL is only used when the InitialContext is constructed. During the construction of the context, the client gets a list of servers that can answer lookups for that context, and only that list is used afterwards. If the bootstrap servers in the provider URL are cluster members, then the InitialContext will continue to work as long as at least one cluster member is running. Therefore the InitialContext can be safely cached.

    Note that things are different if the bootstrap servers in the provider URL are not cluster members, but node agents. In that case, the InitialContext referes to a context specific to a single node agent and lookups will fail when that node agent is down. This is the case even if multiple node agents are specified in the provider URL: one of the node agents is chosen during construction of the InitialContext and the selection will not change afterwards.

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

Sidebar

Related Questions

I have this situation: web application with cca 200 concurent requests (Threads) are in
I have following situation: String a = A Web crawler is a computer program
I have a situation where i call a web service and it returns me
My Situation I have developed a web service for document analysis This web service
Here is the situation : we have to offer a customer with a web-based
I'll try to describe the situation. We have a web service; on each request
i have the following situation, i have a Reporting layer(stand alone) in asp.net application(NOT
Here's the situation: I have a web application which response to a request for
We have a situation where two web applications are working on the same database.
I have a situation where my web application sits and waits for a request

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.