Bug 171640 Opened db connection after report generation
1. Use report engine for rendering report (not under eclipse ide) 2. Use JNDI to obtain JDBC connection. My app now working under JBoss appserver. But using of JNDI to obtain db connection not an important to reproduce its bug. 3. After calling myRunAndRenderTask.run(), engine opens new db connection and after run() call has been finished db conection still open.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/RunAndRenderTask.java
if ( !supported )
		{
			log.log( Level.SEVERE,
					MessageConstants.FORMAT_NOT_SUPPORTED_EXCEPTION, format );
			throw new UnsupportedFormatException(
					MessageConstants.FORMAT_NOT_SUPPORTED_EXCEPTION, format );
		}
		pagination = extManager.getPagination( format );
		IContentEmitter emitter = null;
		try
		{
			emitter = extManager.createEmitter( format, emitterID );
		}
		catch ( Throwable t )
		{
			log.log( Level.SEVERE, "Report engine can not create {0} emitter.", 
					format ); 
			throw new EngineException(
					MessageConstants.CANNOT_CREATE_EMITTER_EXCEPTION, format, t );
		}
		if ( emitter == null )
		{
			log.log( Level.SEVERE, "Report engine can not create {0} emitter.", 
					format ); 
			throw new EngineException(
					MessageConstants.CANNOT_CREATE_EMITTER_EXCEPTION, format );
		}
		return emitter;
	}
	/*