Results 1 to 3 of 3
  1. #1
    tharpa is offline Member
    Join Date
    Nov 2013
    Posts
    19
    Rep Power
    0

    Default Do services ever use cached copies of Jars?

    Suppose there is a service running off a jar, Example.jar. Suppose that while it was running, it was renamed to Example2.jar. Would this always disrupt the service, or would a service be running off a cached copy of the jar?

    I am assuming that there is nothing in the code that deliberately creates a cached copy of the jar.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,003
    Rep Power
    33

    Default Re: Do services ever use cached copies of Jars?

    Please explain what OS and what service you are asking about.
    How does this question relate to java programming?
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    Join Date
    Aug 2015
    Location
    Northern California
    Posts
    31
    Rep Power
    0

    Default Re: Do services ever use cached copies of Jars?

    You can't rename an open file in Windows you have to disconnect the file handle so yes it will fail. I am fairly certain in Linux based OS you can rename the open file but it should have no effect unless your code calls that file by name specifically which in that case it will definitely fail to open. You should write a simple loop to test it.

Similar Threads

  1. Replies: 3
    Last Post: 02-28-2014, 11:01 AM
  2. Replies: 1
    Last Post: 10-17-2009, 06:07 PM
  3. How to get cached jar file name in web start...
    By fxRichard in forum Advanced Java
    Replies: 3
    Last Post: 05-06-2009, 11:24 PM
  4. cached pages or backups
    By angryboy in forum Suggestions & Feedback
    Replies: 8
    Last Post: 03-02-2009, 03:29 PM
  5. Replies: 0
    Last Post: 08-19-2008, 04:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •