Hi Bernd,

Le 23/10/2019 à 06:55, bernd.sch...@daimler.com a écrit :
Hi Mathieu,

-----Ursprüngliche Nachricht-----
Von: Mathieu Dubois <mdub...@genoscope.cns.fr>
Gesendet: Mittwoch, 23. Oktober 2019 03:00
An: users@tomcat.apache.org
[SNIP]
I have read a bit about Tomcat and if I understand correctly, the
correct way to do is to declare a Resource in the configuration of each
server which represents the DB to use and then adapt the code (in
particular Hibernate configuration) to use this Resource based on it's
name. Then the same WAR file can be deployed on any servers provided
it's configured without maven (i.e. I just have to upload the WAR file
and voilà).

Is that correct ?
Yes, it is a common approach in the Java Application world called jndi.
So your app would also work on a different application server like Wildfly or 
Liberty.

But the way you define it in your application server differs,
So see here for comparison:
https://tomcat.apache.org/tomcat-8.0-doc/jndi-resources-howto.html
https://developer.jboss.org/thread/279940

Thank you very much for your insight. It will sure help us to restructure the project.

Namaste,
Mathieu

--
Mathieu Dubois - IR - UMR 8030 équipe LABGeM
CEA - Genoscope. 2 rue Gaston Crémieux. 91057 Evry Cedex France.
Bureau B07
+33 1 60 87 53 35


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to