I am trying to migrate my application from jboss As 5 to jboss As 7.1.1.final. I have 4 databases from mssql and 1 db from postgres. I have before a har service that provide one sessionfactory and i want to do the same thing forjboss as 7 (not support har probably).
So my question is :
How can i configure one hibernate sessionFactory for multi persitenceunit ? or how can i use one persistenceunit for multi datasources ?
And how to get the sessionfactory from one method ?
please help.
sorry for my english
thx.