Tomcat Data Sources

From Plex-XML
Jump to: navigation, search

By default Applications build with Plex /Plex-XML can use JNDI-Datasources (Java Naming and Directory Interface [1]) if the obxxxxx.properties file contains:

  • Environment.Default.Usejavax_sql_DataSource=Yes
  • Environment.Default.DataSourceJNDI=java:comp/env/jdbc/yourDataSourceName

In this case the part "java:comp/env/" is fix and "jdbc/yourDataSourceName" is the data source name.


Hint.png Important hints
  • TomCat names always have to start with 'jdbc/'
  • TomCat < 7.0: The data source definition can be found within the applications context.xml file
  • Tomcat >= 7.0: The data source definition can be found in your Tomcat directory ../conf/catalina/localhost/AppName.XML
  • The JDBC driver has to be copied into the Tomcat/common/lib folder. This has to be done, because apparently TomCat loads context dependent datasources during its start-up.


For more info see also
Personal tools