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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:36:50+00:00 2026-05-31T04:36:50+00:00

In Java when I have an application running in appserver like glassfish, with my

  • 0

In Java when I have an application running in appserver like glassfish, with my application deployed as EJB. When I undeploy EJB what happens to to sigletone classes that a loaded into memory. I understand until I restart the container they are present there and can be garbage collected but I am not sure where and when it will happen, So if I deploy the ejb once again it may pick up the old objects from jvm,
?

  • 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-31T04:36:52+00:00Added an answer on May 31, 2026 at 4:36 am

    Each deployed app is loaded with its own separate classloader. Since the classloader is part of a class’s identity, the same class can be loaded multiple times (with different configuration) without the different instances interfering with each other.

    This effectively isolates different applications within an app server from each other and even allows the same application to be run twice in parallel.

    When an application is undeployed, all its objects (including the classloader and thus the classes themselves) will be garbage collected, if no references to them remain. Unfortunately, it can happen that references remain in some system class and prevent the garbage collection – this is called a classloader leak.

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

Sidebar

Related Questions

We have a Java EE-based web application running on a Glassfish app server cluster.
I have a Java EE application running under Glassfish. After some recent changes we
I have a Java EE application running on Glassfish and connecting to MSSQL Server
So I have a java desktop application running on a server. I would like
We have an application running Sun Glassfish app server with Java (JAXRS if it
I have an external Windows .exe that is actually Java application: Running the .exe
I have an Java application running in JBoss in which I have enabled JMX
I have J2SE application running in 1.5 java VM in RHEL OS. One of
I have a distributed Java application running on 5 application servers. The servers all
We have a java application ( Atlassian Bamboo) running on port 8085 on Windows

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.