Here is a copy of my hibernate.cfg.xml:
<!DOCTYPE hiberanate-configuration PUBLIC"-//Hibernate/Hibernate Configuration DTD//EN" "http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">
<hibernate-configuration>
<session-factory name="What goes here?">
<property name="dialect">net.sf.hibernate.dialect.Sybase</>
<property name="hibernate.connection.datasource">jdbc/SybaseDS</>
<property name="hibernate.transaction.factory_class">net.sf.hibernate.transaction.JTATransactionFactory</>
<property name="hibernate.session_factory_name">Again, what here?</>
<property name="hibernate.transaction.manager_lookup_factory_class">net.sf.hibernate.transaction.JBossTransactionManagerLookup</>
<mapping resource=" A number of them"</>
</session-factory>
</hibernate-configuration>
As you can see, I am confused on the session-factory. I have this file, a hibernate.properties file and a hibernate-service.xml all under META-INF. Do I still need a jboss-service.xml? If so, were do all these files go? I can compile and deploy just fine but when I try to call Configuration.configure().buildSessionFactory() it throws an error, obviously. I have put my sybase-ds.xml in the deploy directory. I saw in one of the post that someone had put their jboss-service.xml under the deploy/META-INF dir. Are their any special instructions in order to configure jndi in JBoss? I see that there is a jndi.properties file under the deploy/conf dir. It says not to edit it unless you know what you are doing and I don't so it is still the default. Is this right? I am clueless here.
Thanks!
|