-->
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.  [ 3 posts ] 
Author Message
 Post subject: Running test suite "ant junit" ... How to get JNDI
PostPosted: Mon Jan 05, 2004 4:20 pm 
Beginner
Beginner

Joined: Sun Dec 28, 2003 3:29 pm
Posts: 22
Location: Massachusetts USA
Hello --

I am continuing on with getting iSeries DB2/400 to run with Hibernate. With help received here the "ant eg" sample application runs with a subclassed DB2Dialect. Now it is the "ant junit" test suite that I'm trying to get running. Nearly all of the tests are working but one definite problem for me is whenever it goes to use a JNDI datasource.

Is it necessary to run the test suite from within Tomcat or Websphere or other app server that provides JNDI datasources?

I've looked without success for information on this. Are there any docs on how-to run the test suite "ant junit"?

Development system is W2K, Hibernate version 2.1, iSeries DB2/400 V5R2

Thank you,
Peter


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 26, 2004 2:50 am 
Regular
Regular

Joined: Tue Sep 09, 2003 9:37 pm
Posts: 56
Location: Ogden, Utah, USA
We use a hibernate.properties file that has something like this:

hibernate.connection.driver_class = COM.ibm.db2.jdbc.app.DB2Driver
hibernate.connection.url = jdbc:db2:aliasnamehere
hibernate.connection.username = username
hibernate.connection.password = password
hibernate.database_schema = schemaname
hibernate.show_sql = false
hibernate.dialect = dialect

then we have a separate (hibernate.tomcat.properties) or (hibernate.websphere.properties) that we rename with the ant script for websphere or tomcat, depending on the deployment environment. We hunted around but never did find a good way to do a jndi lookup without a web container.

Good luck!
Jenica


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 26, 2004 5:31 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Haven't we discussed this allready with the conclusion that the missing JNDI creates only warnings not test failures?


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

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.