Re: Loading JAR changes without redeploy.

2005-05-05 Thread Michael Echerer
Eduardo Lobo wrote:
 
 Hi,
 
 I have this problem: I need to make a web application that read some
 resources(xml files) from JAR files (located in the shared/lib folder),
 but I need to update constantly the JARs content, then I need that the
 web application always gets the last JAR files version without
 redeploy/restart the web application.
 
 How can I do that, because right now when I replace the JAR file with
 the new one the web application don't get the changes from the JAR content?
 
 In summary, there is some way to make a JAR redeploy?
I guess a JAR redeployment is not really feasible or a good solution.
You should better reconsider if it's a good idea to place files that get
modified over and over into a jar at all and especially into shared/lib.

Can't you place the xml files somewhere else?

If you really need it in this jar, you might still load it on a file
basis instead of classpath resource basis (e.g. unjar the jar file
yourself and read the xml file instead of relying on the classloader)

 
 Any help you can provide me will be well appreciated. .
 
 Thanks.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Loading JAR changes without redeploy.

2005-05-04 Thread Eduardo Lobo
Hi,
I have this problem: I need to make a web application that read some 
resources(xml files) from JAR files (located in the shared/lib folder), 
but I need to update constantly the JARs content, then I need that the 
web application always gets the last JAR files version without 
redeploy/restart the web application.

How can I do that, because right now when I replace the JAR file with 
the new one the web application don't get the changes from the JAR content?

In summary, there is some way to make a JAR redeploy?
Any help you can provide me will be well appreciated. .
Thanks.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]