[jboss-user] [Messaging, JMS & JBossMQ] - Re: connectionFactoryJndiName config property
adamhmitchell
do-not-reply at jboss.com
Mon Aug 13 13:02:58 EDT 2007
When you add the "@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#4073651
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073651
More information about the jboss-user
mailing list