-->
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.  [ 2 posts ] 
Author Message
 Post subject: Using a DataSource (batch and appserver)
PostPosted: Thu Aug 19, 2004 1:55 pm 
Newbie

Joined: Sun Aug 01, 2004 8:23 pm
Posts: 11
Hibernate version:
2.14

What I would like to do is use the same code and sessionfactory for both batch and web work. However, I cannot seem to find anything that will make a jndi datasource when you run standalone. I can certainly use 2 different config files, but I would like to avoid that if I can. Have I missed something in the documentation that would allow this. If not, has anyone else tried to do something like this. This is not only a hibernate issue for me. Every time I do some jdbc thing, I find that I have a batch (Regular Driver) implementation and a servlet (Datasource) implementation. If I could just get something to be a jndi datasource provider without a full-fledged app server, then everything would work alike. Thanks in advance.

Wayne


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 19, 2004 5:46 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
In Hibernate, you can just use two different connection providers. There is no need to change your code, just the config file.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.