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