Subject Re: [Firebird-Java] Re: XAResourceRecovery
Author Roman Rokytskyy
> Doing it that way, I'll be creating a new FBMC, rather than getting one from the pool. I guess I'll need to clean it up, too. So I register a ConnectionEventListener with it that calls FBMC.cleanup() and FBMC.destroy() if the connection is closed or an error occurred. Does that sound right?

I do not remember if you need to register listener in a managed
environment. In a non-managed you need to call destroy(), but I would
try without the listener first.

> When I create a new FBMC, I'm planning on getting the necessary CRI info from the FBMCF (i.e. getDatabaseParameterBuffer()). I'll also build the Subject with the username and password from the FBMCF.

There is method getDefaultConnectionRequestInfo() and you can use null
as subject (that means that it will use preconfigured user and password).