2011-03-13 35 views
0

如何連接到GWT和Gilead中的多個數據庫?我已經成功地實現了這個一個數據庫,如下所示:如何在gilead,GWT和Hiberante中設置多個數據庫連接?

HibernateUtil hibernateUtil = new HibernateUtil(); 
hibernateUtil.setSessionFactory(SchoolHibernateUtil.getSessionFactory()); 
PersistentBeanManager persistentBeanManager = new PersistentBeanManager(); 
persistentBeanManager.setPersistenceUtil(hibernateUtil); 
StatelessProxyStore proxyStore = new StatelessProxyStore(); 
proxyStore.setProxySerializer(new GwtProxySerialization()); 
persistentBeanManager.setProxyStore(proxyStore); 

setBeanManager(persistentBeanManager); 

我怎麼會在這裏定義第二個數據庫?

感謝

回答