Using MDB for asynchronous activities
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Rama_Singh
Posted On:   Monday, November 8, 2004 12:31 AM

I am exploring message driven beans for using them in aynchronous processes.
For eg we need to send emails to customers whenever they register or order a product etc. Right now we use dbms_job_submit for submitting jobs but this is causing some performance bottlenecks as many jobs do not execute and so the system hangs.

As an alternative we are exploring the java messaging sevice and MDB for email process and other asynchronous processes.
I would like to know if there are any performance issues with this approach. And in which scenarios is this approach best suitable?

Re: Using MDB for asynchronous activities

Posted By:   Raj_Subramani  
Posted On:   Monday, November 8, 2004 12:50 AM

An MDB is a cross between a stateless session bean and a JMS client. This make the approach immensely scalable. On top of this, you can adopt a federated J2EE server deployment to add geographical scalability.



The scenario you adopt depends on the technology deployed on the client side. For instance, if your (web) client is deployed using HTML/JSP/Servlet technology, then you would have the processing servlet drop the form data into a point-to-point queue. The MDB's simply process the items from the queue.



If your client uses ASP/.NET technology you need an appropriate hook onto to the JMS service (and may the almighty grant peace to your soul :-P )




Cheers

-raj

About | Sitemap | Contact