-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Need help with proper config for JNDI w/ JBoss4 and hibernat
PostPosted: Wed May 18, 2005 1:34 pm 
Beginner
Beginner

Joined: Mon Apr 18, 2005 10:25 am
Posts: 38
Location: Maryland
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!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.