my dog learned polymorphism
The moose likes JBoss/WildFly and the fly likes Jboss XADataSourceLoader configuration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Jboss XADataSourceLoader configuration" Watch "Jboss XADataSourceLoader configuration" New topic

Jboss XADataSourceLoader configuration

Marcin noway

Joined: Dec 17, 2009
Posts: 7

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:

Peter Johnson

Joined: May 14, 2008
Posts: 5852

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)

JBoss In Action
Marcin noway

Joined: Dec 17, 2009
Posts: 7
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

Joined: Dec 17, 2009
Posts: 7
Ok, I found - it's a bug in jboss 2.4.7.
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441

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?

[My Blog] [JavaRanch Journal]
I agree. Here's the link:
subject: Jboss XADataSourceLoader configuration
It's not a secret anymore!