• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP & JavaBeans  RSS feed

 
Rafi Fareen
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

if i make a change to a java bean than will the server automatically load the updated .class file?
i have checked it recently, but it doesn't work for me.
do i have to set the reloadable=true ???

when the server (tomcat) starts running then all the requests to jsp pages that require separate java classes cause those classes to be stored within the server only. when the next request comes than server looks up in the list of available classes that so far been requested if yes than it will use the existing loaded one, else it will load it freshly??? right

thanks
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you update JSP files, the container will update those automatically.
As for class files, you will have to restart your server.
 
Balu Sadhasivam
Ranch Hand
Posts: 874
Android Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sebastian Janisch wrote:
As for class files, you will have to restart your server.


Not necessarily , there are options (offered by container) to make it loadable every time its changed without server bounce.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66157
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sebastian Janisch wrote:As for class files, you will have to restart your server.

No, you don't. You merely need to restart the web app context. You don't need to restart the whole server. The Tomcat Manager application let's you manage the individual contexts.

The reloading options (which I've found to be rather spotty) should not be used in production as they degrade performance.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!