aspose file tools*
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
Author

Jboss XADataSourceLoader configuration

Marcin noway
Greenhorn

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

Joined: May 14, 2008
Posts: 5845
    
    7

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
Greenhorn

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
Greenhorn

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

Joined: Jul 20, 2005
Posts: 10289
    
168

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: http://aspose.com/file-tools
 
subject: Jboss XADataSourceLoader configuration