I have previously used JBoss Messaging 1.4.3 and am in the process of upgrading to HornetQ. In JBM the MDB could be annotated with:
@MessageDriven(name = "batchingMDB", activationConfig = { @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"), @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/batchingQueue"), @ActivationConfigProperty(propertyName = "transactionTimeout", propertyValue = "86400") })