This content has been marked as final.
Show 3 replies
-
1. Re: changing datasource on runtime breaks hibernate session
amit.bhayani Jan 18, 2006 5:46 AM (in response to szczepiq)You cannot modify the *-ds.xml without redeploying the application that makes use of DataSource.
-
2. Re: changing datasource on runtime breaks hibernate session
yeroc Feb 1, 2006 11:05 AM (in response to szczepiq)Are there plans to remove this restriction in the future?
-
3. Re: changing datasource on runtime breaks hibernate session
szczepiq Feb 2, 2006 11:24 AM (in response to szczepiq)> You cannot modify the *-ds.xml without redeploying the application that makes use of DataSource.
This is not true, we change the datasource file and all dependant services rebind properly.
The problem with sessionFactory was solved by adding dependency to hibernate-service.xml:
jboss.jca:name=jndi_name_of_your_ds,service=DataSourceBinding
Now everytime the datasource changes, session factory is rebuild.