Status: Open (View Workflow)
Affects Version/s: 1.1.3
Fix Version/s: None
Environment:Mac OS/X Leopard, JDK 6, JBoss 5.1.0GA
Similar Issues:Show 10 results
EJBTHREE-372 MDB Management features EJBTHREE-128 Session/MDB Jacc integration EJBTHREE-768 MDB deployment error EJBTHREE-1876 CNFE on loading business interface of succesfully injected MBean in a quartz activated MDB EJBTHREE-1990 Refactor the deliverActive activation config property into proper MDB meta data EJBTHREE-671 'Unable to create activation spec' exception during deployment when MDB is declared in ejb-jar.xml EJBTHREE-21 MDB, Session Bean XML support EJBTHREE-987 support DeliveryActive MDB activation config property EJBTHREE-129 Mirror relevant Session/MDB tutorials for XML mappings EJBTHREE-642 Cause exceptions in DLQHandler are not logged
If you start an MDB and introduce a messages to it then use the stopDelivery method of the MDB's MBean to stop it consuming messages you get an exception. Note this problem only occurs if the MDB has a transaction in flight when the stopDelivery is called.
2009-05-20 12:30:52,499 ERROR [org.jboss.messaging.util.ExceptionUtil] (WorkManager(2)-44) Connectio
nEndpoint[fe-oz919yuf-1-mj809yuf-bruz48-x21o4c5] sendTransaction [ur4-b6b39yuf-1-mj809yuf-bruz48-x21
javax.jms.IllegalStateException: Cannot find session with id ie-qz919yuf-1-mj809yuf-bruz48-x21o4c5
I have attached a slightly doctors version of the EJB3 MDB example code, it has been changed to introduce a sleep of 5 seconds in the MDB (to keep the transaction active longer) and also introduces a higher volume of messages to give you a chance to get to the JMX console and call stopDelivery. If you don't get an exception on the first attempt it is worth trying again as the transaction must be in flight for the problem to occur.