I'd like to revise my earlier post. Sun has three resource adapters -
genericjmsra, MQRA and JMSJCA - each with their own features. While
consolidation of some or all of these adapters is a future possibility,
today both genericjmsra and JMSJCA offer WebSphere MQ support and it's
perfectly valid to use either.
Your use case should work perfectly well with the genericjmsra and is
supported by Sun. My apologies for any confusion caused.
Regards,
Louis
http://www.open-esb.org - The Open Enterprise Service Bus
Andre Dantas Rocha-2 wrote:
>
> Hello,
>
>
>
> Im having some difficulties using GenericJMSRA and WebSphere MQ 6.0. I
> followed all instructions described in
> https://genericjmsra.dev.java.net/docs/websphere-mq-integration-guide/websph
> eremq_integration_guide.html, but Im facing a
> java.lang.IllegalArgumentException.
>
>
>
> The log, ejb-jar.xml and sun-ejb-jar.xml are below.
>
>
>
> Please help me
>
>
>
> Thanks,
>
>
>
> André
>
>
>
>
>
> [#|2008-08-11T12:53:34.171-0300|SEVERE|sun-appserver-pe8.2|javax.enterprise.
> system.tools.deployment|_ThreadID=23;|Exception occured in J2EEC Phase
>
> com.sun.enterprise.deployment.backend.IASDeploymentException: Error
> loading
> deployment descriptors for TesteJms -- This bean has no resource reference
> by the name of [jms/MyQueueConnectionFactory]
>
> at
> com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java
> :325)
>
> at
> com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:16
> 4)
>
> at
> com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeploye
> r.java:107)
>
> at
> com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:14
> 8)
>
> at
> com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(Deploymen
> tPhase.java:71)
>
> at
> com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDe
> ploymentService.java:639)
>
> at
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymen
> tService.java:188)
>
> at
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymen
> tService.java:520)
>
> at
> com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:1
> 39)
>
> at
> com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:168)
>
> Caused by: java.lang.IllegalArgumentException: This bean has no resource
> reference by the name of [jms/MyQueueConnectionFactory]
>
> at
> com.sun.enterprise.deployment.EjbDescriptor.getResourceReferenceByName(EjbDe
> scriptor.java:1183)
>
> at
> com.sun.enterprise.deployment.node.runtime.ResourceRefNode.setElementValue(R
> esourceRefNode.java:68)
>
> at
> com.sun.enterprise.deployment.node.SaxParserHandler.endElement(SaxParserHand
> ler.java:355)
>
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Abst
> ractSAXParser.java:601)
>
> at
> com.sun.org.apache.xerces.internal.impl.dtd.XMLNSDTDValidator.endNamespaceSc
> ope(XMLNSDTDValidator.java:263)
>
> at
> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndElement
> (XMLDTDValidator.java:2028)
>
> at
> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(XMLDT
> DValidator.java:901)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanE
> ndElement(XMLDocumentFragmentScannerImpl.java:1774)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$Fragm
> entContentDriver.next(XMLDocumentFragmentScannerImpl.java:2930)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocum
> entScannerImpl.java:648)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSD
> ocumentScannerImpl.java:140)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanD
> ocument(XMLDocumentFragmentScannerImpl.java:510)
>
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con
> figuration.java:807)
>
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con
> figuration.java:737)
>
> at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:10
> 7)
>
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractS
> AXParser.java:1205)
>
> at
> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SA
> XParserImpl.java:522)
>
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
>
> at
> com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDes
> criptorFile.java:256)
>
> at
> com.sun.enterprise.deployment.archivist.Archivist.readRuntimeDeploymentDescr
> iptor(Archivist.java:275)
>
> at
> com.sun.enterprise.deployment.archivist.ApplicationArchivist.readRuntimeDepl
> oymentDescriptor(ApplicationArchivist.java:336)
>
> at
> com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(App
> licationArchivist.java:689)
>
> at
> com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(App
> licationArchivist.java:654)
>
> at
> com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java
> :278)
>
> ... 9 more
>
> |#]
>
>
>
> ---------------------------------------------------------------------
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <!DOCTYPE ias-ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Application
> Server 8.1 EJB 2.1//EN"
>
> "http://www.sun.com/software/appserver/dtds/sun-ejb-jar_2_1-1.dtd">
>
> <sun-ejb-jar>
>
> <enterprise-beans>
>
> <unique-id>1</unique-id>
>
> <ejb>
>
>
> <ejb-name>SampleMDB</ejb-name>
>
>
> <jndi-name>jms/SampleQueue</jndi-name>
>
> <!-- QCF used to publish
> reply messages -->
>
> <resource-ref>
>
>
> <res-ref-name>jms/MyQueueConnectionFactory</res-ref-name>
>
>
> <jndi-name>jms/MyQCF</jndi-name>
>
>
> <default-resource-principal>
>
>
> <name>mqm</name>
>
>
> <password>mqm</password>
>
>
> </default-resource-principal>
>
> </resource-ref>
>
> <!--
>
> reply
> destination resource. Creating of this replyQueue destination
>
> resource is
> not shown above, but the steps are similar to creating
>
> the
> "jms/MyQueue" resource
>
> -->
>
> <resource-env-ref>
>
>
> <resource-env-ref-name>jms/replyQueue</resource-env-ref-name>
>
>
> <jndi-name>jms/replyQueue</jndi-name>
>
> </resource-env-ref>
>
> <!-- Activation related RA
> specific configuration for this MDB -->
>
> <mdb-resource-adapter>
>
> <!--
>
>
> resource-adapter-mid points to the Generic Resource Adapter for JMS
>
> -->
>
>
> <resource-adapter-mid>genericra</resource-adapter-mid>
>
>
> <activation-config>
>
>
> <activation-config-property>
>
>
> <activation-config-property-name>DestinationType</activation-config-property
> -name>
>
>
> <activation-config-property-value>javax.jms.Queue</activation-config-propert
> y-value>
>
>
> </activation-config-property>
>
>
> <activation-config-property>
>
>
> <activation-config-property-name>ConnectionFactoryJndiName</activation-confi
> g-property-name>
>
>
> <activation-config-property-value>QCF</activation-config-property-value>
>
>
> </activation-config-property>
>
>
> <activation-config-property>
>
>
> <activation-config-property-name>DestinationJndiName</activation-config-prop
> erty-name>
>
>
> <activation-config-property-value>TQueue</activation-config-property-value>
>
>
> </activation-config-property>
>
>
> <activation-config-property>
>
>
> <activation-config-property-name>MaxPoolSize</activation-config-property-nam
> e>
>
>
> <activation-config-property-value>32</activation-config-property-value>
>
>
> </activation-config-property>
>
>
> <activation-config-property>
>
>
> <activation-config-property-name>RedeliveryAttempts</activation-config-prope
> rty-name>
>
>
> <activation-config-property-value>0</activation-config-property-value>
>
>
> </activation-config-property>
>
>
> <activation-config-property>
>
>
> <activation-config-property-name>ReconnectAttempts</activation-config-proper
> ty-name>
>
>
> <activation-config-property-value>4</activation-config-property-value>
>
>
> </activation-config-property>
>
>
> <activation-config-property>
>
>
> <activation-config-property-name>ReconnectInterval</activation-config-proper
> ty-name>
>
>
> <activation-config-property-value>10</activation-config-property-value>
>
>
> </activation-config-property>
>
>
> <activation-config-property>
>
>
> <activation-config-property-name>RedeliveryInterval</activation-config-prope
> rty-name>
>
>
> <activation-config-property-value>1</activation-config-property-value>
>
>
> </activation-config-property>
>
>
> <activation-config-property>
>
>
> <activation-config-property-name>SendBadMessagesToDMD</activation-config-pro
> perty-name>
>
>
> <activation-config-property-value>false</activation-config-property-value>
>
>
> </activation-config-property>
>
>
> </activation-config>
>
> </mdb-resource-adapter>
>
> </ejb>
>
> </enterprise-beans>
>
> </sun-ejb-jar>
>
>
>
> ---------------------------------------------------------------------
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee"
> xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance"
>
> version="2.1"
>
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
>
> <display-name>TesteJmsEJB</display-name>
>
> <enterprise-beans>
>
> <message-driven>
>
>
> <display-name>SampleMDB</display-name>
>
>
> <ejb-name>SampleMDB</ejb-name>
>
>
> <ejb-class>com.example.genericra.SampleMDB</ejb-class>
>
>
> <transaction-type>Container</transaction-type>
>
>
> <message-destination-type>javax.jms.Queue</message-destination-type>
>
> <!--
>
>
> <message-destination-link>PhysicalQueue</message-destination-link>
>
> -->
>
> <activation-config>
>
>
> <activation-config-property>
>
>
> <activation-config-property-name>acknowledgeMode</activation-config-property
> -name>
>
>
> <activation-config-property-value>Auto-acknowledge</activation-config-proper
> ty-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-propert
> y-value>
>
>
> </activation-config-property>
>
> </activation-config>
>
> </message-driven>
>
> </enterprise-beans>
>
> <assembly-descriptor>
>
> <container-transaction>
>
> <method>
>
>
> <ejb-name>SampleMDB</ejb-name>
>
>
> <method-name>*</method-name>
>
> </method>
>
>
> <trans-attribute>Required</trans-attribute>
>
> </container-transaction>
>
> </assembly-descriptor>
>
> </ejb-jar>
>
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE ias-ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Application
> Server 8.1 EJB 2.1//EN"
> "http://www.sun.com/software/appserver/dtds/sun-ejb-jar_2_1-1.dtd">
> <sun-ejb-jar>
> <enterprise-beans>
> <unique-id>1</unique-id>
> <ejb>
> <ejb-name>SampleMDB</ejb-name>
> <jndi-name>jms/SampleQueue</jndi-name>
> <!-- QCF used to publish reply messages -->
> <resource-ref>
> <res-ref-name>jms/MyQueueConnectionFactory</res-ref-name>
> <jndi-name>jms/MyQCF</jndi-name>
> <default-resource-principal>
> <name>mqm</name>
> <password>mqm</password>
> </default-resource-principal>
> </resource-ref>
> <!--
> reply destination resource. Creating of this replyQueue destination
> resource is not shown above, but the steps are similar to creating
> the "jms/MyQueue" resource
> -->
> <resource-env-ref>
> <resource-env-ref-name>jms/replyQueue</resource-env-ref-name>
> <jndi-name>jms/replyQueue</jndi-name>
> </resource-env-ref>
> <!-- Activation related RA specific configuration for this MDB -->
> <mdb-resource-adapter>
> <!--
> resource-adapter-mid points to the Generic Resource Adapter for JMS
> -->
> <resource-adapter-mid>genericra</resource-adapter-mid>
> <activation-config>
> <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>ConnectionFactoryJndiName</activation-config-property-name>
>
> <activation-config-property-value>QCF</activation-config-property-value>
> </activation-config-property>
> <activation-config-property>
>
> <activation-config-property-name>DestinationJndiName</activation-config-property-name>
>
> <activation-config-property-value>TQueue</activation-config-property-value>
> </activation-config-property>
> <activation-config-property>
>
> <activation-config-property-name>MaxPoolSize</activation-config-property-name>
>
> <activation-config-property-value>32</activation-config-property-value>
> </activation-config-property>
> <activation-config-property>
>
> <activation-config-property-name>RedeliveryAttempts</activation-config-property-name>
>
> <activation-config-property-value>0</activation-config-property-value>
> </activation-config-property>
> <activation-config-property>
>
> <activation-config-property-name>ReconnectAttempts</activation-config-property-name>
>
> <activation-config-property-value>4</activation-config-property-value>
> </activation-config-property>
> <activation-config-property>
>
> <activation-config-property-name>ReconnectInterval</activation-config-property-name>
>
> <activation-config-property-value>10</activation-config-property-value>
> </activation-config-property>
> <activation-config-property>
>
> <activation-config-property-name>RedeliveryInterval</activation-config-property-name>
>
> <activation-config-property-value>1</activation-config-property-value>
> </activation-config-property>
> <activation-config-property>
>
> <activation-config-property-name>SendBadMessagesToDMD</activation-config-property-name>
>
> <activation-config-property-value>false</activation-config-property-value>
> </activation-config-property>
> </activation-config>
> </mdb-resource-adapter>
> </ejb>
> </enterprise-beans>
> </sun-ejb-jar>
> <?xml version="1.0" encoding="UTF-8"?>
> <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee"
> xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance"
> version="2.1"
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
> <display-name>TesteJmsEJB</display-name>
> <enterprise-beans>
> <message-driven>
> <display-name>SampleMDB</display-name>
> <ejb-name>SampleMDB</ejb-name>
> <ejb-class>br.gov.caixa.teste.genericra.SampleMDB</ejb-class>
> <transaction-type>Container</transaction-type>
> <message-destination-type>javax.jms.Queue</message-destination-type>
> <!--
> <message-destination-link>PhysicalQueue</message-destination-link>
> -->
> <activation-config>
> <activation-config-property>
>
> <activation-config-property-name>acknowledgeMode</activation-config-property-name>
>
> <activation-config-property-value>Auto-acknowledge</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>
> </message-driven>
> </enterprise-beans>
> <assembly-descriptor>
> <container-transaction>
> <method>
> <ejb-name>SampleMDB</ejb-name>
> <method-name>*</method-name>
> </method>
> <trans-attribute>Required</trans-attribute>
> </container-transaction>
> </assembly-descriptor>
> </ejb-jar>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_genericjmsra.dev.java.net
> For additional commands, e-mail: users-help_at_genericjmsra.dev.java.net
>
--
View this message in context: http://www.nabble.com/GenericJMSRA-and-WebSphere-MQ-6.0-tp18937597p18961682.html
Sent from the Users of Generic Resource Adapter for JMS mailing list archive at Nabble.com.