aspose file tools*
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
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
Ranch Hand

Joined: Dec 13, 2010
Posts: 36
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: 61769
    
  67

Yes, use a context listener.


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

Joined: Dec 13, 2010
Posts: 36
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