Solved

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

Posted on 2008-10-31
10
2,052 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Today companies are subjected to more-and-more data, and it won't stop any time soon.  But there are obvious opportunities for reducing data, particularly data duplicated among companies.
All of the resources available today make learning a new digital media easier than ever-- if you know where to begin. This is a clear, simple guide to a few of the basic digital art mediums and how to begin learning them on your own.
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

770 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