Setting data source for reports in Crystal Reports 2008 Java (performance)

Posted by Daniel on Stack Overflow See other posts from Stack Overflow or by Daniel
Published on 2010-05-24T13:27:06Z Indexed on 2010/05/24 13:31 UTC
Read the original article Hit count: 472

Filed under:
|
|

Hi,

we have Crystal Reports 2008 on the server, and use the Java SDK to display reports and convert them to PDF.

Since the server hat its own database, we have to set the data source on the DatabaseController to make CR connect to this database. We do it like specified in the docs, and tried the functions in CRJavaHelper, but for a reason unknown to me setting the connection string takes 300ms to 1500ms.

What is the fastest way to tell Crystal which datasource to use in its reports? I already saw a JNDI name somewhere, but i don't believe CR actually does a JNDI lookup to find an existing datasource, doesn't it?

© Stack Overflow or respective owner

Related posts about java

Related posts about crystal-reports