Discussions

EJB programming & troubleshooting: Hot deployment question

  1. Hot deployment question (1 messages)

    What happens when i update a bean to fix a bug, and deploy it using hot deployment.
    Can i keep the old instances of the bean running, while requests for new beans can get updated bean instances.
  2. Hot deployment question[ Go to top ]


    Ravi,
    When you use the hot deployment feature (for updation of beans), the currently-loaded implementation classes for the EJB are immediately marked as unavailable in the server, and the EJB's classloader and associated classes are removed. WebLogic Server automatically propagates a RedeploymentException to all clients that were using the bean. At the same time, a new EJB classloader is created, which loads and maintains the revised EJB implementation classes.When clients next acquire a reference to the EJB, their EJB method calls use the updated EJB implementation classes.
    Bhavesh Bhammar