<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    JcaXAResourceRecovery
</h3>
<span style="margin-bottom: 10px;">
    reply from <a href="http://community.jboss.org/people/jesper.pedersen">Jesper Pedersen</a> in <i>JCA Development</i> - <a href="http://community.jboss.org/message/538845#538845">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><pre class="jive-pre"><code class="jive-code">
[14:07] &lt;jpederse&gt; asaldhan: so can I pass a null string as securityDomainName to createSecurityContext ?
[14:07] &lt;asaldhan&gt; jpederse: pass any dummy
[14:08] &lt;jpederse&gt; asaldhan: k, but I''m not seeing any setPrincipal() / setCredential() on SubjectInfo
[14:09] &lt;asaldhan&gt; jpederse: did u set it on SecurityContextAssociation?
[14:10] &lt;jpederse&gt; asaldhan: how ? It only takes the SecurityContext
[14:11] &lt;jpederse&gt; asaldhan: also; do I need the SecurityContextAssociation part at all ? I just need the Subject as a local variable
[14:11] &lt;jpederse&gt; asaldhan: this is not run in a context of something
[14:12] &lt;jpederse&gt; asaldhan: Its "ManagedConnection mc = mcf.createManagedConnection(subject, null)"
[14:14] &lt;asaldhan&gt; jpederse: but the creation of subject has to go through authentication.&#160; So at that time, the subjectfactory will look at the SCA for the latest SC and picks username/cred from there. After you have the subject, u then pass it to MCF
[14:14] &lt;asaldhan&gt; jpederse: so u need to do the SCA/SC/princ/cred
[14:15] &lt;jpederse&gt; asaldhan: k, then I just need to find the place where I input my username and password strings
[14:16] &lt;jpederse&gt; asaldhan: as the securityDomainName is null
[14:16] &lt;asaldhan&gt; jpederse: I have told u the sequence, I think u will have to figure out where to do the necessary things.&#160; The SDN should not be null. U r probably doing it wrong someplace
[14:17] &lt;jpederse&gt; asaldhan: look at my latest post - there isn't a security-domain configured in the -ds.xml
[14:17] &lt;asaldhan&gt; jpederse: there are two pieces:&#160; security to check whether u can create a subject. Once u have a subject, u pass it to the MCF.&#160; The MCF deals with the EIS.
[14:17] &lt;jpederse&gt; asaldhan: that is the common case for AS
[14:18] &lt;asaldhan&gt; jpederse: in that case, it probably just defaults to "other"
[14:18] &lt;jpederse&gt; asaldhan: yes, and I need the create the Subject - based on the information from the two use-cases
[14:18] &lt;jpederse&gt; asaldhan: I'm not talking about application-policy's
[14:18] &lt;asaldhan&gt; jpederse: if u have the AS setup, try debugging and seeing what the SD is for the case when -ds.xml does not have SD.
[14:18] &lt;asaldhan&gt; jpederse: the security domain translates to app policy
[14:19] &lt;asaldhan&gt; jpederse: SD = app policy defs
[14:19] &lt;jpederse&gt; asaldhan: yeah, I know - so it is probably the "other" case
[14:19] &lt;asaldhan&gt; jpederse: best is to debug the classic ds.xml usecases.[14:20] &lt;jpederse&gt; asaldhan: yeah, that would be the next thing
[14:21] &lt;jpederse&gt; asaldhan: and what about the principal / credential case ? I need to plug them in where ?
[14:22] &lt;asaldhan&gt; jpederse: dont know how the current ds setup does it.

</code></pre></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/538845#538845">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JCA Development at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2099">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>