Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XAPool throwing NullPointerException

 
Bhupinder Dhillon
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hope someone has used this pool manager before and can help me. I'm trying to create a GenericPool for XADataSource but it's throwing NullPointerException at pool.start(). Here's what I've got so far:

It's supposed to work like this:
Create XADataSource
Create StandardXAPoolDataSource and pass the XADataSource to it
Create a GenericPool and pass the StandardXAPoolDataSource to constructor
Start the pool
That's all there should be but I can't figure out where I'm going wrong. Here's the API docs for the pool XAPool 1.3
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic