JRDriver static clause action

COMPONENT JAVA
Extending the Power of JDBC Drivers
Nitin Nanda
Listing 1. JRDriver static clause action.


static
{
  /* initialize no. of connections */
  /* this could be read from property file*/

  iConnections = 10;
  try
  {
    /* register with the driver */
     DriverManager.registerDriver(new JRDriver());
    /* create pool manager object */
     poolManager = new JRPoolManager(iConnections);
  }
                             . . .
}

Featured

Upcoming Events

AppTrends

Sign up for our newsletter.

I agree to this site's Privacy Policy.