• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Redeploy EJB at runtime + weblogic

 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using WLS6.1 SP4. My application is in exploded format
I am trying to redeploy an EJB with some changes, and the container is still loading the old EJB. However it picks up the changed EJB if I restart the server. The change that I am making is only inside the actual EnterpriseBean. Not touching either Home or Remote iterfaces. I also made sure that a different version of the EJB is not in the classpath.
Has anyone encountered a similar problem ? Its really a pain to restart the server if I can do it with just a redeploy.
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I normally don't have problems redeploying EJBs in WebLogic if the interfaces haven't changed. The biggest issue I have is that WebLogic needs to redeploy the entire ear even if only a single EJB has changed. Sometimes the redeployment fails but an error should be thrown in this case. In general, I don't trust the hot deployment of EJBs for anything except for development.
How are you trying to redeploy? Are you using the console or the command line utility?
Simon can you move this into the WebLogic forum?
 
dinesh pande
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using the console for redeployment. I have my entire application in exploded format (not as an EAR).
Even I think it is possible to redeploy an ejb by redeploying the entire application.
However, I am looking for ways where a single EJB can be redeployed with out having to redeploy my entire application (with above 100 ejbs).
Also, does Development-mode/Production-mode has any role in redeployment of a single ejb ?
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
Beans are Hot deployed only in the Development-Mode. WL server automatically makes the required
entries in config.xml file at the time of Hot deployment.
If your server is in the Production mode then you have to make entries in config.xml by manually or
by deploying been from console.
I belive your server is in Production mode that is why Beans are gets deployed only
after server restart.
Set your server in Deployment-mode (in startWeblogic.cmd ) and you just need to copy u r modified beans
in the deployment directory (..\config\mydomain\applications\). It will be gets deployed
Sunil Sahu
System Architect
sunilsahu007@yahoo.com
 
reply
    Bookmark Topic Watch Topic
  • New Topic