Resource Adapter Reference in MDB
hi, I am trying to get a generic jms resource adapter working. The RA delivers to MDB whose onMessage is activated. The MDB openejb-jar.xml has a resource ref link enterprise-beans message-driven ejb-nameTestMDB/ejb-name resource-adapter resource-linkTestRA/resource-link /resource-adapter /message-driven /enterprise-beans /openejb-jar When deploying this MDB i get the following error. Error: Unable to distribute wascemq.jar: Unknown resource adapter reference (query=geronimo.server:J2EEApplication=null,J2EEServer=geronimo,j2eeType=JCA ResourceAdapter,name=TestRA,*) The RA is deployed successfully and i am able to invoke outbound connections from a servlet. The GBeans started have following pattern j2eeType = ResourceAdapter. I also tried setting resource link to test/jms.rar with same results Error: Unable to distribute wascemq.jar: Unknown resource adapter reference (query=geronimo.server:J2EEApplication=null,J2EEServer=geronimo,j2eeType=JCA ResourceAdapter,name=test/jms.rar,*) I am lost here as to how to fix this. Any ideas or help would be great The RA plan is as follows resourceadapter resourceadapter-instance resourceadapter-nameTestRA/resourceadapter-name workmanager gbean-linkDefaultWorkManager/gbean-link /workmanager /resourceadapter-instance outbound-resourceadapter connection-definition connectionfactory-interface/connectionfactory-interface connectiondefinition-instance nameTestFactory/name config-property-setting name=url/config-property-setting config-property-setting name=icf/config-property-setting config-property-setting name=name/config-property-setting connectionmanager no-transaction/ no-pool/ /connectionmanager /connectiondefinition-instance /connection-definition /outbound-resourceadapter /resourceadapter The Geronimo log shows the following GBeans started successfully GBeanInstanceState for: geronimo.config:name=test/jms.rar State changed from starting to running GBeanInstanceState for: geronimo.server:J2EEApplication=null,J2EEServer=geronimo,j2eeType=ResourceAdapterModule,name=test/jms.rar State changed from stopped to starting GBeanInstanceState for: geronimo.server:J2EEApplication=null,J2EEServer=geronimo,j2eeType=ResourceAdapterModule,name=test/jms.rar State changed from starting to running GBeanInstanceState for: geronimo.server:J2EEApplication=null,J2EEServer=geronimo,ResourceAdapter=test/jms.rar,j2eeType=JCAResource,name=test/jms.rar State changed from stopped to starting GBeanInstanceState for: geronimo.server:J2EEApplication=null,J2EEServer=geronimo,ResourceAdapter=test/jms.rar,j2eeType=JCAResource,name=test/jms.rar State changed from starting to running GBeanInstanceState for: geronimo.server:J2EEApplication=null,J2EEServer=geronimo,JCAResource=test/jms.rar,j2eeType=JCAConnectionManager,name=TestFactory State changed from stopped to starting GBeanInstanceState for: geronimo.server:J2EEApplication=null,J2EEServer=geronimo,JCAResource=test/jms.rar,j2eeType=JCAConnectionManager,name=TestFactory State changed from starting to running GBeanInstanceState for: geronimo.server:J2EEApplication=null,J2EEServer=geronimo,JCAResource=test/jms.rar,j2eeType=JCAConnectionFactory,name=TestFactory State changed from stopped to starting GBeanInstanceState for: geronimo.server:J2EEApplication=null,J2EEServer=geronimo,JCAResource=test/jms.rar,j2eeType=JCAConnectionFactory,name=TestFactory State changed from starting to running GBeanInstanceState for: geronimo.server:J2EEApplication=null,J2EEServer=geronimo,ResourceAdapterModule=test/jms.rar,j2eeType=ResourceAdapter,name=test/jms.rar State changed from stopped to starting GBeanInstanceState for: geronimo.server:J2EEApplication=null,J2EEServer=geronimo,ResourceAdapterModule=test/jms.rar,j2eeType=ResourceAdapter,name=test/jms.rar State changed from starting to running GBeanInstanceState for: geronimo.server:J2EEApplication=null,J2EEServer=geronimo,JCAResource=test/jms.rar,j2eeType=JCAManagedConnectionFactory,name=TestFactory State changed from stopped to starting GBeanInstanceState for: geronimo.server:J2EEApplication=null,J2EEServer=geronimo,JCAResource=test/jms.rar,j2eeType=JCAManagedConnectionFactory,name=TestFactory State changed from starting to running Regards Krishnakumar B
Re: Resource Adapter Reference in MDB
After looking at the code I don't see how this is possible. There's no evidence the ResourceAdapterWrapper gbean is being started. Could you show the ra.xml please? Exactly which version of geronimo are you using? thanks david jencks On Dec 2, 2005, at 1:36 AM, Krishnakumar B wrote: hi, I am trying to get a generic jms resource adapter working. The RA delivers to MDB whose onMessage is activated. The MDB openejb-jar.xml has a resource ref link enterprise-beans message-driven ejb-nameTestMDB/ejb-name resource-adapter resource-linkTestRA/resource-link /resource-adapter /message-driven /enterprise-beans /openejb-jar When deploying this MDB i get the following error. Error: Unable to distribute wascemq.jar: Unknown resource adapter reference (query=geronimo.server: J2EEApplication=null,J2EEServer=geronimo,j2eeType=JCA ResourceAdapter,name=TestRA,*) The RA is deployed successfully and i am able to invoke outbound connections from a servlet. The GBeans started have following pattern j2eeType = ResourceAdapter. I also tried setting resource link to test/jms.rar with same results Error: Unable to distribute wascemq.jar: Unknown resource adapter reference (query=geronimo.server: J2EEApplication=null,J2EEServer=geronimo,j2eeType=JCA ResourceAdapter,name=test/jms.rar,*) I am lost here as to how to fix this. Any ideas or help would be great The RA plan is as follows resourceadapter resourceadapter-instance resourceadapter-nameTestRA/resourceadapter-name workmanager gbean-linkDefaultWorkManager/gbean-link /workmanager /resourceadapter-instance outbound-resourceadapter connection-definition connectionfactory-interface/connectionfactory-interface connectiondefinition-instance nameTestFactory/name config-property-setting name=url/config-property-setting config-property-setting name=icf/config-property-setting config-property-setting name=name/config-property-setting connectionmanager no-transaction/ no-pool/ /connectionmanager /connectiondefinition-instance /connection-definition /outbound-resourceadapter /resourceadapter The Geronimo log shows the following GBeans started successfully GBeanInstanceState for: geronimo.config:name=test/jms.rar State changed from starting to running GBeanInstanceState for: geronimo.server: J2EEApplication=null,J2EEServer=geronimo,j2eeType=ResourceAdapterModule ,name=test/jms.rar State changed from stopped to starting GBeanInstanceState for: geronimo.server: J2EEApplication=null,J2EEServer=geronimo,j2eeType=ResourceAdapterModule ,name=test/jms.rar State changed from starting to running GBeanInstanceState for: geronimo.server: J2EEApplication=null,J2EEServer=geronimo,ResourceAdapter=test/ jms.rar,j2eeType=JCAResource,name=test/jms.rar State changed from stopped to starting GBeanInstanceState for: geronimo.server: J2EEApplication=null,J2EEServer=geronimo,ResourceAdapter=test/ jms.rar,j2eeType=JCAResource,name=test/jms.rar State changed from starting to running GBeanInstanceState for: geronimo.server: J2EEApplication=null,J2EEServer=geronimo,JCAResource=test/ jms.rar,j2eeType=JCAConnectionManager,name=TestFactory State changed from stopped to starting GBeanInstanceState for: geronimo.server: J2EEApplication=null,J2EEServer=geronimo,JCAResource=test/ jms.rar,j2eeType=JCAConnectionManager,name=TestFactory State changed from starting to running GBeanInstanceState for: geronimo.server: J2EEApplication=null,J2EEServer=geronimo,JCAResource=test/ jms.rar,j2eeType=JCAConnectionFactory,name=TestFactory State changed from stopped to starting GBeanInstanceState for: geronimo.server: J2EEApplication=null,J2EEServer=geronimo,JCAResource=test/ jms.rar,j2eeType=JCAConnectionFactory,name=TestFactory State changed from starting to running GBeanInstanceState for: geronimo.server: J2EEApplication=null,J2EEServer=geronimo,ResourceAdapterModule=test/ jms.rar,j2eeType=ResourceAdapter,name=test/jms.rar State changed from stopped to starting GBeanInstanceState for: geronimo.server: J2EEApplication=null,J2EEServer=geronimo,ResourceAdapterModule=test/ jms.rar,j2eeType=ResourceAdapter,name=test/jms.rar State changed from starting to running GBeanInstanceState for: geronimo.server: J2EEApplication=null,J2EEServer=geronimo,JCAResource=test/ jms.rar,j2eeType=JCAManagedConnectionFactory,name=TestFactory State changed from stopped to starting GBeanInstanceState for: geronimo.server: J2EEApplication=null,J2EEServer=geronimo,JCAResource=test/
Re: Resource Adapter Reference in MDB
hi David, The RA file ?xml version=1.0 encoding=UTF-8? connector xmlns=http://java.sun.com/xml/ns/j2ee; 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/connector_1_5.xsd; version=1.5 display-nameTestRA/display-name eis-typeTest EIS/eis-type resourceadapter-version1.0/resourceadapter-version resourceadapter outbound-resourceadapter connection-definition managedconnectionfactory-classcom.test.connector.outbound.TestManagedConnectionFactory/managedconnectionfactory-class config-property descriptionjndi provider/description config-property-nameurl/config-property-name config-property-typejava.lang.String/config-property-type /config-property config-property descriptionicf/description config-property-nameicf/config-property-name config-property-typejava.lang.String/config-property-type /config-property config-property descriptionname/description config-property-namename/config-property-name config-property-typejava.lang.String/config-property-type /config-property connectionfactory-interfacecom.test.connector.TestConnectionFactory/connectionfactory-interface connectionfactory-impl-classcom.test.connector.outbound.TestConnectionFactoryImpl/connectionfactory-impl-class connection-interfacecom.test.connector.TestConnection/connection-interface connection-impl-classcom.test.connector.outbound.TestConnectionImpl/connection-impl-class /connection-definition transaction-supportNoTransaction/transaction-support reauthentication-supportfalse/reauthentication-support /outbound-resourceadapter inbound-resourceadapter messageadapter messagelistener messagelistener-typejavax.jms.MessageListener/messagelistener-type activationspec activationspec-classcom.test.connector.inbound.TestActivationSpecImpl/activationspec-class required-config-property config-property-nameurl/config-property-name /required-config-property required-config-property config-property-nameicf/config-property-name /required-config-property required-config-property config-property-namename/config-property-name /required-config-property /activationspec /messagelistener /messageadapter /inbound-resourceadapter /resourceadapter /connector I am using a snapshot version post M5. Regards Krishnakumar B On 12/2/05, David Jencks [EMAIL PROTECTED] wrote: After looking at the code I don't see how this is possible. There's no evidence the ResourceAdapterWrapper gbean is being started. Could you show the ra.xml please? Exactly which version of geronimo are you using? thanks david jencks On Dec 2, 2005, at 1:36 AM, Krishnakumar B wrote: hi, I am trying to get a generic jms resource adapter working. The RA delivers to MDB whose onMessage is activated. The MDB openejb-jar.xml has a resource ref link enterprise-beans message-driven ejb-nameTestMDB/ejb-name resource-adapter resource-linkTestRA/resource-link /resource-adapter /message-driven /enterprise-beans /openejb-jar When deploying this MDB i get the following error. Error: Unable to distribute wascemq.jar: Unknown resource adapter reference (query=geronimo.server: J2EEApplication=null,J2EEServer=geronimo,j2eeType=JCA ResourceAdapter,name=TestRA,*)
Re: Resource Adapter Reference in MDB
Your resource adapter or the ra.xml is incomplete. You need a ResourceAdapter implementation class to be declared in the ra.xml in order to drive message driven beans. david jencks On Dec 2, 2005, at 2:18 AM, Krishnakumar B wrote: hi David, The RA file ?xml version=1.0 encoding=UTF-8? connector xmlns=http://java.sun.com/xml/ns/j2ee; 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/connector_1_5.xsd; version=1.5 display-nameTestRA/display-name eis-typeTest EIS/eis-type resourceadapter-version1.0/resourceadapter-version resourceadapter outbound-resourceadapter connection-definition managedconnectionfactory- classcom.test.connector.outbound.TestManagedConnectionFactory/ managedconnectionfactory-class config-property descriptionjndi provider/description config-property-nameurl/config-property-name config-property-typejava.lang.String/config-property-type /config-property config-property descriptionicf/description config-property-nameicf/config-property-name config-property-typejava.lang.String/config-property-type /config-property config-property descriptionname/description config-property-namename/config-property-name config-property-typejava.lang.String/config-property-type /config-property connectionfactory- interfacecom.test.connector.TestConnectionFactory/connectionfactory- interface connectionfactory-impl- classcom.test.connector.outbound.TestConnectionFactoryImpl/ connectionfactory-impl-class connection-interfacecom.test.connector.TestConnection/ connection-interface connection-impl- classcom.test.connector.outbound.TestConnectionImpl/connection-impl- class /connection-definition transaction-supportNoTransaction/transaction-support reauthentication-supportfalse/reauthentication-support /outbound-resourceadapter inbound-resourceadapter messageadapter messagelistener messagelistener-typejavax.jms.MessageListener/messagelistener- type activationspec activationspec- classcom.test.connector.inbound.TestActivationSpecImpl/ activationspec-class required-config-property config-property-nameurl/config-property-name /required-config-property required-config-property config-property-nameicf/config-property-name /required-config-property required-config-property config-property-namename/config-property-name /required-config-property /activationspec /messagelistener /messageadapter /inbound-resourceadapter /resourceadapter /connector I am using a snapshot version post M5. Regards Krishnakumar B On 12/2/05, David Jencks [EMAIL PROTECTED] wrote: After looking at the code I don't see how this is possible. There's no evidence the ResourceAdapterWrapper gbean is being started. Could you show the ra.xml please? Exactly which version of geronimo are you using? thanks david jencks On Dec 2, 2005, at 1:36 AM, Krishnakumar B wrote: hi, I am trying to get a generic jms resource adapter working. The RA delivers to MDB whose onMessage is activated. The MDB openejb-jar.xml has a resource ref link enterprise-beans message-driven ejb-nameTestMDB/ejb-name resource-adapter resource-linkTestRA/resource-link /resource-adapter /message-driven /enterprise-beans /openejb-jar When deploying this MDB i get the following error. Error: Unable to distribute wascemq.jar: Unknown resource adapter reference (query=geronimo.server: J2EEApplication=null,J2EEServer=geronimo,j2eeType=JCA ResourceAdapter,name=TestRA,*) The RA is deployed successfully