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-name>TestRA</display-name>
        <eis-type>Test EIS</eis-type>
        <resourceadapter-version>1.0</resourceadapter-version>
        <resourceadapter>
                <outbound-resourceadapter>
                        <connection-definition>
<managedconnectionfactory- class>com.test.connector.outbound.TestManagedConnectionFactory</ managedconnectionfactory-class>
                                <config-property>
                                        <description>jndi provider</description>
                                        
<config-property-name>url</config-property-name>
                                        
<config-property-type>java.lang.String</config-property-type>
                                </config-property>
                                <config-property>
                                        <description>icf</description>
                                        
<config-property-name>icf</config-property-name>
                                        
<config-property-type>java.lang.String</config-property-type>
                                </config-property>
                                <config-property>
                                        <description>name</description>
                                        
<config-property-name>name</config-property-name>
                                        
<config-property-type>java.lang.String</config-property-type>
                                </config-property>
<connectionfactory- interface>com.test.connector.TestConnectionFactory</connectionfactory- interface> <connectionfactory-impl- class>com.test.connector.outbound.TestConnectionFactoryImpl</ connectionfactory-impl-class> <connection-interface>com.test.connector.TestConnection</ connection-interface> <connection-impl- class>com.test.connector.outbound.TestConnectionImpl</connection-impl- class>
                        </connection-definition>
                        <transaction-support>NoTransaction</transaction-support>
                        
<reauthentication-support>false</reauthentication-support>
                </outbound-resourceadapter>
                <inbound-resourceadapter>
                        <messageadapter>
                                <messagelistener>
<messagelistener-type>javax.jms.MessageListener</messagelistener- type>
                                        <activationspec>
<activationspec- class>com.test.connector.inbound.TestActivationSpecImpl</ activationspec-class>
                                                <required-config-property>
                                                        
<config-property-name>url</config-property-name>
                                                </required-config-property>
                                                <required-config-property>
                                                        
<config-property-name>icf</config-property-name>
                                                </required-config-property>
                                                <required-config-property>
                                                        
<config-property-name>name</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-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=ResourceAdapterModu le
,name=test/jms.rar
State changed from stopped to starting
GBeanInstanceState for:
geronimo.server:
J2EEApplication=null,J2EEServer=geronimo,j2eeType=ResourceAdapterModu le
,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