serversocket - server Socket in Clustered server - Java -


i building application uses quartz scheduler triggered every 30 min. since have clustered servers, if application deployed job twice , don't want happen. therefore decided use socket approach requires port , ip . question , how implement socket approach if 1 instance run in whole clustered environment ? suggestion or , example code highly appreciated.

you may use approach of jms or similar, publish task done on queue. nature of queue, 1 consumer can consume message, can sure 1 of instances should pick task , run.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -