|ODA Plugin Project Structure / References / Deployment [message #592214]
||Thu, 24 July 2008 08:28
Registered: July 2009
I am in the process to implement an ODA datasource to access our legacy
data. Lots of these data are calculated using very complex formulas
taken from a database.
Calculation code already exists - it is in a "Standard Java Project"
called "datacalc". The project contains a central class called
What we try to achieve is to display calculation results using BIRT.
So our idea was:
-) We implement an ODA datasource (datacalc.oda and datacalc.oda.ui
-) The IQuery ("DataCalculatorQuery") implementation delegats to
"DataCalculator" for data access. (data are "quite" JDBC like).
Q1: Here we had our first problem: What's the proper way to access a
"plain Java Project" from a plugin project???? Do I really have to
export the project everytime it changes and refer to the JAR from the
plugin project? (at least that's what I did for now to be able to proceed)
This all works already, but I get totally stuck now when it comes
towards deployment. (Bear with me - I know java well, but am new to both
BIRT and to PDE. All this osgi stuff is very confusing to me).
I am stuck on the simple task to create a test project.
-) Our test project needs access to the java project "datacalc".
-) Further it references the datacalc.oda plugin project.
Q2: Next problems: the DTP classes (e.g. IConnection) are unresolved.
What is the preferred way to add them to the classpath?
Make the test project a plugin project? I really don't want to do that,
because our "real" project is a J2EE Web project, and I can't change
this one to a plugin.
-) Then we want to load our test report, and inject our instance of
"DataCalculator" into the query using "setAppContext".
Q3: Is this the way to go?
-) I read lots about problems with ClassLoaders etc.
Q4: Is there anything specific I have to be aware of in this area.
I really am impressed with the functionality both in the DTP and Birt area.
Just the stuff concerning "Classpathes, Classloaders, Birt Runtime
Environment, Plugin vs. Plain Java Projects" feels so completely
"unnatural" to me - it's really causing us big troubles (and I found no
nice guide for that, too ... maybe someone can has a hint for me on
where to start here).
Thanks a lot in advance for your help.
PS. I had troubles using my connection and the news reader. I hope this
message isn't posted multiple times.
Powered by FUDForum
. Page generated in 0.02408 seconds