0
使用JBoss 6如何设置持久订户和配置MDB?如何在MDB中创建HornetQ持久订阅者?
使用JBoss 6如何设置持久订户和配置MDB?如何在MDB中创建HornetQ持久订阅者?
这个工作对我来说:
@MessageDriven(name = "VerySimpleMDB", activationConfig = {
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Topic"),
@ActivationConfigProperty(propertyName = "destination", propertyValue = "/jms/topic/targetTopic"),
@ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"),
@ActivationConfigProperty(propertyName = "useJNDI",propertyValue = "true"),
@ActivationConfigProperty(propertyName = "clientID", propertyValue = "quickuser"),
@ActivationConfigProperty(propertyName = "subscriptionDurability", propertyValue = "Durable"),
@ActivationConfigProperty(propertyName = "subscriptionName", propertyValue = "topicBridge"),
@ActivationConfigProperty(propertyName = "shareSubscriptions", propertyValue="true"),
@ActivationConfigProperty(propertyName = "hA", propertyValue = "true")
},mappedName = "java:jboss/jms/topic/targetTopic")
public class VerySimpleMDB implements MessageListener {
显示一些代码,看看到目前为止你已经尝试过的东西。 –
您使用的是JBoss AS 6还是JBoss EAP 6? – CoolBeans