users@glassfish.java.net

Class replace - no redeploy

From: <forums_at_java.net>
Date: Tue, 7 Jun 2011 07:33:35 -0500 (CDT)

Glassfish: 3.1, eclipse helios, wtp and glassfish plugin

Hi, I'm developing an tapestry application. Tapestry ships with it's own
classloader which is doing live class reloading - very useful while
developing.

I'm currently using jetty(dev) and tomcat(prod), but is looking to glassfish
for using jee 6 web profile.

I've tried deploying a simple tapestry app to glassfish - and it works fine.
However if I make any changes to a java (class) file, it triggers a publish
and redeploy of the app. Making changes to a jsp does not force a reload and
I see changes immediately. 

Ideally I'd like only the class file to be replaced so that tapestry's
classloader can take care of reloading of classes in it's watched packages. -
Same behaviour as with a jsp.

Reloading of app is like 6 seconds in my simple test app, by letting tapestry
do just the class reload is 1< second - so considering switching for us is
depending on getting tapestry reload working without glassfish getting in the
way.

(I don't know if it's the eclipse connector or glassfish itself is doing the
publish/reload.)

 

So - How can I configure glassfish to replace, but not redeply on class
modification ?

 

 


--
[Message sent by forum member 'MagnusKvalheim']
View Post: http://forums.java.net/node/809990