We have an stateless bean which creates a transaction with JTA. Inside this transaction several entity EJB can be created.
The ejbCreate method obtains a Connection of one datasource and after it´s released.
But, our problem is that we try to create more entities than the number of max-connections defined for the pool, and the limit is reached, as i suppose that the connections aren´t really closed until the transaction is commited or rolled bak. Is this supposition correct?
If so, how can we create an undeterminated number of entities inside a transaction? We can´t raise the max-connection propery of the pool to infinite!.
thanks a lot.