Power of Asynchrony
Power of asynchrony is well known and it is used widely at different layer of the application architectures to improve performance of the application. i.e. AJAX, Asynchronous I/O in application server and so forth …
In many cases server side processing which doesn't deliver response back to HTTP request can be implemented in asynchronous fashion. Not only it will improve performance of the application, it will also improve front end user experience.
JMS/MDB in J2EE container can be used to achieve this.
1) Logging event to external database.
2) Connection to external processes -It will also decouple application's availability from unresponsive external processes.
I found following good reads about this subject…
http://www.javaranch.com/newsletter/200403/AsynchronousProcessingFromServlets.html
http://www.javaworld.com/jw-02-2001/jw-0209-jms.html
Some of the asynchronous capabilities available out of the box from different implementation.
http://logging.apache.org/log4j/docs/api/org/apache/log4j/net/JMSAppender.html
http://e-docs.bea.com/wls/docs91/webapp/progservlet.html#179418 - New features in WebLogic 9.1
Despite it's advantages, I see may implementations just ignores it.
Reasons may be ….
Performance" is not priority when delivering the requirements.
Synchronous is always easy and quick to implement !!
In many cases server side processing which doesn't deliver response back to HTTP request can be implemented in asynchronous fashion. Not only it will improve performance of the application, it will also improve front end user experience.
JMS/MDB in J2EE container can be used to achieve this.
1) Logging event to external database.
2) Connection to external processes -It will also decouple application's availability from unresponsive external processes.
I found following good reads about this subject…
http://www.javaranch.com/newsletter/200403/AsynchronousProcessingFromServlets.html
http://www.javaworld.com/jw-02-2001/jw-0209-jms.html
Some of the asynchronous capabilities available out of the box from different implementation.
http://logging.apache.org/log4j/docs/api/org/apache/log4j/net/JMSAppender.html
http://e-docs.bea.com/wls/docs91/webapp/progservlet.html#179418 - New features in WebLogic 9.1
Despite it's advantages, I see may implementations just ignores it.
Reasons may be ….
Performance" is not priority when delivering the requirements.
Synchronous is always easy and quick to implement !!