[jboss-cvs] JBossAS SVN: r104802 - branches/JBPAPP_5_1/connector/src/main/org/jboss/resource/connectionmanager.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri May 14 11:34:24 EDT 2010


Author: jesper.pedersen
Date: 2010-05-14 11:34:23 -0400 (Fri, 14 May 2010)
New Revision: 104802

Modified:
   branches/JBPAPP_5_1/connector/src/main/org/jboss/resource/connectionmanager/ManagedConnectionFactoryDeployment.java
Log:
[JBPAPP-3638] XA Resource Recovery (Part 6)

Modified: branches/JBPAPP_5_1/connector/src/main/org/jboss/resource/connectionmanager/ManagedConnectionFactoryDeployment.java
===================================================================
--- branches/JBPAPP_5_1/connector/src/main/org/jboss/resource/connectionmanager/ManagedConnectionFactoryDeployment.java	2010-05-14 15:23:38 UTC (rev 104801)
+++ branches/JBPAPP_5_1/connector/src/main/org/jboss/resource/connectionmanager/ManagedConnectionFactoryDeployment.java	2010-05-14 15:34:23 UTC (rev 104802)
@@ -697,9 +697,22 @@
                   else
                   {
                      // Unauthenticated
-                     log.error("NYI");
-                     log.debug("SecurityContext=" + securityContext);
-                     log.debug("SubjectInfo=" + securityContext.getSubjectInfo());
+                     Subject unauthenticated = new Subject();
+
+                     // Leave the subject empty as we don't have any information to do the
+                     // authentication with - and we only need it to be able to get the
+                     // real subject from the SubjectFactory
+
+                     // Set the authenticated subject
+                     securityContext.getSubjectInfo().setAuthenticatedSubject(unauthenticated);
+
+                     // Use the unauthenticated subject to get the real recovery subject instance
+                     Subject subject = subjectFactory.createSubject(recoverSecurityDomain);
+
+                     if (log.isDebugEnabled())
+                        log.debug("Recovery Subject=" + subject);
+                     
+                     return subject;
                   }
                }
                catch (Throwable t)




More information about the jboss-cvs-commits mailing list