Regular |
|
Joined: Wed Sep 03, 2003 8:04 am Posts: 55
|
I know hibernate can be configured in jboss, where EJB and servlet can get SessionFactory by looking up JNDI.
However i really do not know how to configre hibernate in resin same as jboss ? i think we should use resource to do it :
<resource type="com.caucho..amber.AmberFactory">
<init>
......
</init>
</resource>
But for SessionFactory i donot know how to fill the <init> part of resource. In another word how to set those properties in hibernate.cfg.xml into resource.
It i s better to show me sample code.
Regards!
|
|