Using JNDI to obtain db connection [message #213007] |
Mon, 22 January 2007 06:54  |
Eclipse User |
|
|
|
My application works under JBoss application server and I use BIRT
engine runtime to generate reports (version 2.1.1).
The problem - BIRT not use defined JNDI string to obtain database
connection. It always create new connection by using other
oda-data-source parameters.
The data-source part of my rptdesign file:
....
<data-sources>
<oda-data-source
extensionID="org.eclipse.birt.report.data.oda.jdbc" name="CRM2DS" id="4">
<text-property name="displayName">CRM2DS</text-property>
<property
name="odaDriverClass">com.mysql.jdbc.Driver</property>
<property name="odaURL">jdbc:mysql://localhost/CRM2</property>
<property name="odaUser">root</property-->
<property name="odaJndiName">java:comp/env/CRM2DS</property>
</oda-data-source>
</data-sources>
....
How can I force BIRT engine to use JNDI to obtain connection to database?
Thanks in advance
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03119 seconds