tmonteit
asked on
Javax.Resource Exception
I'm running a periodic task using the Resin application server.
The task is supposed to query student data in one table and produce historical data in another table.
THe task is programmed to run every minute.
The first time the task runs I get a javax.resource.spi.workExc eption: Reentrant Work tasks are not allowed.
The subsequent times the task runs I get a javax.resource.ResourceExc eption Connection Pool is full.
My questions:
What is likely happening here?
What does the Reentrant task exception mean? How can it be prevented?
The task is supposed to query student data in one table and produce historical data in another table.
THe task is programmed to run every minute.
The first time the task runs I get a javax.resource.spi.workExc
The subsequent times the task runs I get a javax.resource.ResourceExc
My questions:
What is likely happening here?
What does the Reentrant task exception mean? How can it be prevented?
Sounds to me like you are not closing the connections properly so they are not getting released to the pool. Make sure you are closing the connections in a finally block everywhere.
ASKER
What's a javax.resource.spi.WorkExc eption? What causes it?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It was a 3rd party jar...
mayanyeagle provided the clue.
mayanyeagle provided the clue.