Skip to main content



      Home
Home » Archived » BIRT » Switching between Development and Production Enviroment.
Switching between Development and Production Enviroment. [message #165424] Mon, 29 May 2006 06:49 Go to next message
Eclipse UserFriend
Originally posted by: a.b.c

I was wondering if there is a "trick" or something that I can do to
minimize the headache that we have when we try to deploy our reports to
our live server.

Problem :
Our db connection is different between our test and live servers

Solution we came up with:
Hard-coding the URL/Username/Password and change the settings every
time we deploy

Solution that would be great:
Read DB Connection from configuration file.
Re: Switching between Development and Production Enviroment. [message #165432 is a reply to message #165424] Mon, 29 May 2006 06:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: a.b.c

Zaroubi, Sherif wrote:
> I was wondering if there is a "trick" or something that I can do to
> minimize the headache that we have when we try to deploy our reports to
> our live server.
>
> Problem :
> Our db connection is different between our test and live servers
>
> Solution we came up with:
> Hard-coding the URL/Username/Password and change the settings every
> time we deploy
>
> Solution that would be great:
> Read DB Connection from configuration file.

I forgot to mention that they should not be passed as parameters.
As the reports are going to be run in a web interface, and it's not
secure to send username,password and IP of my DB server over the wire.

Thank you again
Re: Switching between Development and Production Enviroment. [message #167754 is a reply to message #165432] Tue, 06 June 2006 08:37 Go to previous messageGo to next message
Eclipse UserFriend
> Zaroubi, Sherif wrote:

> I forgot to mention that they should not be passed as parameters.
> As the reports are going to be run in a web interface, and it's not
> secure to send username,password and IP of my DB server over the wire.

> Thank you again

See Property Binding in the data source editor.
Just define appropriate parameters for each data source property and fill
these parameters in runtime from config file.

IReportRunnable design = engine.openReportDesign(path);
HashMap parameters = evaluateParameterValues(design);
IRunAndRenderTask task = engine.createRunAndRenderTask(design);
task.setParameterValues(parameters);

Good luck,
Andrey Dulub
Re: Switching between Development and Production Enviroment. [message #168864 is a reply to message #167754] Fri, 09 June 2006 10:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: roberson.unoescsmo.edu.br

Hi, try to read this article to help in your problem.

http://birtworld.blogspot.com/2006/01/swapping-databases-at- runtime-with.html
Re: Switching between Development and Production Enviroment. [message #169111 is a reply to message #168864] Mon, 12 June 2006 09:16 Go to previous message
Eclipse UserFriend
Originally posted by: gandhimathi_p2002.yahoo.co.in

Hello Folks ,
In this way , the DB details have to be passed as parameters .
But I dont want to show up my DB details explicitly.
Can u plz suggest an alternative option..

Thanks
Regards
Mathi
Previous Topic:BIRT 2.1.0 distribution missing some plugin metadata?
Next Topic:installation BIRT 2.1RC4
Goto Forum:
  


Current Time: Mon May 12 01:27:55 EDT 2025

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

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

Back to the top