Re: jdbc:postgresql:database not bound error - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: jdbc:postgresql:database not bound error
Date
Msg-id 415B372B.5010102@opencloud.com
Whole thread Raw
In response to jdbc:postgresql:database not bound error  ("William I. Zumwalt" <wizumwalt@yahoo.com>)
List pgsql-jdbc
William I. Zumwalt wrote:

> 09:32:37,214 INFO  [PostgresDS] Bound connection
> factory for resource adapter for ConnectionManager
> 'jboss.jca:service=LocalTxCM,name=PostgresDS to JNDI
> name 'java:/PostgresDS'

> 10:36:26,231 INFO  [STDOUT] Exception:
> jdbc:postgresql:megs not bound

>     public static final String DBURL =
> "jdbc:postgresql:megs";

>                 Context context = new
> InitialContext();
>                 dataSource = (DataSource)
> context.lookup(DBURL);

Shouldn't you be doing a lookup of "java:/PostgresDS", not DBURL?

Either way, it sounds like a jboss/application config error, not a JDBC
driver error. You might want to try a jboss list if changing the lookup
doesn't help.

-O

pgsql-jdbc by date:

Previous
From: "William I. Zumwalt"
Date:
Subject: jdbc:postgresql:database not bound error
Next
From: "Jaroslaw J. Pyszny"
Date:
Subject: Re: Auto-increment serial (Postgresql JDBC driver w/