• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

loading a jar in runing server.

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Curse your sudden but inevitable betrayal! And this tiny ad too!
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic