[jboss-dev-forums] [Design of JBoss Identity] - Re: Injecting existing HibernateSession/SessionFactory
bdaw
do-not-reply at jboss.com
Tue Feb 3 08:02:00 EST 2009
I changed HibernateIdentityStoreImpl to use hibernate SessionFactory instead of HibernateEntityManagerFactory. So previous IdentityStore.bootstrapHibernateEntityManager method is now bootstrapHibernateSessionFactory. There is also one additional way to provide store with SessionFactory - using JNDI:
so possible configuration is:
| <option>
| <name>persistenceUnit</name>
| <value>jboss-identity-model1</value>
| </option>
or
| <option>
| <name>hibernateSessionFactoryJNDIName</name>
| <value>jndi/path/to/hibernate/SessionFactory/object/here</value>
| </option>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4206542#4206542
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4206542
More information about the jboss-dev-forums
mailing list