Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsJNDI configuration for BIRT report designer
https://www.eclipse.org/forums/index.php/mv/msg/317497/830084/#msg_830084
I am trying to configure a JNDI for my report design so it can dynamically load the database properties from a JNDI file (.xml extension) which is already been used by my application and deployed under jboss deploy directory.
I am using BIRT RCP REPORT DESIGNER 3.7.1 and i have been trying to achieve this for over two days now.
Any help would be appreciated guys
Thanks a lot
Tony]]>Tony M2012-03-27T06:55:43-00:00Re: JNDI configuration for BIRT report designer
https://www.eclipse.org/forums/index.php/mv/msg/317497/830772/#msg_830772
store the connection properties in a file. How do you read the jndi
properties in your current application. You should be able to write
similar code in the property binding expression for the data source.
Jason
On 3/27/2012 2:55 AM, Tony M wrote:
> Hi everyone,
>
> I am trying to configure a JNDI for my report design so it can
> dynamically load the database properties from a JNDI file (.xml
> extension) which is already been used by my application and deployed
> under jboss deploy directory.
>
> I am using BIRT RCP REPORT DESIGNER 3.7.1 and i have been trying to
> achieve this for over two days now.
>
> Any help would be appreciated guys
>
> Thanks a lot
> Tony]]>Jason Weathersby2012-03-28T03:19:07-00:00Re: JNDI configuration for BIRT report designer
https://www.eclipse.org/forums/index.php/mv/msg/317497/830903/#msg_830903
It is solved now. I am not using the connection profile. My application uses the JNDI file deployed under JBOSS through the hibernate configuration file using this property "<property name="hibernate.connection.datasource">java:jndiName</property>" under the session factory configuration.
So i used the same "java:jndiName" for the jndi URL in the rcp designer under the data source editing window and that worked well. All i have to specify is the driver class, which in my case is "com.mysql.jdbc.Driver (v5.1)".
We have to note that at this point, i cannot test the connection. This will only be validated while using the design in production.
Tony]]>Tony M2012-03-28T07:48:18-00:00Re: JNDI configuration for BIRT report designer
https://www.eclipse.org/forums/index.php/mv/msg/317497/965178/#msg_965178
Your last line made my code working.