Ah, now that makes sense!  The bean would be reloadable if JRun were a
little more developer-friendly, as would modified tag handler classes.
But there's a lot of tricky classloader shite necessary to pull of
dynamic reloading of all these things: servlets, supporting classes, tag
handlers, JSPs, JavaBeans, etc.  There are scope issues too, such as
whether to dump the whole web-app and reload, or dump just the class at
hand and reload, etc.  So, JavaBeans called by JSPs are not usually
reloadable.  I think the current situation is that the JSP gets loaded
into its own classloader, but the JavaBean gets loaded into the web-app
classloader.  So the workaround would be to touch a non-JSP servlet in
your web-app and reload that -- which will cause all the servlets and
beans in the web-app to be dumped.  JSPs are loaded in their own
classloader to make it eaiser for RAD with JSPs, I guess.  But it should
all be working dynamically in a future release (including taghandlers
and JavaBeans).  To be fair, I think most JSP/servlet engines have these
dynamic reload problems in one area or another.  Eventually we'll all
get it right, I think.
 

-- 
Scott Stirling

West Newton, MA

On 04 Jan 2001 11:17:22 -0700, Ben Groeneveld wrote:
> Please let me clarify.  My issue is actually with a bean my .jsp's 
> uses.  The bean is not reloaded after I recompile it.  Should it be?  
> Thanks, BenG.
> 
> -------- Original Message --------
> Subject: servlet debugging
> Date: Fri, 29 Dec 2000 10:29:17 -0700
> From: Ben Groeneveld <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> 
> 
> 
> What's a good way to have servlets auto-reloaded when recompiled?  I 
> looked though the manual and this was not obvious.  When I change a .jsp 
> jrun seems to detect that and reload, but servlets don't (I'm using the 
> invoker servlet shortcut).  What am I missing?  Currently I restart the 
> default jrun server to debug, but this is painfully slow.  Thanks, BenG.
> 
> 
> -- 
> Ben Groeneveld 
> Information Concepts, Inc., 115 N.W. Oregon, Suite 30, Bend, OR 97701
> Mailto:[EMAIL PROTECTED], phone:541.388.3611, cell:208.520.6488
> 
> 
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to