Hi all,
Using a JBoss 5.1.0 GA.
On the shutdown phase I stop the MDB's explicitely using a code like this :
MBeanServer mbeanServer = MBeanServerLocator.locateJBoss();
String mbean = "jboss.j2ee:ear=myEar.ear,jar=all-ejbs.jar,name=" + name + ",service=EJB3";
ObjectName objectName = new ObjectName(mbean);
mbeanServer.invoke(objectName, "stopDelivery", new Object[] {}, null);
The call seems to be successful, as I get null as a return value upon calling it.
The problem is that if some MDB's are in-process when I call this code on them then on JBoss restart redelivery isn't always activated hence my MDB's aren't able to process anything until I explicitely call startDelivery.
Has anyone had this kind of problems before ?
Thx.
Marking post as invalid.