2009-11-03 82 views

回答

1

我會熱烈建議閱讀文檔的3.8. J2EE Application Server integration這一章。但是通過Weblogic 9.x和Oracle 10g,你會得到類似的結果(部分但經過測試的設置):

... 
<property name="hibernate.session_factory_name">hibernate.SessionFactory</property> <!-- JNDI bound Session Factory Name --> 
<property name="hibernate.jndi.url">t3://localhost:port</property> 
<property name="hibernate.jndi.class">weblogic.jndi.WLInitialContextFactory</property> 
<property name="hibernate.jndi.weblogic.jndi.replicateBindings">false</property> <!-- because SessionFactory is not clusterable --> 
<property name="dialect">org.hibernate.dialect.Oracle10gDialect</property> 
... 
相關問題