• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Passivation timeout in Glassfish

 
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Could you please tell me the settings to modify in Glassfish, such that the bean that gets TIMEDOUT after passivation.

I tried the following and managed to passivate, but thats not getting timedout. The criterion for timeout I believe is we should have a callback in @Remove method. Is the criterion correct?

Max Cache Size: 1 Number of beans
Cache Resize Quantity: 32 Number of beans to passivate when cache is full; default is 32
Removal Timeout: 2 Seconds
Removal Selection Policy: Not Recently Used (nru)
Cache Idle Timeout: 1 Seconds


Also, how to Time out non-passivated bean in Glassfish? I tried searching the forum but could not find.

Regards,
Rajesh
 
Rajesh So
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Has anyone tried to Time-out a passivated bean or active bean, such that the container loses the reference of the bean. (Glassfish settings)

Regards,
Rajesh
 
What are your superhero powers? Go ahead and try them on this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic