-->
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: NEWBIE: Can I put DB dialect in my DataSource file?
PostPosted: Mon Jul 10, 2006 10:03 am 
Newbie

Joined: Mon Jul 10, 2006 9:37 am
Posts: 1
I am reworking a Sybase Hibernate/JBoss app to point to Oracle.

I would like to record all our known Sybase and Oracle datasources in a single datasource file.

Then in my hibernate-service file I will select which datasource I use.

However, I find the database dialect specification in the MBean definition in the hibernate-service.xml file as well as the JNDI datasource name. This suggests that I can't just point the MBean at a datasource, I also have to configure it for the specific DB dialect.

I would rather just change the service name. Can I put each appropriate dialect into my datasource file, perhaps as an attribute in each <local-tx-datasource> section?

Thanks,

Andrew


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 10, 2006 5:17 pm 
Expert
Expert

Joined: Tue Dec 28, 2004 7:02 am
Posts: 573
Location: Toulouse, France
If I understand, you want to be able to hide and centralize the dialect specification. Is so, I do not think it's possible. Hibernate needs in fact to know which dialect is to be used in the datasource pipe he's using.

_________________
Baptiste
PS : please don't forget to give credits below if you found this answer useful :)


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.