2 Replies Latest reply on Sep 21, 2004 6:46 AM by simon.g

    <reauthentication-support> for JCA connections?

    simon.g

      Hi,

      I am having troubles deploying a JCA connector which supports reauthentication (<reauthentication-support>), since I don't want a connection pool per Subject. I also want to use the org.jboss.resource.security.CallerIdentityLoginModule, as described in http://www.jboss.org/wiki/Wiki.jsp?page=ConfigJCALoginModule; for that purpose, I use the <security-domain> tag in my -ds.xml file.

      The consequence of using the <security-domain> tag now is, that the ConnectionFactoryTemplate.xsl used by the XSLSubDeployer creates a ByContainer criterium for the ManagedConnectionPool configuration. What I need to have though is a ByNothing criterium, since I want a OnePool and not a PoolBySubject created. How can I achieve this?

      Thanks a lot

        • 1. Re: <reauthentication-support> for JCA connections?

          There is no way to configure such a use case at the moment as far as I can see.

          The only way to do it without a code change is
          to add TRACE logging for org.jboss.resource and retrieve the -service.xml generated
          by the -ds.xml.
          You might be able to modify the -service.xml and deploy that directly?

          • 2. Re: <reauthentication-support> for JCA connections?
            simon.g

            That's exactly what I ended up with. Thanks for your reply. Had to change the following configuration in my service deployment descriptor:

            <depends optional-attribute-name="ManagedConnectionPool">
             <mbean code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool" ...>
             <depends optional-attribute-name="ManagedConnectionFactoryName">
             ...
             </depends>
             ...
             <attribute name="Criteria">ByNothing</attribute>
             </mbean>
            </depends>