Example 1: Using JNDI data source connections of WebLogic Server

Using WebLogic as an example, take the following steps:

  1. Start WebLogic server, navigate to <YourProjectName> > Services > JDBC > Connection Pools. In the Configuration tab, make sure that the connection you are going to use is there and correctly set up.
  2. Browse to  <YourProjectName> > Services > JDBC > Data Sources. In the Configuration tab, create a data source using the JNDI name MyJNDISample. Select the correct connection from the Pool Name drop-down list.
  3. Open datasource.xml in the <install_root>\bin directory and add:
    <datasource-mapping>
    <datasource>
    <catalog-connection-name>ConnectionName</catalog-connection-name>
    <connection-type>JNDI</connection-type>
    <jndi-datasource>MyJNDISample</jndi-datasource>
    <user>youruserid</user>
    <password>yourpassword</password>
    </datasource>
    </datasource-mapping>
    
  4. Build the JReport Enterprise Server WAR file using the makewar utility in the <install_root>\bin directory.
  5. Deploy JReport Enterprise Server to WebLogic.
  6. Run the report set that uses this connection.