Why?
If you have applications/services that are constantly being hit at a high rate by external sources, its best to use message queuing to balance the load between resources. The defalt Glass-fish listener can handle a tps of 1000/200,0 but with MQ it can be increased to 100000 tps or so and the load can be distributed among the resources.
Resources
Java dude has the best outline. How ever I would suggest to read a few of them to implement ActiveMQ SuccessfullyJava dude (part 1) - http://javadude.wordpress.com/2011/07/21/glassfish-v3-1-running-embedded-activemq-for-jms-part-1/
*note the parts 2 & 3 are also on his site.
Other Great Resources
- http://geertschuring.wordpress.com/2012/04/20/how-to-connect-glassfish-3-to-activemq-5/
- http://packtlib.packtpub.com/library/9781847196507/ch06lvl1sec04#
After this create EJB resources's to handle the jobs and add them to your MQ. Google and ActiveMQ site and forum discussions will be your best help on this.

No comments:
Post a Comment