Re: jdbc:postgresql:database not bound error

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: jdbc:postgresql:database not bound error
Дата
Msg-id 415B372B.5010102@opencloud.com
обсуждение исходный текст
Ответ на jdbc:postgresql:database not bound error  ("William I. Zumwalt" <wizumwalt@yahoo.com>)
Список 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 по дате отправления:

Предыдущее
От: "William I. Zumwalt"
Дата:
Сообщение: jdbc:postgresql:database not bound error
Следующее
От: "Jaroslaw J. Pyszny"
Дата:
Сообщение: Re: Auto-increment serial (Postgresql JDBC driver w/