Solved

Deploying, ReDeploying JAR file to WebLogic without restarting the server!

Posted on 2008-10-31
10
2,064 Views
Last Modified: 2013-12-12
We have an application which has requirement of deploying the part of application business logic at Run time.

We have an interface where we can browse the JAR file and deploy it to the underlying WebLogic server. We are able to deploy the JAR file at run time and invoke the class within that JAR.

We are facing the problem when that class logic is modified and it needs to be deployed again. We were not able to deploy the changes at run time without restarting the WebLogic. WebLogic is taking the same old version of the class and invoking it.

Is there any way to ask WebLogic to load class again in memory from underlying JAR file.
0
Comment
Question by:techprocess
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
10 Comments
 
LVL 10

Expert Comment

by:rajesh_bala
ID: 22857644
You can try checking some of the admin MBeans. Which weblogic version is it. 9.x/10.x/8.x??
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
LVL 3

Author Comment

by:techprocess
ID: 22864715
We are using WebLogic 9 in Development & UAT environment, WebLogic 10 in production environment.
0
 
LVL 3

Author Comment

by:techprocess
ID: 22864734
The class we are deploying is simple JAVA class included in the JAR file. The links suggested talks about EAR and EJBs, can it be possible to redeploy standard JAVA class without restarting WebLogic?? We tried to use "weblogic.deploy" command line utility but unable to redeploy the classes. It still takes the old deployed version of the class.
0
 
LVL 10

Expert Comment

by:rajesh_bala
ID: 22864772
It would not taken into effect until some request referencing the old class is completed. So you might want to check if all other requests are completed while testing.
0
 
LVL 3

Author Comment

by:techprocess
ID: 22864795
Considering that all the requests referencing the old class are completed, how can we achieve reloading the class. Is there any way out by destroying the class loader for that particular class??
0
 
LVL 3

Accepted Solution

by:
techprocess earned 0 total points
ID: 22948444
We got the solution!! We have used "URLClassLoader" class from "java.lang" package to reload the jar with new class loader instance which served our purpose.
0
 
LVL 3

Author Comment

by:techprocess
ID: 22948452
Successful R&D
0
 
LVL 10

Expert Comment

by:rajesh_bala
ID: 22957134
Thankx for posting the solution
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Healthcare organizations in the United States must adhere to the guidance of both the HIPAA (Health Insurance Portability and Accountability Act) and HITECH (Health Information Technology for Economic and Clinical Health Act) for securing and protec…
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
Viewers will learn how to use the Hootsuite Dashboard.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question