Assume that a catalog has been created with a default data source in JReport Designer. Take the following steps to set up a connection which connects JReport Designer to a database via the WebLogic 6.1 Connection Pool:
http://host:7001/console
). Then, go to the left panel, and expand the JDBC node.Name: jinfonet
URL: jdbc:odbc:jinfonet
Driver Classname: sun.jdbc.odbc.JdbcOdbcDriver
In the Monitoring tab, click the link Monitor all Active Pools to check if the pool is active. You will see the connection pool that you just created appear in the Monitoring tab.
Name: jinfonetDS
JNDI Name: jinfonetDS
Pool Name: jinfonet
To connect via the WebLogic Connection Pool in JReport Designer, you will first need to add weblogic.jar in <weblogic_install_root>\wlserver6.1\lib
to the ADDCLASSPATH variable of setenv.bat. In this example, supposing that you have installed JReport Designer in C:\JReport\Designer
, and WebLogic in C:\bea
, you will have to modify setenv.bat in C:\JReport\Designer\bin
to add C:\bea\wlserver6.1\lib\weblogic.jar
to the ADDCLASSPATH variable as follows:
set ADDCLASSPATH=%JAVAHOME%\lib\tools.jar;C:\bea\wlserver6.1\lib\weblogic.jar;
Note: The data types longbarbinary and BigDecimal are not supported when a WebLogic Connection Pool is used.