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
 
MDB Performance

MDB Performance

2005-04-01       - By Eric Parker

 Back
Reply:     1     2     3     4  

Some JMS implementations optimize communications within the same memory
space, provided you don't force them to write each message to a database by
declaring guaranteed message delivery.  I've found that to be a key part of
building a JMS system that performs well.  Skipping the call to JMS
entirely where possible definitely helps too.

I use POJOs rather than MDBs, but it doesn't seem like consuming or sending
the message should be much overhead compared to the actual transfer.

cheers,
-ep


At 12:20 PM 4/1/05 -0500, ashraf galal wrote:

>The overhead of JMS varies greatly depending on how it is used:
>acknowledgment modes, subscription durability etc. Guaranteed delivery
>(necessary for some operations) is likely to be slow.
>
>In some situations there may be simpler, lighter-weight alternatives to
>JMS, using thread creation (allowed outside the EJB container) or the
>Observer design pattern without JMS (that is, notifying listeners - who
>may perform actions in the calling thread or in a new thread - using an
>ordinary Java implementation, and not JMS).
>
>The Observer design pattern implemented this way will create much less
>overhead than JMS.
>
>However, whether it works in a clustered environment depends on what
>listeners must do.
>
>The server provides cluster-wide support for JMS.
>
>We can use this altenative approach to JMS:
>
>- When the application does not run in a cluster and is never likely to.
>
>- When it doesn't matter if all event processing occurs on the server on
>which the event was generated.
>
>
>
>
>
>
>
>Ashraf Galal
>(416)804-8359
> >From: Randy Dillon <rdillon@(protected)> >Reply-To: An interest list
> for Sun Java Center J2EE Pattern Catalog
> <J2EEPATTERNS-INTEREST@(protected)> >To:
> J2EEPATTERNS-INTEREST@(protected) >Subject: Re: MDB Performance >Date:
> Fri, 1 Apr 2005 07:12:59 -0600 > >>,,, > > > >>4. Are there any
> light-weight message consumers that could be >>leveraged >>instead of
> MDBs that can mimic the functionality provided by MDBs >>(not so >>sure
> about transaction management and connection pooling, though). > > >You
> could try a JMS solution that doesn't use Message Beans. You'd >have
> to >handle the transactions yourself in that case, but still should
> be >able to >do connection pooling through the app server. > >>Any inputs
> would be much appreciated. >> >>Best
> regards >>vp >> >>========================================================
> ============ >>Companion Site: http://www.corej2eepatterns.com >>J2EE
> BluePrints: http://java.sun.com/blueprints/corej2eepatterns >>List
> Archive: >>http://archives.java.sun.com/archives/j2eepatterns-interest.htm
> l >>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)
>====================================================================
>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)



Eric Parker
SAND Services Inc.
phone: 617.721.4350
http://www.sandservices.com

====================================================================
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)

