Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

loading a jar in runing server.

 
Vikas Kumar Sahu
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic