On Tue, 2003-10-28 at 16:17, Scheil, Sven wrote:
> I'm sending several messages with different types to an mdb. One type stands
> for an "update" message. That means take the data from the message and
> update several entity beans with it. These updates have to be execute
> dstrictly serial. But it comes that more than one update message at the same
> time is send and jboss instantiates 2 or more mdb to execute the messages in
> parallel.
> 
> How can I configure (or design?) my mdb that it exceute the messages of type
> "update" strictly one after the other.


The number of concurrent sessions for an MDB is configured on the
invoker. This is from standardjboss.xml in 3.2. You can make your
own configurations using jboss.xml

This isn't guaranteed to work. The MDB could rollback the message
delivery causing the messages to be delivered out of order.

Why do people take an asynchronous system like messaging and
try to reimplement a synchronous system. What is wrong with
invocations?

      <invoker-proxy-binding>
         <name>message-driven-bean</name>
         <invoker-mbean>default</invoker-mbean>
        
<proxy-factory>org.jboss.ejb.plugins.jms.JMSContainerInvoker</proxy-factory>
         <proxy-factory-config>
           
<JMSProviderAdapterJNDI>DefaultJMSProvider</JMSProviderAdapterJNDI>
           
<ServerSessionPoolFactoryJNDI>StdJMSPool</ServerSessionPoolFactoryJNDI>
            <MaximumSize>15</MaximumSize> <!-- !! HERE !! -->
            <MaxMessages>1</MaxMessages>
            <MDBConfig>
               <ReconnectIntervalSec>10</ReconnectIntervalSec>
               <DLQConfig>
                  <DestinationQueue>queue/DLQ</DestinationQueue>
                  <MaxTimesRedelivered>10</MaxTimesRedelivered>
                  <TimeToLive>0</TimeToLive>
               </DLQConfig>
            </MDBConfig>
         </proxy-factory-config>
      </invoker-proxy-binding>


Regards,
Adrian

> thanx sven
> 
> CargoSoft GmbH
> Linzer Str. 3
> 28359 Bremen
> Telefon    +49 421 2020 440
> Telefax    +49 421 2020 189
> http://www.cargosoft.de
> eMail: [EMAIL PROTECTED]
> Hotline: [EMAIL PROTECTED]
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?   SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
xxxxxxxxxxxxxxxxxxxxxxxx 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
xxxxxxxxxxxxxxxxxxxxxxxx 



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to