You have to first create a connection-pool and then create a
jdbc-resource which has a JNDI name. Look at admin console and see the
way DerbyPool and jdbc/__default are defined. There is no way you can
use the connection pool directly in your code, because it is not
available as a service. You have to create a jdbc-resource. You can use
admin console or asadmin create-jdbc-resource command to do this.
On Thursday 02 February 2012 07:09 PM, forums_at_java.net wrote:
>
> For now it still don't work because JNDI is used for datasource and
> I haven't configured it yet. Is it possible to configure the activator to
> search for JDBC Resource instead JNDI resource?
>
> How I must configure the above example to do this?