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-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


Reply via email to