• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Jboss XADataSourceLoader configuration

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, I found - it's a bug in jboss 2.4.7.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic