File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes loading a jar in runing server. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "loading a jar in runing server." Watch "loading a jar in runing server." New topic

loading a jar in runing server.

Vikas Kumar Sahu
Ranch Hand

Joined: Dec 02, 2003
Posts: 59
Hi Java Gurus,

I have one query.
I have one j2ee server runing in solaris environment.
I have one one library (jr file) that I have to update in the server.
Without retsarting the server, Is it possible to update this jar file and the runing server will use this updated jar ?
So far as I know that JVM can not take this updted jar until we restart it. The classloader can load this jar once we restart the server.
But probably there must be a solution that I dont know and you know.

Thanks In Advance...
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Not sure if I understand your question completely. Which is fine. But in my interpretation of your question you want to know if you can hot deploy an application in a jar file.

The answer is yes, but it also depends on the Application Server you are using. Most support hot-deployment, so I am going to assume that you are using one of those App Servers.

All you need to do is to copy your new version of the jar file into the deploy directory and it will hot-deploy.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: loading a jar in runing server.
jQuery in Action, 3rd edition