Joined: Thu May 27, 2010 1:55 am Posts: 2
|
Can we use an expression language to set parameters to JDBC at run time?
In particular we want to make changes to the URL to add arguments, and to change the Username and Password values from the typical proxy user and password to an actual logged in user's username and password.
We would want to get the values from the current session.
hibernate.connection.driver_class = com.corent.odicx.Driver hibernate.connection.url = jdbc:odicx://schema=mydata&sessionid=${SessionID} hibernate.connection.username = ${User} hibernate.connection.password = ${Pass} hibernate.dialect = org.hibernate.dialect.OdicxDialect
How would we go about this?
|
|