<html>
Some JMS implementations optimize communications within the same
memory<br>
space, provided you don't force them to write each message to a database
by<br>
declaring guaranteed message delivery.&nbsp; I've found that to be a key
part of<br>
building a JMS system that performs well.&nbsp; Skipping the call to
JMS<br>
entirely where possible definitely helps too.<br><br>
I use POJOs rather than MDBs, but it doesn't seem like consuming or
sending<br>
the message should be much overhead compared to the actual
transfer.<br><br>
cheers,<br>
-ep<br><br>
<br>
At 12:20 PM 4/1/05 -0500, ashraf galal wrote:<br><br>
<blockquote type=cite class=cite cite><font size=2>The overhead of JMS
varies greatly depending on how it is used: acknowledgment modes,
subscription durability etc. Guaranteed delivery (necessary for some
operations) is likely to be slow. <br><br>
In some situations there may be simpler, lighter-weight alternatives to
JMS, using thread creation (allowed outside the EJB container) or the
Observer design pattern without JMS (that is, notifying listeners - who
may perform actions in the calling thread or in a new thread - using an
ordinary Java implementation, and not JMS). <br><br>
The Observer design pattern implemented this way will create much less
overhead than JMS. <br><br>
However, whether it works in a clustered environment depends on what
listeners must do. <br><br>
The server provides cluster-wide support for JMS.<br><br>
We can use this altenative approach to JMS:<br>
</font><font face="courier" size=2><br>
- </font><font face="Times New Roman, Times" size=2>When the application
does not run in a cluster and is never likely to.<br>
</font><font face="courier" size=2><br>
- </font><font face="Times New Roman, Times" size=2>When it doesn't
matter if all event processing occurs on the server on which the event
was generated.<br>
</font><br>
<br><br>
&nbsp;<br><br>
<br><br>
Ashraf Galal <br>
(416)804-8359<br>
&gt;From: Randy Dillon &lt;rdillon@(protected)&gt; &gt;Reply-To: An
interest list for Sun Java Center J2EE Pattern Catalog
&lt;J2EEPATTERNS-INTEREST@(protected)&gt; &gt;To:
J2EEPATTERNS-INTEREST@(protected) &gt;Subject: Re: MDB Performance
&gt;Date: Fri, 1 Apr 2005 07:12:59 -0600 &gt; &gt;&gt;,,, &gt; &gt; &gt;
&gt;&gt;4. Are there any light-weight message consumers that could be
&gt;&gt;leveraged &gt;&gt;instead of MDBs that can mimic the
functionality provided by MDBs &gt;&gt;(not so &gt;&gt;sure about
transaction management and connection pooling, though). &gt; &gt; &gt;You
could try a JMS solution that doesn't use Message Beans. You'd &gt;have
to &gt;handle the transactions yourself in that case, but still should be
&gt;able to &gt;do connection pooling through the app server. &gt;
&gt;&gt;Any inputs would be much appreciated. &gt;&gt; &gt;&gt;Best
regards &gt;&gt;vp &gt;&gt;
&gt;&gt;====================================================================
&gt;&gt;Companion Site:
<a href="http://www.corej2eepatterns.com/" eudora="autourl">http://www
.corej2eepatterns.com</a>
&gt;&gt;J2EE BluePrints: <a href="http://java.sun.com/blueprints
/corej2eepatterns" eudora="autourl">http://java.sun.com/blueprints
/corej2eepatterns</a> &gt;&gt;List Archive: &gt;&gt;<a href="http://archives
.java.sun.com/archives/j2eepatterns-interest.html" eudora="autourl">http:/
/archives.java.sun.com/archives/j2eepatterns-interest.html</a> &gt;&gt
;Unsubscribing: email &quot;signoff J2EEPATTERNS-INTEREST&quot; to &gt;&gt
;listserv@(protected) &gt; &gt;================================================
==================== &gt;Companion Site: <a href="http://www.corej2eepatterns
.com/" eudora="autourl">http://www.corej2eepatterns.com</a> &gt;J2EE BluePrints:
<a href="http://java.sun.com/blueprints/corej2eepatterns" eudora="autourl">http
://java.sun.com/blueprints/corej2eepatterns</a> &gt;List Archive: &gt;<a href=
"http://archives.java.sun.com/archives/j2eepatterns-interest.html" eudora=
"autourl">http://archives.java.sun.com/archives/j2eepatterns-interest.html</a>
&gt;Unsubscribing: email &quot;signoff J2EEPATTERNS-INTEREST&quot; to &gt
;listserv@(protected) <br>
==================================================================== Companion
Site: <a href="http://www.corej2eepatterns.com/" eudora="autourl">http://www
.corej2eepatterns.com</a> J2EE BluePrints: <a href="http://java.sun.com
/blueprints/corej2eepatterns" eudora="autourl">http://java.sun.com/blueprints
/corej2eepatterns</a> List Archive: <a href="http://archives.java.sun.com
/archives/j2eepatterns-interest.html" eudora="autourl">http://archives.java.sun
.com/archives/j2eepatterns-interest.html</a> Unsubscribing: email &quot;signoff
J2EEPATTERNS-INTEREST&quot; to listserv@(protected) </blockquote><br>
<br>
<br>
<div>Eric Parker</div>
<div>SAND Services Inc.</div>
<div>phone: 617.721.4350</div>
<div><a href="http://www.sandservices.com/" EUDORA=AUTOURL>http://www
.sandservices.com</a></div>
</html>
====================================================================
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.