Skip to Content
0
Former Member
Feb 27, 2009 at 09:47 AM

ODBC Report with CR4E, how to create jdbc connection?

110 Views

Hi,

I am using CR4E to integrate Crystal reports in a thick client application.

My reports use ODBC connection, and I have the following error :

Error finding JNDI name (DB_NAME).

I have enabled log4j to see what's happening and I have the following trace:

ERROR com.businessobjects.reports.sdk.JRCCommunicationAdapter - detected an exception: Erreur lors de la recherche du nom JNDI (DB_NAME)

I have the following connection infos:

INFO com.crystaldecisions.reports.queryengine - Connection logon:Database DLL=s(crdb_odbc.dll);DSN=s(DB_NAME);UseDSNProperties=b(false);PreQEServerName=s(DB_NAME);database=s();User ID=s(xxx);Password=

I have read in the forum that I need to have a JNDI connection like jdbc/DB_NAME or jdbc:DB_NAME.

Wich one is really used?

So my original question was how do I create a JDNI connection?

Can I do it programmaticaly in java or should I use a config file?

Thanks.