geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Mulder" <ammul...@alumni.princeton.edu>
Subject Re: GBean referencing ManagedConnectionFactoryWrapper
Date Sat, 02 Sep 2006 18:30:05 GMT
Can you post your GBean plan and the deployment plan for the database
connection pool you're trying to reference?  (If you just created and
deployed the pool the first time you can go through the whole thing
except hit "Show Plan" rather than "Deploy" to generate the plan.)

Thanks,
     Aaron

On 9/1/06, Oli Kessler <ok@ncode.ch> wrote:
> Hi,
>
> We are trying to reference a JMS resource as well as a database pool
> from our custom gbean. They are both declared as references in the
> GBEAN_INFO:
>
> infoFactory.addReference("managedConnectionFactoryWrapper",
>    ManagedConnectionFactoryWrapper.class,
>    NameFactory.JCA_MANAGED_CONNECTION_FACTORY);
> infoFactory.addReference("managedDBConnectionFactoryWrapper",
>    ManagedConnectionFactoryWrapper.class,
>    NameFactory.JCA_MANAGED_CONNECTION_FACTORY);
>
>
> The deployment plan includes
>
> ..
> <!--reference the JMS here-->
> <reference name="managedConnectionFactoryWrapper">
>    <name>myTopicConnectionFactory</name>
> </reference>
>
> <!--reference the DB connection -->
> <reference name="managedDBConnectionFactoryWrapper">
>   <name>myDBConnection</name>
> </reference>
> ..
>
> The name "myTopicConnectionFactory" ist listed in the console as a
> server-wide Connection Factory, while "myDBConnection" is the name of a
> server-wide Database Pool.
>
> When deploying, the JMS reference is resolved and attached, while the
> database reference fails with:  Unable to resolve reference
> "managedDBConnectionFactoryWrapper"
>
> Is a DB pool not accessible with a ManagedConnectionFactoryWrapper?
> I tried using  groupId and artifactId as well but no success.
>
> Cheers
> -ok
>

Mime
View raw message