[JBoss-dev] [Design of JCA on JBoss] - Re: Factoring out the security logic

2005-01-20 Thread [EMAIL PROTECTED]
There is currently quite a convoluted dance here, but essentially want gets bound into jndi is a ConnectionFactory (like a DataSource) that holds a reference to our ConnectionManagerProxy (necessary because we need to have it serializable, i.e. it can disconnect/reconnect from the jmx object).

[JBoss-dev] [Design of JCA on JBoss] - Re: Factoring out the security logic

2005-01-20 Thread [EMAIL PROTECTED]
My suggestion is to have the ConnectionManagerProxy invoke down an interceptor chain the result of which will be a connection handle that can be returned from allocateConnection. The interceptors would be something like: CMProxy (as now) Security CachedConnectionManager (CCM) processing (on the

[JBoss-dev] [Design of JCA on JBoss] - Re: Factoring out the security logic

2005-01-20 Thread [EMAIL PROTECTED]
So to answer your question. The easiest way to do it now (without reimplemting the rest of the stack) would be to make the CMProxy invoke getManagedConnection(subject, cri) rather than allocateConnection, with an interceptor stack in front of that method. Besides the security interceptor there