jQuery in Action, 2nd edition*
The moose likes JSP and the fly likes Need to cache data when Application gets Deployed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Need to cache data when Application gets Deployed" Watch "Need to cache data when Application gets Deployed" New topic
Author

Need to cache data when Application gets Deployed

Ankur Luthra
Greenhorn

Joined: Dec 13, 2010
Posts: 28
Hi,
I have an API which caches the configurable items in my Application.
I am able to create the cache when first request hits App Server.
Can I somehow call my API automatically after my application gets deployed or may be send a dummy request to server once its Deployed.
How do I do that.Any pointers?

The problem is after App server restart first login takes time because cache is getting created and I want to somehow avoid that.

Regards,
Ankur
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60765
    
  65

Yes, use a context listener.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ankur Luthra
Greenhorn

Joined: Dec 13, 2010
Posts: 28
Thank you. I got the answer just a minute ago.
Was about to type in here and then realized that it has already been answered. :-)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need to cache data when Application gets Deployed
 
Similar Threads
Unable to access my application in Tomcat 6
Concurrency and caching
application startup code not getting invoked
same session across browsers
Multiple problems with Weblogic 8.1