thank you. this works pretty well :-)
-----Ursprüngliche Nachricht----- Von: Barlow, Dustin [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 28. Oktober 2003 18:21 An: '[EMAIL PROTECTED]' Betreff: RE: [JBoss-user] serial mdb execution? First you need to configure the invoker-proxy-binding for the MDB. Notice the MaximumSize and the MaxMessages. You can find the following in server/<target/conf/standardjboss.xml. You can also define these in the jboss.xml jar deployed with your MDB if you don't want to change/add them to standardjboss.xml <invoker-proxy-binding> <name>message-driven-bean-max1</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>1</MaximumSize> <MaxMessages>1</MaxMessages> <MDBConfig> <ReconnectIntervalSec>10</ReconnectIntervalSec> <DLQConfig> <DestinationQueue>queue/DLQ</DestinationQueue> <MaxTimesRedelivered>3</MaxTimesRedelivered> <TimeToLive>0</TimeToLive> </DLQConfig> </MDBConfig> </proxy-factory-config> </invoker-proxy-binding> Then have a container-configuration as follows: <container-configuration> <container-name>SingleThreaded Message Driven Bean</container-name> <call-logging>false</call-logging> <invoker-proxy-binding-name>message-driven-bean-max1-dlq</invoker-proxy-bind ing-name> <container-interceptors> <interceptor>org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor</intercepto r> <interceptor>org.jboss.ejb.plugins.LogInterceptor</interceptor> <interceptor>org.jboss.ejb.plugins.RunAsSecurityInterceptor</interceptor> <!-- CMT --> <interceptor transaction="Container">org.jboss.ejb.plugins.TxInterceptorCMT</interceptor> <interceptor transaction="Container" metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor</interceptor> <interceptor transaction="Container">org.jboss.ejb.plugins.MessageDrivenInstanceIntercept or</interceptor> <!-- BMT --> <interceptor transaction="Bean">org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor</i nterceptor> <interceptor transaction="Bean">org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT</inte rceptor> <interceptor transaction="Bean" metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor</interceptor> <interceptor>org.jboss.resource.connectionmanager.CachedConnectionIntercepto r</interceptor> </container-interceptors> <instance-pool>org.jboss.ejb.plugins.MessageDrivenInstancePool</instance-poo l> <instance-cache></instance-cache> <persistence-manager></persistence-manager> <container-pool-conf> <MaximumSize>1</MaximumSize> <MinimumSize>1</MinimumSize> <strictMaximumSize>true</strictMaximumSize> </container-pool-conf> </container-configuration> Then in your jboss.xml file for your MDB make sure to have your MDB use the container configuration: <message-driven> <ejb-name>SingletonMDB</ejb-name> <destination-jndi-name>queue/Singleton</destination-jndi-name> <configuration-name>SingleThreaded Message Driven Bean</configuration-name> </message-driven> Hope this helps, Dustin > -----Original Message----- > From: Scheil, Sven [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 28, 2003 11:18 AM > To: [EMAIL PROTECTED] > Subject: [JBoss-user] serial mdb execution? > > > > 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. > > 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 > ------------------------------------------------------- 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 ------------------------------------------------------- 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