loading jdbc Driver in servlet

Поиск
Список
Период
Сортировка
От Rob Sargent
Тема loading jdbc Driver in servlet
Дата
Msg-id 5182a498-cfde-e7a3-998d-fea79bedaf35@gmail.com
обсуждение исходный текст
Ответы Re: loading jdbc Driver in servlet
Re: loading jdbc Driver in servlet
Список pgsql-general

Using java 1.8, postgresql-42.1.4.jar, embedded tomcat 9

It appears to me that I need to make the call "Class.forName("org.postgresql.Driver)" when the entry is in a servlet.  Is this expected, within a servlet, or is this just post hoc ergo propter hoc at it finest and I changed something else (wittingly or not).  Same code outside of servlet does not need the forced loading of the class and the manual claims it's not need after java 1.6

В списке pgsql-general по дате отправления:

Предыдущее
От: Oleg
Дата:
Сообщение: Re: libpq PQexecParams & value placeholders
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: loading jdbc Driver in servlet