-->
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: Creating hibernate.cfg.xml from CPool, but deploy DataSource
PostPosted: Mon Nov 21, 2005 5:26 am 
Newbie

Joined: Thu Oct 27, 2005 2:41 am
Posts: 6
Location: Cologne
Hi,
I have a question using the Tools ant-task.
Is it possible to build the CFG with a CPool, but deploy it with a property for the DS?

Building up the PoJos and CFG works fine, i am using this cfg for it:

<property name="hibernate.c3p0.max_size">2</property>
<property name="hibernate.c3p0.max_statements">50</property>
<property name="hibernate.c3p0.min_size">5</property>
<property name="hibernate.c3p0.timeout">1800</property>


Building the war-File needs a different cfg, something like:

<property name="connection.datasource">java:comp/env/jdbc/DS</property>

Using a propertie-File doesnt help, what else should i do, to build and deploy my application from ER, without editing the cfg?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 21, 2005 1:16 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hmm - the properties should actually *win* in the ant and plugins - are you telling me they don't ?

_________________
Max
Don't forget to rate


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.