Home
Analytics
How to use JBoss datasource?
basti
Hi,
I'm now have some reports which work perfectly fine (thanks for your help), but just localy. The datasource is hardcoded in the rpt files with kind of encrypted password. But now, I want to deploy those files to a server, where the PostgreSQL database has a different password.
On the new Server there is a PostgreSQL datasource configured which is in use by some other apps. Now I would like to point the rpt files on the server to that datasource so the reports can be used on different machines without changing the user and password all the time. But unfortunately I didn't find anything about it.
Any hints are appreciated.
Thanks for you help and best regards,
Sebastian
Find more posts tagged with
Comments
bhanley
You can parameterize the report data source parameters. In the designer double-click the data source to edit it. Look at the functional groupings along the left of the editor. The last one deals with parameterization. If you create a hidden report parameter to hold the password you can bind that parameter to the matching data source property. Then when you invoke the report you can pass in whatever you need to to target the data source for the given environment.
You can also choose to use JNDI or connection profile stores if the parameter option cannot work for you. Check the Blogs, DevShare and the Wiki if you want more background on those options.
For initial development, the parameter option gives you the most flexibility and almost no setup time.
Good Luck!
basti
The parameterization doesnt help me because theres a preconfigured datasource within our internal JBoss version, so I need to work with that.
You might be able to point me to a site/tutorial with some info about how to achive to just use that specific data source.
bhanley
<blockquote class='ipsBlockquote' data-author="'basti'" data-cid="66001" data-time="1277817827" data-date="29 June 2010 - 06:23 AM"><p>
The parameterization doesnt help me because theres a preconfigured datasource within our internal JBoss version, so I need to work with that.<br />
<br />
You might be able to point me to a site/tutorial with some info about how to achive to just use that specific data source.<br /></p></blockquote>
<br />
How is that data source made available via JBOSS? Is it JNDI? A JDBC URL? WHen I know that I can give you the settings you need.
basti
Hi,
I just figured out: JNDI.
Thank you very much,
Sebastian
basti
I'm still not able to use the JBOSS's Datasource, I now know its JNDI but I just dont know how to configure it. :-(
Can somebody help me? :-)
prashbn
On selecting the JDBC data source, the property binding grouping on the left allows us to specify report parameters. But the problem is that I am not able to delete the values provided in the BIRT JDBC Data Source grouping as the validations fail. As this contains all the required parameters, BIRT creates a connection using these values.
These values do not use the data source configured in the JBoss Server and I am running out of connections after running the reports a couple of times.
Thanks,
Prashant