Error in create activation spec jboss.jca:name='jms-ra.rar',
narayanrm Dec 15, 2004 8:37 AMI am having problem while reading from a Queue from JBOSS mq. Can some body suggest me where did I go wrong? I think I have all the required configuration properties required in the ejb-jar.xml
I got the following error
Caused by: MBeanException: Error in create activation spec jboss.jca:name='jms-ra.rar',service=RARDeployment C
ause: org.jboss.deployment.DeploymentException: Required config property RequiredConfigPropertyMetaData@1d1cdf
7[name=destination descriptions=[DescriptionMetaData@11fb68f[language=en]]] for messagingType 'javax.jms.Messa
geListener' not found in activation config [ActivationConfigProperty(Transacted=true), ActivationConfigPropert
y(maxMessages=1), ActivationConfigProperty(dLQMaxResent=10), ActivationConfigProperty(MessageSelector=msgno be
tween 20 and 30), ActivationConfigProperty(Destination=Queue1), ActivationConfigProperty(SubscriptionDurabilit
y=Durable), ActivationConfigProperty(dLQJNDIName=queue/DLQ), ActivationConfigProperty(useDLQ=true), Activation
ConfigProperty(ConnectionFactoryName=ConnectionFactory), ActivationConfigProperty(dLQHandler=org.jboss.resourc
e.adapter.jms.inflow.dlq.GenericDLQHandler), ActivationConfigProperty(DestinationType=javax.jms.Queue), Activa
tionConfigProperty(minSession=1), ActivationConfigProperty(acknowledgeMode=AUTO_ACKNOWELDGE), ActivationConfig
Property(keepAlive=60000), ActivationConfigProperty(reconnectInterval=10), ActivationConfigProperty(providerAd
apterJNDI=DefaultJMSProvider), ActivationConfigProperty(Xa=true), ActivationConfigProperty(maxSession=15), Act
ivationConfigProperty(subscriptionDurability=NonDurable)] ra=jboss.jca:name='jms-ra.rar',service=RARDeployment
My ejb-jar.xml is :
<ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee"
version="2.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
generated deployment profile
<enterprise-beans >
<message-driven>
<display-name>Queue1_jcdTopictoFile1</display-name>
<ejb-name>Queue1_jcdTopictoFile1</ejb-name>
<ejb-class>com.cc.JMSImpl.runtime.ejb.JMSEndPointListener</ejb-class>
<messaging-type>javax.jms.MessageListener</messaging-type>
<transaction-type>Container</transaction-type>
<activation-config>
<activation-config-property>
<activation-config-property-name>Destination</activation-config-property-name>
<activation-config-property-value>Queue1</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>DestinationType</activation-config-property-name>
<activation-config-property-value>javax.jms.Queue</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>
MessageSelector
</activation-config-property-name>
<activation-config-property-value>
msgno between 20 and 30
</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>
SubscriptionDurability
</activation-config-property-name>
<activation-config-property-value>
Durable
</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>
ConnectionFactoryName
</activation-config-property-name>
<activation-config-property-value>
ConnectionFactory
</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>
Transacted
</activation-config-property-name>
<activation-config-property-value>
true
</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>
Xa
</activation-config-property-name>
<activation-config-property-value>
true
</activation-config-property-value>
</activation-config-property>
</activation-config>
<env-entry>
<env-entry-name>partnerName</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>input</env-entry-value>
</env-entry>
<env-entry>
<env-entry-name>processingDefinitionType</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>JavaCollab</env-entry-value>
</env-entry>
</message-driven>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<ejb-name>Queue1_jcdTopictoFile1</ejb-name>
<method-name>*</method-name>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>