Solved

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

Posted on 2008-10-31
10
2,046 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
  • 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
 
LVL 10

Expert Comment

by:rajesh_bala
ID: 22857650
0
 
LVL 10

Expert Comment

by:rajesh_bala
ID: 22857651
0
 
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Suggested Solutions

In our personal lives, we have well-designed consumer apps to delight us and make even the most complex transactions simple. Many enterprise applications, however, are a bit behind the times. For an enterprise app to be successful in today's tech wo…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
The viewer will learn how to set up a document for the web and print and the recommended PPI for printing.
This video will demonstrate how to find the puppet warp tool from the edit menu and where to put the points to edit.

706 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now