-
1. Re: Only one instance of a Message Driven Bean?
tallpsmith Jan 2, 2003 4:38 PM (in response to raphael)Hi,
After scrounging around the forums myself about this topic yesterday I found a method that works (but with a caveat). The JMS spec, apparantly, does not require that the message be delivered sequentially. Why? I dunno, particularly for a Queue (unless I miss read previous posts and this is only applicable to publish subscribe).
Anyway, here's my jboss.xml for the MDB test that I did that worked for me, it basically defines a specific configuration for that bean:
<enterprise-beans>
<message-driven>
<ejb-name>SimpleHelloWorldConsumer</ejb-name>
<destination-jndi-name>queue/A</destination-jndi-name>
<configuration-name>MySingletonConfig</configuration-name>
</message-driven>
</enterprise-beans>
<container-configurations>
<container-configuration extends="Standard Message Driven Bean">
<container-name>MySingletonConfig</container-name>
<container-invoker-conf>
DefaultJMSProvider
StdJMSPool
1
1
10
queue/DLQ
10
0
</container-invoker-conf>
<container-pool-conf>
1
1
true
</container-pool-conf>
</container-configuration>
</container-configurations>
cheers,
Paul Smith