Hi,
i'm using tomcat as my development server while production server is weblogic.
what problem i'm facing is the datasource definition in hibernate.cfg.xml for tomcat and weblogic is not same.
ex:
<!-- for weblogic -->
<property name="hibernate.connection.datasource">jdbc/hrmsDS</property>
<!-- for tomcat -->
<property name="hibernate.connection.datasource">java:/comp/env/jdbc/hrmsDS</property>
My Question is, why both server have different definition?
It caused me problem, every deployment to weblogic, i need to change the datasource definition.
Is it better solution for this problem?
thanks.
|