Tuesday, 15 February 2011

java - Application server use for non-web applications -



java - Application server use for non-web applications -

i interested in understanding "best practice" utilize of application server (for illustration glassfish). have medium size application consists of various components consume , source web services. these components hosted in glassfish environment.

i have requirement simple scheduled function copies info 1 database another. is, requires no web type functionality. built simple application (say around quartz) , deployed in same glassfish server other components. understand simple question, "reasonable" approach or should stand lone application running independently application server? guess more general question "what appropriate uses application server , not?"

it shell script called cron...

seriously, not utilize of app server unless you're going sort of monitoring or load distribution out of it. sounds batch job in case should easy thing , write script or simple app main method either phone call cron (or similar) or run command line sort of embedded timer (or sleeping thread).

java java-ee

No comments:

Post a Comment