[jboss-cvs] JBossAS SVN: r110701 - in projects/jboss-jca/trunk: core/src/main/java/org/jboss/jca/core/security and 6 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Feb 17 10:10:35 EST 2011
Author: maeste
Date: 2011-02-17 10:10:34 -0500 (Thu, 17 Feb 2011)
New Revision: 110701
Added:
projects/jboss-jca/trunk/core/src/main/java/org/jboss/jca/core/security/DefaultSubjectFactory.java
projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/SubjectFactoryInjectionTestCase.java
projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/
projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/BaseCciConnection.java
projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/BaseCciConnectionFactory.java
projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/BaseConnectionManager.java
projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/BaseReference.java
projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/TestAdminObject.java
projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/TestManagedConnection.java
projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/TestManagedConnectionFactory.java
projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/TestResourceAdapter.java
projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/package.html
projects/jboss-jca/trunk/core/src/test/resources/subjectfactory.rar/
projects/jboss-jca/trunk/core/src/test/resources/subjectfactory.rar/META-INF/
projects/jboss-jca/trunk/core/src/test/resources/subjectfactory.rar/META-INF/ironjacamar.xml
projects/jboss-jca/trunk/core/src/test/resources/subjectfactory.rar/META-INF/ra.xml
Modified:
projects/jboss-jca/trunk/core/.classpath
projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/fungal/AbstractFungalRADeployer.java
Log:
adding files
Modified: projects/jboss-jca/trunk/core/.classpath
===================================================================
--- projects/jboss-jca/trunk/core/.classpath 2011-02-17 15:10:23 UTC (rev 110700)
+++ projects/jboss-jca/trunk/core/.classpath 2011-02-17 15:10:34 UTC (rev 110701)
@@ -23,5 +23,26 @@
<classpathentry kind="lib" path="/ironjacamar-parent/lib/common/jbossjts-integration.jar"/>
<classpathentry kind="lib" path="/ironjacamar-parent/lib/common/jbossjts.jar"/>
<classpathentry kind="lib" path="/ironjacamar-parent/lib/common/picketbox.jar"/>
+<<<<<<< HEAD
+=======
+ <classpathentry kind="lib" path="/ironjacamar-parent/lib/arquillian/arquillian-impl-base.jar"/>
+ <classpathentry kind="lib" path="/ironjacamar-parent/lib/arquillian/arquillian-junit.jar" sourcepath="/dati/project/RH/arquillian/impl-base/src/main/java"/>
+ <classpathentry kind="lib" path="/ironjacamar-parent/lib/arquillian/arquillian-api.jar"/>
+ <classpathentry kind="lib" path="/ironjacamar-parent/lib/common/commons-logging.jar"/>
+ <classpathentry kind="lib" path="/ironjacamar-parent/lib/common/hibernate-validator.jar"/>
+ <classpathentry kind="lib" path="/ironjacamar-parent/lib/common/javassist.jar"/>
+ <classpathentry kind="lib" path="/ironjacamar-parent/lib/common/jboss-logmanager.jar"/>
+ <classpathentry kind="lib" path="/ironjacamar-parent/lib/common/jboss-stdio.jar"/>
+ <classpathentry kind="lib" path="/ironjacamar-parent/lib/common/jcl-over-slf4j.jar"/>
+ <classpathentry kind="lib" path="/ironjacamar-parent/lib/common/log4j.jar"/>
+ <classpathentry kind="lib" path="/ironjacamar-parent/lib/common/papaki-core.jar"/>
+ <classpathentry kind="lib" path="/ironjacamar-parent/lib/common/slf4j-api.jar"/>
+ <classpathentry kind="lib" path="/ironjacamar-parent/lib/common/slf4j-jboss-logmanager.jar"/>
+ <classpathentry kind="lib" path="/ironjacamar-parent/lib/sjc/fungal-cli.jar"/>
+ <classpathentry kind="lib" path="/ironjacamar-parent/lib/sjc/fungal.jar"/>
+ <classpathentry kind="lib" path="/ironjacamar-parent/lib/arquillian/arquillian-testenricher-resource.jar"/>
+ <classpathentry kind="lib" path="/ironjacamar-parent/target/ironjacamar-deployers-common.jar"/>
+ <classpathentry kind="lib" path="/ironjacamar-parent/target/ironjacamar-deployers-fungal.jar"/>
+>>>>>>> testSubjectFactory
<classpathentry kind="output" path="eclipse-target/classes"/>
</classpath>
Added: projects/jboss-jca/trunk/core/src/main/java/org/jboss/jca/core/security/DefaultSubjectFactory.java
===================================================================
--- projects/jboss-jca/trunk/core/src/main/java/org/jboss/jca/core/security/DefaultSubjectFactory.java (rev 0)
+++ projects/jboss-jca/trunk/core/src/main/java/org/jboss/jca/core/security/DefaultSubjectFactory.java 2011-02-17 15:10:34 UTC (rev 110701)
@@ -0,0 +1,124 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.jca.core.security;
+
+import javax.resource.spi.security.PasswordCredential;
+import javax.security.auth.Subject;
+
+import org.jboss.security.SubjectFactory;
+
+public class DefaultSubjectFactory implements SubjectFactory
+{
+
+ private final String securityDomain;
+
+ private final String userName;
+
+ private final String password;
+
+
+ /**
+ * Create a new DefaultSubjectFactory.
+ *
+ * @param securityDomain securityDomain
+ * @param userName userName
+ * @param password password
+ */
+ public DefaultSubjectFactory(String securityDomain, String userName, String password)
+ {
+ super();
+ this.securityDomain = securityDomain;
+ this.userName = userName;
+ this.password = password;
+ }
+
+ @Override
+ public Subject createSubject()
+ {
+ Subject subject = new Subject();
+ PasswordCredential credential = new PasswordCredential(userName, password.toCharArray());
+ subject.getPrivateCredentials().add(credential);
+ return subject;
+ }
+
+
+ @Override
+ public Subject createSubject(String securityDomain)
+ {
+ //we just ignore atm the arg using a singleton for each security domain
+ return createSubject();
+ }
+
+ @Override
+ public int hashCode()
+ {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + ((password == null) ? 0 : password.hashCode());
+ result = prime * result + ((securityDomain == null) ? 0 : securityDomain.hashCode());
+ result = prime * result + ((userName == null) ? 0 : userName.hashCode());
+ return result;
+ }
+
+ @Override
+ public boolean equals(Object obj)
+ {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+ if (!(obj instanceof DefaultSubjectFactory))
+ return false;
+ DefaultSubjectFactory other = (DefaultSubjectFactory) obj;
+ if (password == null)
+ {
+ if (other.password != null)
+ return false;
+ }
+ else if (!password.equals(other.password))
+ return false;
+ if (securityDomain == null)
+ {
+ if (other.securityDomain != null)
+ return false;
+ }
+ else if (!securityDomain.equals(other.securityDomain))
+ return false;
+ if (userName == null)
+ {
+ if (other.userName != null)
+ return false;
+ }
+ else if (!userName.equals(other.userName))
+ return false;
+ return true;
+ }
+
+ @Override
+ public String toString()
+ {
+ return "DefaultSubjectFactory [securityDomain=" + securityDomain + ", userName=" + userName + ", password=" +
+ password + "]";
+ }
+
+}
+
Added: projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/SubjectFactoryInjectionTestCase.java
===================================================================
--- projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/SubjectFactoryInjectionTestCase.java (rev 0)
+++ projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/SubjectFactoryInjectionTestCase.java 2011-02-17 15:10:34 UTC (rev 110701)
@@ -0,0 +1,99 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.jca.core.security;
+
+import org.jboss.jca.core.security.subjectfactory.BaseCciConnectionFactory;
+import org.jboss.jca.core.security.subjectfactory.TestManagedConnectionFactory;
+import org.jboss.jca.embedded.arquillian.ArquillianJCATestUtils;
+
+import javax.annotation.Resource;
+import javax.resource.spi.security.PasswordCredential;
+import javax.security.auth.Subject;
+
+import org.jboss.arquillian.api.Deployment;
+import org.jboss.arquillian.junit.Arquillian;
+import org.jboss.shrinkwrap.api.spec.ResourceAdapterArchive;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import static org.hamcrest.core.Is.is;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertThat;
+
+ at RunWith(Arquillian.class)
+public class SubjectFactoryInjectionTestCase
+{
+ //-------------------------------------------------------------------------------------||
+ //---------------------- GIVEN --------------------------------------------------------||
+ //-------------------------------------------------------------------------------------||
+ /**
+ * Define the deployment
+ * @return The deployment archive
+ * @throws Exception in case of errors
+ */
+ @Deployment
+ public static ResourceAdapterArchive createDeployment() throws Exception
+ {
+ String archiveName = "subjectfactory.rar";
+ String packageName = "org.jboss.jca.core.security.subjectfactory";
+ ResourceAdapterArchive raa = ArquillianJCATestUtils.buidShrinkwrapRa(archiveName, packageName);
+ raa.addManifestResource(archiveName + "/META-INF/ra.xml", "ra.xml");
+ raa.addManifestResource(archiveName + "/META-INF/ironjacamar.xml", "ironjacamar.xml");
+
+ return raa;
+ }
+
+ //-------------------------------------------------------------------------------------||
+ //---------------------- WHEN --------------------------------------------------------||
+ //-------------------------------------------------------------------------------------||
+
+ @Resource(mappedName = "java:/eis/SubjectFactoryInjection")
+ private BaseCciConnectionFactory connectionFactory;
+
+ //-------------------------------------------------------------------------------------||
+ //---------------------- THEN --------------------------------------------------------||
+ //-------------------------------------------------------------------------------------||
+
+ /**
+ * Basic
+ * @exception Throwable Thrown if case of an error
+ */
+ @Test
+ public void testBasic() throws Throwable
+ {
+ //given
+ assertNotNull(connectionFactory);
+ Subject expectedSubject = new Subject();
+ PasswordCredential credential = new PasswordCredential("username", "password".toCharArray());
+ expectedSubject.getPrivateCredentials().add(credential);
+
+ //when
+ connectionFactory.getConnection();
+ //then
+
+ assertThat(TestManagedConnectionFactory.getSubjectUsed().equals(expectedSubject), is(true));
+ //generated connetionfactory createManagedConnection method called with Subject equalsto expected subject
+ }
+
+}
+
Added: projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/BaseCciConnection.java
===================================================================
--- projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/BaseCciConnection.java (rev 0)
+++ projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/BaseCciConnection.java 2011-02-17 15:10:34 UTC (rev 110701)
@@ -0,0 +1,86 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.jca.core.security.subjectfactory;
+
+import javax.resource.ResourceException;
+import javax.resource.cci.Connection;
+import javax.resource.cci.ConnectionMetaData;
+import javax.resource.cci.Interaction;
+import javax.resource.cci.LocalTransaction;
+import javax.resource.cci.ResultSetInfo;
+
+/**
+ * BaseCciConnection
+ *
+ * @author <a href="mailto:jeff.zhang at jboss.org">Jeff Zhang</a>.
+ * @version $Revision: $
+ */
+public class BaseCciConnection implements Connection
+{
+
+ /* close
+ * @see javax.resource.cci.Connection#close()
+ */
+ @Override
+ public void close() throws ResourceException
+ {
+
+ }
+
+ /* createInteraction
+ * @see javax.resource.cci.Connection#createInteraction()
+ */
+ @Override
+ public Interaction createInteraction() throws ResourceException
+ {
+ return null;
+ }
+
+ /* getLocalTransaction
+ * @see javax.resource.cci.Connection#getLocalTransaction()
+ */
+ @Override
+ public LocalTransaction getLocalTransaction() throws ResourceException
+ {
+ return null;
+ }
+
+ /* getMetaData
+ * @see javax.resource.cci.Connection#getMetaData()
+ */
+ @Override
+ public ConnectionMetaData getMetaData() throws ResourceException
+ {
+ return null;
+ }
+
+ /* getResultSetInfo
+ * @see javax.resource.cci.Connection#getResultSetInfo()
+ */
+ @Override
+ public ResultSetInfo getResultSetInfo() throws ResourceException
+ {
+ return null;
+ }
+
+
+}
Added: projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/BaseCciConnectionFactory.java
===================================================================
--- projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/BaseCciConnectionFactory.java (rev 0)
+++ projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/BaseCciConnectionFactory.java 2011-02-17 15:10:34 UTC (rev 110701)
@@ -0,0 +1,111 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.jca.core.security.subjectfactory;
+
+import javax.naming.NamingException;
+import javax.naming.Reference;
+import javax.resource.ResourceException;
+import javax.resource.cci.Connection;
+import javax.resource.cci.ConnectionFactory;
+import javax.resource.cci.ConnectionSpec;
+import javax.resource.cci.RecordFactory;
+import javax.resource.cci.ResourceAdapterMetaData;
+
+
+/**
+ * BaseCciConnectionFactory
+ *
+ * @author <a href="mailto:jeff.zhang at jboss.org">Jeff Zhang</a>.
+ * @version $Revision: $
+ */
+public class BaseCciConnectionFactory implements ConnectionFactory
+{
+
+ /**
+ * serialVersionUID
+ */
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * Reference
+ */
+ private Reference reference;
+
+ /* getConnection
+ * @see javax.resource.cci.ConnectionFactory#getConnection()
+ */
+ @Override
+ public Connection getConnection() throws ResourceException
+ {
+ return new BaseCciConnection();
+ }
+
+ /* getConnection
+ * @see javax.resource.cci.ConnectionFactory#getConnection(javax.resource.cci.ConnectionSpec)
+ */
+ @Override
+ public Connection getConnection(ConnectionSpec properties) throws ResourceException
+ {
+ return new BaseCciConnection();
+ }
+
+ /* getMetaData
+ * @see javax.resource.cci.ConnectionFactory#getMetaData()
+ */
+ @Override
+ public ResourceAdapterMetaData getMetaData() throws ResourceException
+ {
+ return null;
+ }
+
+ /* getRecordFactory
+ * @see javax.resource.cci.ConnectionFactory#getRecordFactory()
+ */
+ @Override
+ public RecordFactory getRecordFactory() throws ResourceException
+ {
+ return null;
+ }
+
+ /* getReference
+ * @see javax.naming.Referenceable#getReference()
+ */
+ @Override
+ public Reference getReference() throws NamingException
+ {
+ if (reference == null)
+ reference = new BaseReference(this.getClass().getName());
+ return reference;
+ }
+
+ /* setReference
+ * @see javax.resource.Referenceable#setReference(javax.naming.Reference)
+ */
+ @Override
+ public void setReference(Reference reference)
+ {
+ this.reference = reference;
+ }
+
+
+
+}
Added: projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/BaseConnectionManager.java
===================================================================
--- projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/BaseConnectionManager.java (rev 0)
+++ projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/BaseConnectionManager.java 2011-02-17 15:10:34 UTC (rev 110701)
@@ -0,0 +1,62 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.jca.core.security.subjectfactory;
+
+import javax.resource.ResourceException;
+import javax.resource.spi.ConnectionManager;
+import javax.resource.spi.ConnectionRequestInfo;
+import javax.resource.spi.ManagedConnectionFactory;
+
+import org.jboss.logging.Logger;
+
+/**
+ * BaseConnectionManager
+ *
+ * @author <a href="mailto:jesper.pedersen at jboss.org">Jesper Pedersen</a>.
+ * @version $Revision: $
+ */
+public class BaseConnectionManager implements ConnectionManager
+{
+ private static final long serialVersionUID = 1L;
+ private static Logger log = Logger.getLogger(BaseConnectionManager.class);
+
+ /**
+ * Constructor
+ */
+ public BaseConnectionManager()
+ {
+ }
+
+ /**
+ * Allocate a connection
+ * @param mcf The managed connection factory
+ * @param cri The connection request information
+ * @return The connection
+ * @exception ResourceException Thrown if an error occurs
+ */
+ public Object allocateConnection(ManagedConnectionFactory mcf,
+ ConnectionRequestInfo cri)
+ throws ResourceException
+ {
+ return null;
+ }
+}
Added: projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/BaseReference.java
===================================================================
--- projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/BaseReference.java (rev 0)
+++ projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/BaseReference.java 2011-02-17 15:10:34 UTC (rev 110701)
@@ -0,0 +1,51 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.jca.core.security.subjectfactory;
+
+import javax.naming.Reference;
+
+/**
+ * BaseReference
+ *
+ * @author <a href="mailto:jeff.zhang at jboss.org">Jeff Zhang</a>.
+ * @version $Revision: $
+ */
+public class BaseReference extends Reference
+{
+
+ /**
+ * serialVersionUID
+ */
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * Contains the fully-qualified name of the class of the object to which
+ * this Reference refers.
+ * @param className class name
+ * @see java.lang.Class#getName
+ */
+ public BaseReference(String className)
+ {
+ super(className);
+ }
+
+}
Added: projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/TestAdminObject.java
===================================================================
--- projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/TestAdminObject.java (rev 0)
+++ projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/TestAdminObject.java 2011-02-17 15:10:34 UTC (rev 110701)
@@ -0,0 +1,82 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.jca.core.security.subjectfactory;
+
+
+import java.io.Serializable;
+
+import javax.naming.NamingException;
+import javax.naming.Reference;
+import javax.resource.Referenceable;
+
+/**
+ *
+ * A TestAdminObject.
+ *
+ * @author <a href="stefano.maestri at jboss.com">Stefano Maestri</a>
+ *
+ */
+public class TestAdminObject implements Serializable, Referenceable
+{
+ private String myStringProperty;
+
+ /**
+ * Reference
+ */
+ private Reference reference;
+
+ /**
+ * @param myStringProperty the myStringProperty to set
+ */
+ public void setMyStringProperty(String myStringProperty)
+ {
+ this.myStringProperty = myStringProperty;
+ }
+
+ /**
+ * @return the myStringProperty
+ */
+ public String getMyStringProperty()
+ {
+ return myStringProperty;
+ }
+
+ /* getReference
+ * @see javax.naming.Referenceable#getReference()
+ */
+ @Override
+ public Reference getReference() throws NamingException
+ {
+ if (reference == null)
+ reference = new BaseReference(this.getClass().getName());
+ return reference;
+ }
+
+ /* setReference
+ * @see javax.resource.Referenceable#setReference(javax.naming.Reference)
+ */
+ @Override
+ public void setReference(Reference reference)
+ {
+ this.reference = reference;
+ }
+}
Added: projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/TestManagedConnection.java
===================================================================
--- projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/TestManagedConnection.java (rev 0)
+++ projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/TestManagedConnection.java 2011-02-17 15:10:34 UTC (rev 110701)
@@ -0,0 +1,181 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.jca.core.security.subjectfactory;
+
+import java.io.PrintWriter;
+
+import javax.resource.ResourceException;
+import javax.resource.spi.ConnectionEventListener;
+import javax.resource.spi.ConnectionRequestInfo;
+import javax.resource.spi.LocalTransaction;
+import javax.resource.spi.ManagedConnection;
+import javax.resource.spi.ManagedConnectionMetaData;
+import javax.security.auth.Subject;
+import javax.transaction.xa.XAResource;
+
+import org.jboss.logging.Logger;
+
+
+/**
+ * TestManagedConnection
+ *
+ */
+public class TestManagedConnection implements ManagedConnection
+{
+ private static Logger log = Logger.getLogger(TestManagedConnection.class);
+
+ /** Adds a connection event listener to the ManagedConnection
+ * instance.
+ *
+ * @param listener a new ConnectionEventListener to be registered
+ **/
+ public void addConnectionEventListener(ConnectionEventListener listener)
+ {
+ log.debug("call addConnectionEventListener");
+
+ }
+
+ /** Used by the container to change the association of an
+ * application-level connection handle with a ManagedConneciton
+ * instance.
+ * @param connection Application-level connection handle
+ *
+ * @throws ResourceException Failed to associate the connection
+ * handle with this ManagedConnection
+ * instance
+ **/
+ public void associateConnection(Object connection) throws ResourceException
+ {
+ log.debug("call associateConnection");
+
+ }
+
+ /** Application server calls this method to force any cleanup on the
+ * ManagedConnection instance.
+ *
+ * @throws ResourceException generic exception if operation fails
+ **/
+ public void cleanup() throws ResourceException
+ {
+ log.debug("call cleanup");
+
+ }
+
+ /** Destroys the physical connection to the underlying resource manager.
+ *
+ * @throws ResourceException generic exception if operation failed
+ **/
+ public void destroy() throws ResourceException
+ {
+ log.debug("call destroy");
+
+ }
+
+ /** Creates a new connection handle for the underlying physical connection
+ * represented by the ManagedConnection instance.
+ *
+ * @param subject security context as JAAS subject
+ * @param cxRequestInfo ConnectionRequestInfo instance
+ * @return generic Object instance representing the connection handle.
+ * @throws ResourceException generic exception if operation fails
+ *
+ **/
+ public Object getConnection(Subject subject,
+ ConnectionRequestInfo cxRequestInfo) throws ResourceException
+ {
+ log.debug("call getConnection");
+ return null;
+ }
+
+ /** Returns an <code>javax.resource.spi.LocalTransaction</code> instance.
+ *
+ * @return LocalTransaction instance
+ *
+ * @throws ResourceException generic exception if operation fails
+ **/
+ public LocalTransaction getLocalTransaction() throws ResourceException
+ {
+ log.debug("call getLocalTransaction");
+ return null;
+ }
+
+ /** Gets the log writer for this ManagedConnection instance.
+ *
+ * @return Character ourput stream associated with this Managed-
+ * Connection instance
+ *
+ * @throws ResourceException generic exception if operation fails
+ **/
+ public PrintWriter getLogWriter() throws ResourceException
+ {
+ log.debug("call getLogWriter");
+ return null;
+ }
+
+ /** <p>Gets the metadata information for this connection's underlying
+ * EIS resource manager instance.
+ * @return ManagedConnectionMetaData instance
+ *
+ * @throws ResourceException generic exception if operation fails
+ **/
+ public ManagedConnectionMetaData getMetaData() throws ResourceException
+ {
+ log.debug("call destroy");
+ return null;
+ }
+
+ /** Returns an <code>javax.transaction.xa.XAresource</code> instance.
+ *
+ * @return XAResource instance
+ *
+ * @throws ResourceException generic exception if operation fails
+ **/
+ public XAResource getXAResource() throws ResourceException
+ {
+ log.debug("call getXAResource");
+ return null;
+ }
+
+ /** Removes an already registered connection event listener from the
+ * ManagedConnection instance.
+ *
+ * @param listener already registered connection event listener to be
+ * removed
+ **/
+ public void removeConnectionEventListener(ConnectionEventListener listener)
+ {
+ log.debug("call removeConnectionEventListener");
+
+ }
+
+ /** Sets the log writer for this ManagedConnection instance.
+ *
+ * @param out Character Output stream to be associated
+ *
+ * @throws ResourceException generic exception if operation fails
+ **/
+ public void setLogWriter(PrintWriter out) throws ResourceException
+ {
+ log.debug("call setLogWriter");
+
+ }
+}
Added: projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/TestManagedConnectionFactory.java
===================================================================
--- projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/TestManagedConnectionFactory.java (rev 0)
+++ projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/TestManagedConnectionFactory.java 2011-02-17 15:10:34 UTC (rev 110701)
@@ -0,0 +1,212 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.jca.core.security.subjectfactory;
+
+
+import java.io.PrintWriter;
+import java.util.Set;
+
+import javax.resource.ResourceException;
+import javax.resource.spi.ConnectionManager;
+import javax.resource.spi.ConnectionRequestInfo;
+import javax.resource.spi.ManagedConnection;
+import javax.resource.spi.ManagedConnectionFactory;
+import javax.resource.spi.ResourceAdapter;
+import javax.resource.spi.ResourceAdapterAssociation;
+import javax.security.auth.Subject;
+
+import org.jboss.logging.Logger;
+/**
+ * TestManagedConnectionFactory
+ * @author <a href="mailto:jeff.zhang at jboss.org">Jeff Zhang</a>
+ * @version $Revision: $
+ */
+public class TestManagedConnectionFactory implements ManagedConnectionFactory, ResourceAdapterAssociation
+{
+ private static final long serialVersionUID = 1L;
+
+ private static Logger log = Logger.getLogger(TestManagedConnectionFactory.class);
+
+ private ResourceAdapter ra;
+
+ private PrintWriter logwriter;
+
+ private static Subject subjectUsed = null;
+
+ /**
+ * Constructor
+ */
+ public TestManagedConnectionFactory()
+ {
+ ra = null;
+ logwriter = null;
+ }
+
+ /**
+ * Creates a Connection Factory instance.
+ *
+ * @param cxManager ConnectionManager to be associated with created EIS connection factory instance
+ * @return EIS-specific Connection Factory instance or javax.resource.cci.ConnectionFactory instance
+ * @throws ResourceException Generic exception
+ */
+ public Object createConnectionFactory(ConnectionManager cxManager) throws ResourceException
+ {
+ if (ra == null)
+ throw new IllegalStateException("RA is null");
+
+ log.debug("call createConnectionFactory");
+ return new BaseCciConnectionFactory();
+ }
+
+ /**
+ * Creates a Connection Factory instance.
+ *
+ * @return EIS-specific Connection Factory instance or javax.resource.cci.ConnectionFactory instance
+ * @throws ResourceException Generic exception
+ */
+ public Object createConnectionFactory() throws ResourceException
+ {
+ if (ra == null)
+ throw new IllegalStateException("RA is null");
+
+ log.debug("call createConnectionFactory");
+ return createConnectionFactory(new BaseConnectionManager());
+ }
+
+ /**
+ * Creates a new physical connection to the underlying EIS resource manager.
+ *
+ * @param subject Caller's security information
+ * @param cxRequestInfo Additional resource adapter specific connection request information
+ * @throws ResourceException generic exception
+ * @return ManagedConnection instance
+ */
+ public ManagedConnection createManagedConnection(Subject subject,
+ ConnectionRequestInfo cxRequestInfo)
+ throws ResourceException
+ {
+ subjectUsed = subject;
+ if (ra == null)
+ throw new IllegalStateException("RA is null");
+
+ log.debug("call createManagedConnection");
+ return null;
+ }
+
+ /**
+ * Returns a matched connection from the candidate set of connections.
+ * @param connectionSet candidate connection set
+ * @param subject caller's security information
+ * @param cxRequestInfo additional resource adapter specific connection request information
+ *
+ * @throws ResourceException generic exception
+ * @return ManagedConnection if resource adapter finds an acceptable match otherwise null
+ **/
+ public ManagedConnection matchManagedConnections(Set connectionSet,
+ Subject subject,
+ ConnectionRequestInfo cxRequestInfo)
+ throws ResourceException
+ {
+ if (ra == null)
+ throw new IllegalStateException("RA is null");
+
+ log.debug("call matchManagedConnections");
+ return null;
+ }
+
+ /**
+ * Get the log writer for this ManagedConnectionFactory instance.
+ * @return PrintWriter
+ * @throws ResourceException generic exception
+ */
+ public PrintWriter getLogWriter() throws ResourceException
+ {
+ log.debug("call getLogWriter");
+ return logwriter;
+ }
+
+ /**
+ * Set the log writer for this ManagedConnectionFactory instance.</p>
+ *
+ * @param out PrintWriter - an out stream for error logging and tracing
+ * @throws ResourceException generic exception
+ */
+ public void setLogWriter(PrintWriter out) throws ResourceException
+ {
+ log.debug("call setLogWriter");
+ logwriter = out;
+ }
+
+ /**
+ * Get the resource adapter
+ * @return The handle
+ */
+ public ResourceAdapter getResourceAdapter()
+ {
+ log.debug("call getResourceAdapter");
+ return ra;
+ }
+
+ /**
+ * Set the resource adapter
+ * @param ra The handle
+ */
+ public void setResourceAdapter(ResourceAdapter ra)
+ {
+ log.debug("call setResourceAdapter(" + ra + ")");
+ this.ra = ra;
+ }
+
+ /**
+ * Hash code
+ * @return The hash
+ */
+ @Override
+ public int hashCode()
+ {
+ return 42;
+ }
+
+ /**
+ * Equals
+ * @param other The other object
+ * @return True if equal; otherwise false
+ */
+ @Override
+ public boolean equals(Object other)
+ {
+ if (other == null)
+ return false;
+
+ return getClass().equals(other.getClass());
+ }
+
+ /**
+ * Get the subjectUsed.
+ *
+ * @return the subjectUsed.
+ */
+ public static Subject getSubjectUsed()
+ {
+ return subjectUsed;
+ }
+}
Added: projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/TestResourceAdapter.java
===================================================================
--- projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/TestResourceAdapter.java (rev 0)
+++ projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/TestResourceAdapter.java 2011-02-17 15:10:34 UTC (rev 110701)
@@ -0,0 +1,130 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.jca.core.security.subjectfactory;
+
+import javax.resource.ResourceException;
+import javax.resource.spi.ActivationSpec;
+import javax.resource.spi.BootstrapContext;
+import javax.resource.spi.ResourceAdapter;
+import javax.resource.spi.ResourceAdapterInternalException;
+import javax.resource.spi.endpoint.MessageEndpointFactory;
+import javax.transaction.xa.XAResource;
+
+import org.jboss.logging.Logger;
+
+/**
+ * TestResourceAdapter
+ * @author <a href="mailto:jeff.zhang at jboss.org">Jeff Zhang</a>
+ * @version $Revision: $
+ */
+public class TestResourceAdapter implements ResourceAdapter
+{
+ private static Logger log = Logger.getLogger(TestResourceAdapter.class);
+
+ /**
+ * This is called during the activation of a message endpoint.
+ *
+ * @param endpointFactory a message endpoint factory instance.
+ * @param spec an activation spec JavaBean instance.
+ * @throws ResourceException generic exception
+ */
+ public void endpointActivation(MessageEndpointFactory endpointFactory,
+ ActivationSpec spec) throws ResourceException
+ {
+ log.debug("call endpointActivation");
+
+ }
+
+ /**
+ * This is called when a message endpoint is deactivated.
+ *
+ * @param endpointFactory a message endpoint factory instance.
+ * @param spec an activation spec JavaBean instance.
+ */
+ public void endpointDeactivation(MessageEndpointFactory endpointFactory,
+ ActivationSpec spec)
+ {
+ log.debug("call endpointDeactivation");
+
+ }
+
+ /**
+ * This method is called by the application server during crash recovery.
+ *
+ * @param specs an array of ActivationSpec JavaBeans
+ * @throws ResourceException generic exception
+ * @return an array of XAResource objects
+ */
+ public XAResource[] getXAResources(ActivationSpec[] specs)
+ throws ResourceException
+ {
+ log.debug("call getXAResources");
+ return null;
+ }
+
+ /**
+ * This is called when a resource adapter instance is bootstrapped.
+ *
+ * @param ctx a bootstrap context containing references
+ * @throws ResourceAdapterInternalException indicates bootstrap failure.
+ */
+ public void start(BootstrapContext ctx)
+ throws ResourceAdapterInternalException
+ {
+ log.debug("call start");
+
+ }
+
+ /**
+ * This is called when a resource adapter instance is undeployed or
+ * during application server shutdown.
+ */
+ public void stop()
+ {
+ log.debug("call stop");
+
+ }
+
+ /**
+ * Hash code
+ * @return The hash
+ */
+ @Override
+ public int hashCode()
+ {
+ return 42;
+ }
+
+ /**
+ * Equals
+ * @param other The other object
+ * @return True if equal; otherwise false
+ */
+ @Override
+ public boolean equals(Object other)
+ {
+ if (other == null)
+ return false;
+
+ return getClass().equals(other.getClass());
+ }
+}
Added: projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/package.html
===================================================================
--- projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/package.html (rev 0)
+++ projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/security/subjectfactory/package.html 2011-02-17 15:10:34 UTC (rev 110701)
@@ -0,0 +1,3 @@
+<body>
+This package contains the resource adapter used to verify Subjectfactory injection
+</body>
Added: projects/jboss-jca/trunk/core/src/test/resources/subjectfactory.rar/META-INF/ironjacamar.xml
===================================================================
--- projects/jboss-jca/trunk/core/src/test/resources/subjectfactory.rar/META-INF/ironjacamar.xml (rev 0)
+++ projects/jboss-jca/trunk/core/src/test/resources/subjectfactory.rar/META-INF/ironjacamar.xml 2011-02-17 15:10:34 UTC (rev 110701)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- $Id $ -->
+
+<ironjacamar>
+
+ <connection-definitions>
+ <connection-definition jndi-name="java:/eis/SubjectFactoryInjection"
+ class-name="org.jboss.jca.core.security.subjectfactory.TestManagedConnectionFactory">
+ <security>
+ <security-domain>default-domain</security-domain>
+ </security>
+ </connection-definition>
+ </connection-definitions>
+
+</ironjacamar>
Added: projects/jboss-jca/trunk/core/src/test/resources/subjectfactory.rar/META-INF/ra.xml
===================================================================
--- projects/jboss-jca/trunk/core/src/test/resources/subjectfactory.rar/META-INF/ra.xml (rev 0)
+++ projects/jboss-jca/trunk/core/src/test/resources/subjectfactory.rar/META-INF/ra.xml 2011-02-17 15:10:34 UTC (rev 110701)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- $Id $ -->
+
+<connector xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
+ http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"
+ version="1.5">
+
+ <vendor-name>Red Hat Middleware LLC</vendor-name>
+ <eis-type>Test RA</eis-type>
+ <resourceadapter-version>0.1</resourceadapter-version>
+
+ <resourceadapter>
+ <resourceadapter-class>org.jboss.jca.core.security.subjectfactory.TestResourceAdapter</resourceadapter-class>
+
+ <outbound-resourceadapter>
+ <connection-definition>
+ <managedconnectionfactory-class>org.jboss.jca.core.security.subjectfactory.TestManagedConnectionFactory</managedconnectionfactory-class>
+
+ <connectionfactory-interface>javax.resource.spi.ManagedConnection</connectionfactory-interface>
+ <connectionfactory-impl-class>org.jboss.jca.core.security.subjectfactory.TestManagedConnection</connectionfactory-impl-class>
+ <connection-interface>org.jboss.jca.test.deployers.spec.rars.TestConnectionInterface</connection-interface>
+ <connection-impl-class>org.jboss.jca.test.deployers.spec.rars.TestConnection</connection-impl-class>
+ </connection-definition>
+ <transaction-support>LocalTransaction</transaction-support>
+ <reauthentication-support>false</reauthentication-support>
+ </outbound-resourceadapter>
+ </resourceadapter>
+</connector>
Modified: projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/fungal/AbstractFungalRADeployer.java
===================================================================
--- projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/fungal/AbstractFungalRADeployer.java 2011-02-17 15:10:23 UTC (rev 110700)
+++ projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/fungal/AbstractFungalRADeployer.java 2011-02-17 15:10:34 UTC (rev 110701)
@@ -468,7 +468,7 @@
{
try
{
- return kernel.getBean(securityDomain, SubjectFactory.class);
+ return kernel.getBean(securityDomain + "-subjectfactory", SubjectFactory.class);
}
catch (Throwable e)
{
More information about the jboss-cvs-commits
mailing list