Solved

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

Posted on 2008-10-31
10
2,057 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

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…
Skype is a P2P (Peer to Peer) instant messaging and VOIP (Voice over IP) service – as well as a whole lot more.
Viewers will learn how to use the Hootsuite Dashboard.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

733 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