How to set a datasource for a BIRT report programmatically?

后端 未结 5 1080
借酒劲吻你
借酒劲吻你 2021-02-04 08:46

I have a BIRT report which connects to our test database. In the productive environment I would like to supply a datasource which is provided by the container through jndi.

5条回答
  •  醉酒成梦
    2021-02-04 09:16

    You can create a Report Parameter for the database connection string.

    Then, set the JNDI URL under Data Source -> Property Binding -> JNDI URL, as: params["Database"].value
    (Where "Database" is the name of the report parameter)

提交回复
热议问题