Skip to main content



      Home
Home » Archived » BIRT » BIRT tool - deployment in ear file
BIRT tool - deployment in ear file [message #263047] Tue, 11 December 2007 02:59 Go to next message
Eclipse UserFriend
Hi,

In our project we are using BIRT as the report generation tool.
We have to deploy the complete application as an .ear file to the
application server like OC4J or Weblogic.
So once you deployed ear, it may not get deployed into a file structure
and it may remain in the same ear file.

In the above scenario, how can I specify BIRT home.
In normal case, we are specifying as below.
config.setEngineHome("d:/ProgramFiles/birt/birt-runtime-2_2_0/ReportEngine ");
But if deployed as ear and not getting into file structure, what is the
alternative for specifying engine home?

Thanks and regards,
Shomy
Re: BIRT tool - deployment in ear file [message #263076 is a reply to message #263047] Tue, 11 December 2007 10:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Shomy


If you are using the Report Engine API, use a PlatformServletContext Class.
config.setEngineHome("");
IPlatformContext context = new PlatformServletContext( sc );
config.setPlatformContext( context );

Check out this page for details:
http://wiki.eclipse.org/Servlet_Example_%28BIRT%29_2.1


Jason

Shomy Jose wrote:
> Hi,
>
> In our project we are using BIRT as the report generation tool.
> We have to deploy the complete application as an .ear file to the
> application server like OC4J or Weblogic.
> So once you deployed ear, it may not get deployed into a file structure
> and it may remain in the same ear file.
>
> In the above scenario, how can I specify BIRT home.
> In normal case, we are specifying as below.
> config.setEngineHome("d:/ProgramFiles/birt/birt-runtime-2_2_0/ReportEngine ");
>
> But if deployed as ear and not getting into file structure, what is the
> alternative for specifying engine home?
>
> Thanks and regards,
> Shomy
>
Re: BIRT tool - deployment in ear file [message #263111 is a reply to message #263076] Tue, 11 December 2007 23:31 Go to previous messageGo to next message
Eclipse UserFriend
Hi Jason,

I can't get a parameter like ServletContext in my BIRT class which is used
to generate reports. In my case our report engine classes are coming in
business layer.
Ours is JSF+EJB+Toplink link. The design team won't allow to pass the
ServletContext from the presentation layer to business layer.

In business layer I can use BIRT engine API classes and also java classes.

What is the work around to solve this issue?

The above mentioned case is a normal scenario which will happen in any
medium size projects.

Thanks and regards,
Shomy


Shomy


If you are using the Report Engine API, use a PlatformServletContext Class.
config.setEngineHome("");
IPlatformContext context = new PlatformServletContext( sc );
config.setPlatformContext( context );

Check out this page for details:
http://wiki.eclipse.org/Servlet_Example_%28BIRT%29_2.1


Jason

Shomy Jose wrote:

Hi,

In our project we are using BIRT as the report generation tool.
We have to deploy the complete application as an .ear file to the
application server like OC4J or Weblogic.
So once you deployed ear, it may not get deployed into a file structure
and it may remain in the same ear file.

In the above scenario, how can I specify BIRT home.
In normal case, we are specifying as below.
config.setEngineHome("d:/ProgramFiles/birt/birt-runtime-2_2_0/ReportEngine ");
But if deployed as ear and not getting into file structure, what is the
alternative for specifying engine home?

Thanks and regards,
Shomy
Re: BIRT tool - deployment in ear file [message #263138 is a reply to message #263111] Wed, 12 December 2007 10:40 Go to previous message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Shomy,

I do not know of a good work around in this case. The Platform requires
a hard location to startup the plugins. The PlatformServlet context
essentially copies the plugins to a temp directory on the servlet
startup and starts up the platform there. Maybe you can do something
similar. Checkout that class from CVS to get the details. You may also
want to log a bugzilla entry for this.

Jason

Shomy Jose wrote:
> Hi Jason,
>
> I can't get a parameter like ServletContext in my BIRT class which is
> used to generate reports. In my case our report engine classes are
> coming in business layer.
> Ours is JSF+EJB+Toplink link. The design team won't allow to pass the
> ServletContext from the presentation layer to business layer.
>
> In business layer I can use BIRT engine API classes and also java classes.
>
> What is the work around to solve this issue?
>
> The above mentioned case is a normal scenario which will happen in any
> medium size projects.
>
> Thanks and regards,
> Shomy
>
>
> Shomy
>
>
> If you are using the Report Engine API, use a PlatformServletContext Class.
> config.setEngineHome("");
> IPlatformContext context = new PlatformServletContext( sc );
> config.setPlatformContext( context );
>
> Check out this page for details:
> http://wiki.eclipse.org/Servlet_Example_%28BIRT%29_2.1
>
>
> Jason
>
> Shomy Jose wrote:
>
> Hi,
>
> In our project we are using BIRT as the report generation tool.
> We have to deploy the complete application as an .ear file to the
> application server like OC4J or Weblogic.
> So once you deployed ear, it may not get deployed into a file structure
> and it may remain in the same ear file.
>
> In the above scenario, how can I specify BIRT home.
> In normal case, we are specifying as below.
> config.setEngineHome("d:/ProgramFiles/birt/birt-runtime-2_2_0/ReportEngine ");
> But if deployed as ear and not getting into file structure, what is the
> alternative for specifying engine home?
>
> Thanks and regards,
> Shomy
>
>
Previous Topic:Saving an HTML report for later web viewing
Next Topic:multiple parameters in drill-throught
Goto Forum:
  


Current Time: Mon May 12 22:08:28 EDT 2025

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

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

Back to the top