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
Solved

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

Posted on 2008-10-31
10
2,055 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
Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

 
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

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Free runner service software 2 110
tried to place tif image in 6.5 2 26
Abstract Express Replacement Software 12 39
Password manager for small company 3 33
This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
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 video demonstrates how to use each tool, their shortcuts, where and when to use them, and how to use the keyboard to improve workflow.
Using Adobe Premiere Pro, the viewer will learn how to set up a sequence with proper settings, importing pictures, rendering, and exporting the finished product.

809 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