This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

AnnouncementAnnouncement Module

Collapse

No announcement yet.

want to run a daemon as soon as the java app gets deployed on dm serverPage Title Module

want to run a daemon as soon as the java app gets deployed on dm server

Jun 6th, 2012, 05:04 AM

Hi all,

These are my project requirements:

I need to create an application where i need to populate flex based ui client with the data from multiple remote sources over http post. The code to fetch the data from remote sources will be written in Java.

Now I have few design related issues, like if i call these external apis every time based on ui events, it generate lot of data traffic and keeping in mind that it is a web based UI client which will be launched asynchronously, this looks to be a bad design.

So i am thinking of having a daemon or scheduler to run a program as soon as my application gets deployed on the dm server, this is program will be keep polling for the data from external sources and keep storing it into the database. This db will serve as a data store for flex UI. this way i will able to maintain data traffic to limited. is there any better approach to achieve this?