Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Regarding JMS

Regarding JMS

2004-07-05       - By Binildas C. A.

 Back
Reply:     1     2     3     4  

Answers to Query:
1. Referr to http://java.sun.com/blueprints/corej2eepatterns/
You will definitely find ServiceActivator pattern.

2. Drawbacks ! If we use MDB in scenarios where it is inappropriate, we
would face drawbacks. But that can be evaluated only on a case-by-case
basis.

3. TX - You can (with restrictions). But you need to check with the JMS
provider documentation, backing your MDB. Especially if it is a foreign JMS
provider, you need to check if you can propogate JMS transaction from within
your App Server to the foreign JMS provider. Single vendor solution
portfolio (like IBM WAS + MQ) would ususlly facilitate such TX propogation,
but in Mix-N-Max cases, we need to either follow vendor prescribed
procedures, or use workarounds.

A cleaner approach is to use MDB just as an Activator, and put all Business
Logic inside Stateless Session EJB. MDB in turn can delegate work to Session
EJB. Also, MDB is a listener, without any active clients, while Session EJBs
are not passive listeners, but needs to explicitely called by clients.

4. It depends upon your configuration settings. If the Queue is persistant
and if the onMessage() is in Transaction, a System Exception should re-try
with another instance of MDB (again depending upon Max. Number of tries
configured) - But, we need to look into vendor specific documentation, for
such QoS concerns.

Binildas
Sr. Tech.Architect
(http://www.infosys.com/setlabs)

-- -- Original Message -- --
From: "Kamaraj, Pushparaj" <Pushparaj_Kamaraj@(protected)>
To: <J2EEPATTERNS-INTEREST@(protected)>
Sent: Sunday, July 04, 2004 6:08 PM
Subject: Regarding JMS


> Hi,
>         We are using weblogic JMS Queue and MDB in our system. I am having
> some questions on the same
>         1) Is there any pattern available for using message beans.
>
>         2) Where can I get the details about drawbacks of using MDB.
>
>         3) Can I use MDB as a normal stateless session bean including
> database transaction.
>
>         4) If any exception happens can the message will be retained so
that
> it will be served next time
>
>
> Thanks
> K.Pushparaj.
>
> __ ____ ____ ____ ____ ____ ____ ____ ______
> Confidential:  This electronic message and all contents contain
information
> from Syntel, Inc. which may be privileged, confidential or otherwise
> protected from disclosure. The information is intended to be for the
> addressee only. If you are not the addressee, any disclosure, copy,
> distribution or use of the contents of this message is prohibited.  If you
> have received this electronic message in error, please notify the sender
> immediately and destroy the original message and all copies.
>
> ====================================================================
> Companion Site: http://www.corej2eepatterns.com
> J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns
> List Archive:
http://archives.java.sun.com/archives/j2eepatterns-interest.html
> Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to
listserv@(protected)
>

====================================================================
Companion Site: http://www.corej2eepatterns.com
J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns
List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html
Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.