Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jboss XADataSourceLoader configuration

 
Marcin noway
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I want to configure connection pool but before any connection it creates new pool (In log I found thousands of 'Creating XA Pool')
How to force jboss to use the same pool, without creating new?

My configuration:


thanks
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Marcin, welcome to Java Ranch!

Please use the "code" tags when posting source code or XML text - I edited your post for you to include the tags.

I'm not sure what it is that you are asking. According to the *-ds-xml file you posted, JBoss AS will create 5 connections in the pool the first time your code asks for a connection. And will create at most 20 connections in that pool. Why do you think that multiple pools are being created (posting the "suspicious" log message would have been helpful)
 
Marcin noway
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The suspicious log message is 'Creating XA Pool' (thousands times) - I suppose the pool is not persistent. Database monitoring says that there is login before executing every query, and logout after it.
 
Marcin noway
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, I found - it's a bug in jboss 2.4.7.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Marcin noway wrote:Ok, I found - it's a bug in jboss 2.4.7.


JBoss AS 2.4.7? That's a really ancient version (i haven't even heard of it). Any reason why you want to stick to that version?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic