Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Connection Pool in Birt Viewer
Connection Pool in Birt Viewer [message #991187] Mon, 17 December 2012 16:24 Go to next message
Silver wang is currently offline Silver wangFriend
Messages: 3
Registered: December 2012
Junior Member
I am new to Birt so please pardon my question below, I was able to inject connection before I ran the report, the output shows proper result. see codes below:

IRunAndRenderTask task = engine.createRunAndRenderTask(design);

Map<String, Object> appContext = task.getAppContext();
appContext.put("OdaJDBCDriverPassInConnection", setupJdbcConnection());
appContext.put("OdaJDBCDriverPassInConnectionCloseAfterUse", false);

HTMLRenderOption options = new HTMLRenderOption();
//Set ouptut location
//Set output format

//run the report and destroy the engine
//Note - If the program stays resident do not shutdown the Platform or the Engine;

I am wondering if I can still show this output file(html or pdf...) in Birt report viewer? Please advice how to, Your help is greatly appreciated.

Re: Connection Pool in Birt Viewer [message #991420 is a reply to message #991187] Wed, 19 December 2012 02:37 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

If you want to use the viewer, have you tried this approach:

BTW you can also get the appcontex in report script in the beforeOpen of the datasource
var conn = new MyJdbcConn();
reportContext.getAppContext().put("OdaJDBCDriverPassInConnection", conn);

Previous Topic:Create elements that derive from rptlibrary using Designer API
Next Topic:BIRT Report Chart not showing on IE8
Goto Forum:

Current Time: Sun Oct 04 07:42:27 GMT 2015

Powered by FUDForum. Page generated in 0.03266 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software