geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shiva Kumar H R" <shiv...@gmail.com>
Subject Re: Can't connect to ConnectionFactory, need resource-ref?
Date Tue, 03 Jul 2007 15:07:55 GMT
On 7/3/07, Francisco Borges <francisco@x-hive.com> wrote:
>
> On Tuesday 03 July 2007, Shiva Kumar H R wrote:
> > Comments inline.
>
> > JNDI namespace for datasources should ideally be jdbc. Try changing
>
> Even if I am not exposing a JDBC interface?


It's not mandatory, just a best practice - makes your code more readable.

> <res-ref-name> to "jdbc/XhiveDS" (plus update jndi lookup code in your
> > ejbs) as below, in sync with <ref-name> in openejb-jar.xml, and see if
> > it solves the problem.
>
> >      <resource-ref>
> >        <res-ref-name>jdbc/XhiveDS</res-ref-name>
> >        <res-type>
> >
> > com.xhive.j2ee.connector.interfaces.XhiveCCIConnectionFactoryIf
> > </res-type>
> >        <res-auth>Container</res-auth>
> >        <res-sharing-scope>Shareable</res-sharing-scope>
> >      </resource-ref>
> >
> > If this doesn't solve, do post the errors you are seeing while
> > deploying/running.
>
> It worked!
>
:-)


Good.

Thank you very much for the help!
>
> Cheers,
> --
> Francisco Borges
>

Mime
View raw message