This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JBoss/WildFly and the fly likes ${jdbc.maxPoolSize} value in *-ds.xml file always read as 0 in JBOSS 6.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "${jdbc.maxPoolSize} value in *-ds.xml file always read as 0 in JBOSS 6.1" Watch "${jdbc.maxPoolSize} value in *-ds.xml file always read as 0 in JBOSS 6.1" New topic
Author

${jdbc.maxPoolSize} value in *-ds.xml file always read as 0 in JBOSS 6.1

Karthick Narayanan
Greenhorn

Joined: May 10, 2013
Posts: 1
I use JBOSS 6.1 final. I am trying to set the max pool size value in *-ds.xml file. Currently the following approach fails as JBOSS always reads the max pool size as 0,

- I would like to use <max-pool-size>${jdbc.maxPoolSize}</max-pool-size> in /jbossi-6/server/default/deploy/my-ds.xml
- It always ends up with maxPoolSize = 0

The following approach succeeds though,

- If I use <max-pool-size>5</max-pool-size> in /jbossi-6/server/default/deploy/my-ds.xml
- It ends up with maxPoolSize = 5

On the otherhand the same thing works fine in JBOSS4.2 without any changes. Any idea on why it doesn't read ${jdbc.maxPoolSize} and always gets 0? and how I can fix it? I tried few suggestions mentioned in few discussion forums, but no success.

Any help would be much appreciated. Thank you.
 
Don't get me started about those stupid light bulbs.
 
subject: ${jdbc.maxPoolSize} value in *-ds.xml file always read as 0 in JBOSS 6.1