|-----Original Message-----
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of
|Rickard Oberg
|Sent: Tuesday, November 27, 2001 5:24 PM
|To: marc fleury
|Cc: Andreas Schaefer; [EMAIL PROTECTED]
|Subject: Re: [JBoss-dev] Installer / Deployer Problem
|
|
|marc fleury wrote:
|
|> ok one of us doesn't get it, if you are "open most of the time"
|how do you
|> release the lock in the filesystem for anyone to overwrite the file ?  I
|> could be missing it :)
|

I understand what you proposed what I don't understand is the above, see
below :)

|1. URLCL wants to access "custom://somejar.jar"
|2. It uses CustomURLHandler to get a connection to somejar.jar. This
|connection is put in cache and is never let go of.
|3. The connection retrieved from CustomURLHandler is not a real
|connection, but merely a wrapper to a file connection. Similar to how a
|connection pool provides implementations of Connection that are only
|wrappers for real connections that can be managed by the pool.
|4. Operations on the connection are passed on to the file connection.
|5. When redeploy of a JAR is to be done, the wrapper is told to close
|its underlying connection

Question: can you overwrite the jar if the vm holds a open connection to it
and thus a lock to it in windows (file in usage)?

If no which is my assumption for this discussion then you don't know when
ANT is going to replace that file from JBoss, or when the user wants to drag
and drop, it is an asynchronous operation that happens without your
knowledge (won't happen in this case)

|6. At this point there are no open connections to the JAR, so it can be
|replaced with a new file or removed.

no see above, you don't know *when* someone is going to replace the file so
you can't be "open most of the time".

Do we agree here?

|7. At some point the connection wrapper is called, either by the old
|URLCL or a new one using the same connection. The file connection is
|then re-acquired, only now to the new file.

sure

|See?

almost, some googoo on my glasses still (or is it yours?)

marcf
|
|/Rickard
|
|
|--
|Rickard �berg
|
|
|
|_______________________________________________
|Jboss-development mailing list
|[EMAIL PROTECTED]
|https://lists.sourceforge.net/lists/listinfo/jboss-development


_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to