Jump to content
Changes to the Jaspersoft community edition download ×

How to set database connection on runtime in jasper studio dynamically


Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

I agree with Hozawa, that by default Jasper does not support dynamic connnections. but if you can write some scriptlets

Check Default Data adapters
When Default data adapter configuration is mentioned, the report will try to connect to a database using the configuration given in a default data adapter.
For configuring default data adapter on a report, you would write up a database config xml file and place that on the Root level of Jasper server
I'm just throwing an idea: 
May be you could write a scriptlet based on a parameter and update this default data adapter Configuration file on the server dynamically (but by no means this is secure since the configuration file carries unhashed username/password for the data adapter).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...