[jboss-user] [EJB/JBoss] - Re: EJB3 MDB in JBoss 4.0.4 not behaving as per specificatio
irajeev
do-not-reply at jboss.com
Thu Jan 17 12:33:47 EST 2008
I re-tested the whole scenario by removing all of my application logic from the onMessage method and just having a sleep method. What I noticed was irrespective of whether I was using BMT or CMT with NOT_SUPPORTED, I still got the warning message that the transaction has timed out. And also the message was redelivered. Here is the MDB code that I used to test,
@MessageDriven(activationConfig =
{
@ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"),
@ActivationConfigProperty(propertyName="destination", propertyValue="SonicJMS/Queues/datahub"),
@ActivationConfigProperty(propertyName="providerAdapterJNDI", propertyValue="java:/SonicJMSProvider"),
@ActivationConfigProperty(propertyName="useDLQ", propertyValue="false"),
@ActivationConfigProperty(propertyName="acknowledgeMode", propertyValue="Auto-acknowledge")
})
@TransactionManagement(TransactionManagementType.CONTAINER)
public class FeedParsingManager implements MessageListener {
@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
public void onMessage(Message msg) {
try {
Thread.sleep(360000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
Thanks,
rajeev
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121032#4121032
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121032
More information about the jboss-user
mailing list