Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Scripted Datasources using BIRT Reporter plugin(Is there a more elegant method for BIRT viewer to luk my java classes than including in the scriptlib)
Scripted Datasources using BIRT Reporter plugin [message #630170] Thu, 30 September 2010 21:14 Go to next message
Rajesh Indurthi is currently offline Rajesh IndurthiFriend
Messages: 7
Registered: September 2010
Junior Member
Hi Jason,
I was able to get my report running by placing my jar files in the scriptlib folder as you asked me to. However is there a more elegant solution for BIRT report plugin to look up my java classes. I will bebundling the solution inot an RCP app , In my case I want BIRT viewer to have acces to my whole persistance stack, which include a whole bunch of jars. One thing I tried to do is add
Eclipse-BuddyPolicy: registered
to the manifest file of my BIRT report viewer, and then added the following to the Manifest file of the plugin which has my java classes
Eclipse-RegisterBuddy: org.eclipse.birt.report.viewer.ViewerPlugin

I assumed that this will allow BIRT report to actually have access to my java class , but it did not work. Please advise me as to how to set my classloader on the BIRT report viewer.Your help is highly appreciated.
Re: Scripted Datasources using BIRT Reporter plugin [message #630303 is a reply to message #630170] Fri, 01 October 2010 13:53 Go to previous messageGo to next message
Rajesh Indurthi is currently offline Rajesh IndurthiFriend
Messages: 7
Registered: September 2010
Junior Member
Hi,
The problem is my application will be deployed as eclipse stand alone application, either as RCP or as eclipse plugin. In case of eclipse plugin I cannot bundle my persistance jars with the BIRT report viewer on every standalone machine. Is there any other way of sharing my java classes with the BIRT report viewer..?? Can I force BIRT report viewer to load up the class loader which has my java classes..Please help me on this one

Thanks in advance!!!
Re: Scripted Datasources using BIRT Reporter plugin [message #630317 is a reply to message #630170] Fri, 01 October 2010 14:44 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Rajesh,

There are some appContext settings that allow you to set the parent
classloader for the engine and to add to the classpath. If you are
using the viewer plugin in an RCP app this requires that you implement
the appcontext extension which is very easy. Take a look at this example:

RCP APP with BIRT and Scripted Datasource
http://www.birt-exchange.org/org/devshare/designing-birt-rep orts/889-rcp-app-with-birt-and-scripted-datasource/

Jason

On 9/30/2010 5:14 PM, Rajesh Indurthi wrote:
> Hi Jason,
> I was able to get my report running by placing my jar files in the
> scriptlib folder as you asked me to. However is there a more elegant
> solution for BIRT report plugin to look up my java classes. I will
> bebundling the solution inot an RCP app , In my case I want BIRT viewer
> to have acces to my whole persistance stack, which include a whole bunch
> of jars. One thing I tried to do is add
> Eclipse-BuddyPolicy: registered to the manifest file of my BIRT report
> viewer, and then added the following to the Manifest file of the plugin
> which has my java classes
> Eclipse-RegisterBuddy: org.eclipse.birt.report.viewer.ViewerPlugin
> I assumed that this will allow BIRT report to actually have access to my
> java class , but it did not work. Please advise me as to how to set my
> classloader on the BIRT report viewer.Your help is highly appreciated.
Previous Topic:BIRT System Requirement
Next Topic:system requirment for BIRT
Goto Forum:
  


Current Time: Thu Mar 28 23:42:41 GMT 2024

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

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

Back to the top