geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Krishnakumar B <www....@gmail.com>
Subject Resource Adapter Reference in MDB
Date Fri, 02 Dec 2005 09:36:16 GMT
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-name>TestMDB</ejb-name>
        <resource-adapter>
           <resource-link>TestRA</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-name>TestRA</resourceadapter-name>
                <workmanager>
                    <gbean-link>DefaultWorkManager</gbean-link>
                </workmanager>
        </resourceadapter-instance>

                <outbound-resourceadapter>
	            <connection-definition>
	                <connectionfactory-interface>....</connectionfactory-interface>
	                <connectiondefinition-instance>
	                    <name>TestFactory</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

Mime
View raw message