2
這是第一次我在這個論壇的問題.. :)如何在JBossAS5上配置ConnectionFactory JMS?
請幫助我瞭解如何配置JMS連接上JBossAS5 .. 我創建了一個簡單的MDB應用:
@MessageDriven(name = "MessageMDBSample", activationConfig = {
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/MyQueue"),
@ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge") })
公共類DummyMDBeanBean實現消息監聽{
public void onMessage(Message message) {
System.out.println("Hello");
}
}
如何事先在JBossAS5配置隊列和連接工廠,在這種情況下隊列/ myQueue中..
謝謝.. :)