Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is the precedence when both JDBC URL and JNDI name are specified?

JDBC JNDI precedence URL
0
Posted

What is the precedence when both JDBC URL and JNDI name are specified?

0

You can specify JDBC Driver URL and/or JNDI name. The JNDI service can be used when BIRT is deployed to an application server. It can also be used in BIRT Report Designer for data preview, if your JNDI service provider supports client-side access. You may use a jndi.properties resource file to configure the JNDI initial context environment. See description in Bugzilla 131662 for more details. If your report design contains a JDBC data source defined with both JDBC Driver URL and JNDI name, then JNDI service will be used first and JDBC driver will be used as fallback. The username and password properties, if specified, are used in both cases. When you need to ensure that JNDI service is really used, increase logging level of BIRT engine; in case of JDBC fallback you will see JNDI lookup errors in the logs.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.