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
/*******************************************************************************
 * Copyright (c) 2004 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *  Actuate Corporation  - initial API and implementation
 *******************************************************************************/
package org.eclipse.birt.report.engine.api.impl;
import java.util.Collection;
import java.util.Iterator;