Bug 330873 Enable the ODA Runtime framework to run on non-OSGi platform
The ODA framework currently requires an ODA runtime extension to run as an OSGi bundle. This enhancement calls for enabling support to run on non-OSGi platform, if needed, such as in a J2EE application without OSGi.
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/odaconsumer/ConnectionManager.java
* @throws DataException	if data source error occurs.
	 */
	public int getMaxConnections( String driverName ) throws DataException
	{
		final String methodName = "getMaxConnections"; 
		getLogger().entering( sm_className, methodName, driverName );
		int maxConnections = 0;  	
		try
		{
			IDriver driverHelper = 
				DriverManager.getInstance().getDriverHelper( driverName );
			if ( driverHelper != null )
			    maxConnections = driverHelper.getMaxConnections();
		}
		catch( OdaException ex )
		{
			getLogger().logp( Level.WARNING, sm_className, methodName, 
							"Cannot get max connections.", ex ); 
			maxConnections = 0;
		}
		catch( UnsupportedOperationException ex )
		{
			getLogger().logp( Level.INFO, sm_className, methodName, 
							"Cannot get max connections.", ex ); 
			maxConnections = 0;
		}
		getLogger().exiting( sm_className, methodName, maxConnections );			
		return maxConnections;
	}
}