aspose file tools*
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
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
Author

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
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17257
    
    6

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.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: loading a jar in runing server.