Hi,
I need to create a datasource and need to use that every time.
Right now I am giving these properties in persistance.xml.
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.Oracle9Dialect" />
<property name="hibernate.connection.driver_class" value="oracle.jdbc.driver.OracleDriver" />
<property name="hibernate.connection.username" value="pramod" />
<property name="hibernate.connection.password" value="pramod" />
<property name="hibernate.connection.url" value="jdbc

racle:thin:@localhost:1521:localdb" />
<property name="hibernate.show_sql" value="true" />
<property name="hibernate.format_sql" value="true" />
</properties>
and when ever I need to persist or remove I am doing this each and every time
EntityManagerFactory emf =Persistence.createEntityManagerFactory("usermgt");
Give me some sugessions so that I can use this commonly. I am using weblogic9.2.
Thanks,