[jboss-user] [IronJacamar] - Re: re-authentication and pooling

Jesper Pedersen do-not-reply at jboss.com
Fri Mar 11 10:39:49 EST 2011


Jesper Pedersen [http://community.jboss.org/people/jesper.pedersen] created the discussion

"Re: re-authentication and pooling"

To view the discussion, visit: http://community.jboss.org/message/592727#592727

--------------------------------------------------------------
> None of the options provide a solution for the issue described in the original post:
> 
> * the fact that a JCA resource adaptor may support multiple types of the underlying connections. That means - pooling by CRI at least.
> * pooling by Subject (I pressume you mean it with credantials) may cause too many sub-pools in case of a big numgber of users. The consequence is that max pool size = max pool size x number of users.
> 

Because the original post is wrong. Read section 9.1.9.
> In my opinion the pooling should depend on the re-authentication capability of adapter. If an adapter declares that it supports re-authentication - pool by CRI, if not - pool by Subject and CRI.

Wrong again.

Pooling for reauthentication enabled resource adapters is a special pool implementation (Reauth) - not PoolByCri, PoolBySubject, ...

And it *is* up to the resource adapter to manage its ManagedConnection connections in regards to reauthentication, so the implemented solution works.

You need to implement the contracts defined in the JCA specification - if you have multiple Connection's using the same ManagedConnection - then that it is a matter for the resource adapter - not the JCA container.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/592727#592727]

Start a new discussion in IronJacamar at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110311/68d7c2a0/attachment-0001.html 


More information about the jboss-user mailing list