• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

change in class file not reflecting back until restarting server

 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I m using resin server..
if i wrote a servlet and didn't compiled it it's automatically getting compiled and showing output correctly..
next time if i change the contents of servlet it's not showing new contents. i tried to compile it manually but still it's not
displaying the new output.
i m getting the new output only after restarting server..
but in specs we read that if there is change in class file
server should automatically replace the old class file with new one..
do this have any remedy..
i also tried setting resin.conf
i made two changes..
1.<cache-mapping url-pattern='/' expires='0s'/>
2.<class-update-interval>0</class-update-interval>
Still no effect..
Thanx in advance..
Bhupendra
 
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are using the wrong tags to set this. From Resin 2.0.2 Documentation for Trouble shooting:
"Resin doesn't update changed servlets and JSP pages"
Resin has a delay for testing updated servlets and JSP pages.
The configuration variable for both is 'class-update-interval' in
resin.conf. It's an application-level variable. The default is 15
seconds. So Resin will only check every 15 seconds for an updated
page. You can set this value to 0 for development work.

<http-config class-update-interval='0'>
...
</http-config>

If you want Resin to check servlets for updates every hour, your
resin.conf might look like:

<http-config class-update-interval='3600'>
...
</http-config>

------------------
I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
 
Mahajan Bhupendra
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi carl,
Thanx for reply
i also read the documnetation and found the same thing...
but surprisingly in resin.config there is no such element..
<http-config class-update-interval='X'>
...
</http-config>
Do i need to add it..
if yes where??
forgot to mension i am using resin-cmp 1.0
Bhupendra

[This message has been edited by Mahajan Bhupendra (edited November 07, 2001).]
 
knowledge is the difference between drudgery and strategic action -- tiny ad
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic