When you add the "(a)ResourceAdapter("foo.rar")" annotation to the MDB,
are the JNDI bindings you created in the *-ds.xml file being used?
I'm trying to use Sun's MQ server (IMQ) in JBoss and I found that I could deploy
the RAR from Sun IMQ and use the following annotations (without using a *-ds.xml
datasource):
| @MessageDriven(mappedName = "jms/LoggingEventBean", activationConfig = {
| @ActivationConfigProperty(propertyName = "acknowledgeMode",
propertyValue = "Auto-acknowledge"),
| @ActivationConfigProperty(propertyName = "destinationType",
propertyValue = "javax.jms.Topic"),
| @ActivationConfigProperty(propertyName = "subscriptionDurability",
propertyValue = "Durable"),
| @ActivationConfigProperty(propertyName = "clientId", propertyValue =
"LoggingEventBean"),
| @ActivationConfigProperty(propertyName = "destination",
propertyValue = "elm_topics_LoggingEvent_default"),
| @ActivationConfigProperty(propertyName = "subscriptionName",
propertyValue = "LoggingEventBean")
| //@ActivationConfigProperty(propertyName = "UserName", propertyValue
= "guest"),
| //@ActivationConfigProperty(propertyName = "Password", propertyValue
= "guest")
| })
| @ResourceAdapter("imqjmsra.rar")
| public class LoggingEventBean implements MessageListener {
|
| ...
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073651#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...