Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need to cache data when Application gets Deployed

 
Ankur Luthra
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64838
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, use a context listener.
 
Ankur Luthra
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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. :-)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic