[jboss-cvs] JBossAS SVN: r87877 - in projects/jboss-jca/trunk: core and 19 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Apr 27 12:25:17 EDT 2009


Author: jesper.pedersen
Date: 2009-04-27 12:25:16 -0400 (Mon, 27 Apr 2009)
New Revision: 87877

Added:
   projects/jboss-jca/trunk/deployers/
   projects/jboss-jca/trunk/deployers/build.xml
   projects/jboss-jca/trunk/deployers/src/
   projects/jboss-jca/trunk/deployers/src/main/
   projects/jboss-jca/trunk/deployers/src/main/java/
   projects/jboss-jca/trunk/deployers/src/main/java/org/
   projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/
   projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/
   projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/
   projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/hack/
   projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/hack/MainScanner.java
   projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/hack/package.html
   projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/rar/
   projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/rar/RaXmlParsingDeployer.java
   projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/rar/package.html
   projects/jboss-jca/trunk/deployers/src/main/resources/
   projects/jboss-jca/trunk/deployers/src/main/resources/jca-deployers-jboss-beans.xml
   projects/jboss-jca/trunk/deployers/src/main/resources/main-manifest.mf
   projects/jboss-jca/trunk/deployers/src/main/resources/rar-manifest.mf
   projects/jboss-jca/trunk/deployers/src/test/
   projects/jboss-jca/trunk/deployers/src/test/java/
   projects/jboss-jca/trunk/deployers/src/test/resources/
   projects/jboss-jca/trunk/standalone/src/main/java/org/jboss/jca/standalone/hack/
   projects/jboss-jca/trunk/standalone/src/main/java/org/jboss/jca/standalone/hack/JMX.java
   projects/jboss-jca/trunk/standalone/src/main/java/org/jboss/jca/standalone/hack/JavaCompInitializer.java
   projects/jboss-jca/trunk/standalone/src/main/java/org/jboss/jca/standalone/hack/package.html
   projects/jboss-jca/trunk/standalone/src/main/resources/deployment/
   projects/jboss-jca/trunk/standalone/src/main/resources/deployment/naming-jboss-beans.xml
   projects/jboss-jca/trunk/standalone/src/main/resources/deployment/transaction-jboss-beans.xml
   projects/jboss-jca/trunk/standalone/src/main/resources/jndi.properties
Removed:
   projects/jboss-jca/trunk/core/src/main/resources/deployment/naming-jboss-beans.xml
   projects/jboss-jca/trunk/core/src/main/resources/deployment/transaction-jboss-beans.xml
Modified:
   projects/jboss-jca/trunk/build.xml
   projects/jboss-jca/trunk/core/build.xml
   projects/jboss-jca/trunk/standalone/build.xml
   projects/jboss-jca/trunk/standalone/src/main/java/org/jboss/jca/standalone/JarFilter.java
   projects/jboss-jca/trunk/standalone/src/main/java/org/jboss/jca/standalone/Main.java
   projects/jboss-jca/trunk/standalone/src/main/java/org/jboss/jca/standalone/SecurityActions.java
   projects/jboss-jca/trunk/standalone/src/main/resources/bootstrap/deployers.xml
Log:
[JBJCA-89] Standalone profile

Modified: projects/jboss-jca/trunk/build.xml
===================================================================
--- projects/jboss-jca/trunk/build.xml	2009-04-27 16:07:54 UTC (rev 87876)
+++ projects/jboss-jca/trunk/build.xml	2009-04-27 16:25:16 UTC (rev 87877)
@@ -118,6 +118,9 @@
 
   <path id="checkstyle.lib.path.id">
     <fileset dir="${tools.dir}/checkstyle/lib"/>
+    <fileset dir="${lib.dir}/standalone">
+      <include name="**/*.jar"/>
+    </fileset>
     <fileset dir="${target.dir}">
       <include name="**/*.jar"/>
     </fileset>
@@ -162,6 +165,7 @@
     <ant dir="api" inheritRefs="true" target="jars"/>
     <ant dir="common" inheritRefs="true" target="jars"/>
     <ant dir="core" inheritRefs="true" target="jars"/>
+    <ant dir="deployers" inheritRefs="true" target="jars"/>
     <ant dir="standalone" inheritRefs="true" target="jars"/>
   </target>
   
@@ -172,6 +176,7 @@
     <ant dir="api" inheritRefs="true" target="docs"/>
     <ant dir="common" inheritRefs="true" target="docs"/>
     <ant dir="core" inheritRefs="true" target="docs"/>
+    <ant dir="deployers" inheritRefs="true" target="docs"/>
     <ant dir="standalone" inheritRefs="true" target="docs"/>
   </target>
   
@@ -180,6 +185,7 @@
        ================================= -->
   <target name="prepare-test" depends="jars">
     <ant dir="core" inheritRefs="true" target="prepare-test"/>
+    <ant dir="deployers" inheritRefs="true" target="prepare-test"/>
   </target>
   
   <!-- ================================= 
@@ -187,6 +193,7 @@
        ================================= -->
   <target name="test" depends="prepare-test">
     <ant dir="core" inheritRefs="true" target="test"/>
+    <ant dir="deployers" inheritRefs="true" target="test"/>
   </target>
   
   <!-- ================================= 
@@ -247,6 +254,8 @@
       <class location="${target.dir}/jboss-jca-common-impl.jar" />
       <class location="${target.dir}/jboss-jca-core-api.jar" />
       <class location="${target.dir}/jboss-jca-core-impl.jar" />
+      <class location="${target.dir}/jboss-jca-deployers-main.jar" />
+      <class location="${target.dir}/jboss-jca-deployers-rar.jar" />
       <class location="${target.dir}/jboss-jca-standalone.jar" />
     </findbugs>
   </target>
@@ -304,6 +313,33 @@
       </batchtest>
     </junit>
 
+    <junit dir="deployers/src/test"
+           printsummary="${junit.printsummary}"
+           haltonerror="${junit.haltonerror}"
+           haltonfailure="${junit.haltonfailure}"
+           fork="yes"
+           timeout="${junit.timeout}">
+      
+      <jvmarg line="${junit.jvm.options}"/>
+      <sysproperty key="test.dir" value="${test.dir}"/>
+      <sysproperty key="net.sourceforge.cobertura.datafile" file="${reports.dir}/cobertura/cobertura.ser" />
+
+      <classpath>
+        <fileset dir="${build.dir}/instrumented" includes="*.jar" />
+        <pathelement location="${build.dir}/deployers/test"/>
+        <fileset dir="${lib.dir}/test" includes="*.jar" />
+      </classpath>
+      <classpath refid="cobertura.lib.path.id" />
+      
+      <formatter type="xml"/>
+      
+      <batchtest todir="${reports.dir}/cobertura/tests">
+        <fileset dir="${build.dir}/deployers/test">
+          <include name="**/*TestCase.class"/>
+        </fileset>
+      </batchtest>
+    </junit>
+
     <cobertura-report format="html" 
                       destdir="${reports.dir}/cobertura/html" 
                       datafile="${reports.dir}/cobertura/cobertura.ser">
@@ -316,6 +352,9 @@
       <fileset dir="core/src/main/java">
         <include name="**/*.java" />
       </fileset>
+      <fileset dir="deployers/src/main/java">
+        <include name="**/*.java" />
+      </fileset>
     </cobertura-report>
 
     <cobertura-report format="xml" 
@@ -330,6 +369,9 @@
       <fileset dir="core/src/main/java">
         <include name="**/*.java" />
       </fileset>
+      <fileset dir="deployers/src/main/java">
+        <include name="**/*.java" />
+      </fileset>
     </cobertura-report>
   </target>
 

Modified: projects/jboss-jca/trunk/core/build.xml
===================================================================
--- projects/jboss-jca/trunk/core/build.xml	2009-04-27 16:07:54 UTC (rev 87876)
+++ projects/jboss-jca/trunk/core/build.xml	2009-04-27 16:25:16 UTC (rev 87877)
@@ -58,6 +58,14 @@
          manifest="src/main/resources/impl-manifest.mf"
          basedir="${build.core.dir}/impl"
          excludes="**/*.java, **/api/**"/>
+
+    <mkdir dir="${target.dir}/deploy"/>
+    <copy todir="${target.dir}/deploy">
+      <fileset dir="src/main/resources/deployment">
+        <include name="**/*.xml"/>
+      </fileset>
+    </copy>
+
   </target>
 
   <!-- ================================= 

Deleted: projects/jboss-jca/trunk/core/src/main/resources/deployment/naming-jboss-beans.xml
===================================================================
--- projects/jboss-jca/trunk/core/src/main/resources/deployment/naming-jboss-beans.xml	2009-04-27 16:07:54 UTC (rev 87876)
+++ projects/jboss-jca/trunk/core/src/main/resources/deployment/naming-jboss-beans.xml	2009-04-27 16:25:16 UTC (rev 87877)
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
-    JBoss JCA
--->
-<deployment xmlns="urn:jboss:bean-deployer:2.0">
-
-  <!-- Naming -->
-  <bean name="NamingServer" class="org.jnp.server.SingletonNamingServer"/>
-
-  <!-- java:comp -->
-  <bean name="JavaCompInitializer" class="org.jboss.jca.test.core.common.JavaCompInitializer">
-    <depends>NamingServer</depends>
-  </bean>
-
-</deployment>

Deleted: projects/jboss-jca/trunk/core/src/main/resources/deployment/transaction-jboss-beans.xml
===================================================================
--- projects/jboss-jca/trunk/core/src/main/resources/deployment/transaction-jboss-beans.xml	2009-04-27 16:07:54 UTC (rev 87876)
+++ projects/jboss-jca/trunk/core/src/main/resources/deployment/transaction-jboss-beans.xml	2009-04-27 16:25:16 UTC (rev 87877)
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
-    JBoss JCA
--->
-<deployment xmlns="urn:jboss:bean-deployer:2.0">
-
-  <!-- JMX -->
-  <bean name="JMX" class="org.jboss.jca.test.core.common.JMX"/>
-
-  <!-- Transaction manager -->
-  <bean name="TransactionManager" class="com.arjuna.ats.jbossatx.jta.TransactionManagerService">
-    <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss:service=TransactionManager", exposedInterface=com.arjuna.ats.jbossatx.jta.TransactionManagerServiceMBean.class, registerDirectly=true)</annotation>
-    <property name="transactionTimeout">300</property>
-    <property name="objectStoreDir">tx-object-store</property>
-    <property name="mbeanServer"><inject bean="JMX" property="mbeanServer"/></property>
-    <property name="transactionStatusManagerInetAddress">localhost</property>
-    <property name="transactionStatusManagerPort">4713</property>
-    <property name="recoveryInetAddress">localhost</property>
-    <property name="recoveryPort">4712</property>
-    <property name="socketProcessIdPort">0</property>    
-
-    <depends>JMX</depends>
-    <depends>NamingServer</depends>
-  </bean>
-
-</deployment>

Added: projects/jboss-jca/trunk/deployers/build.xml
===================================================================
--- projects/jboss-jca/trunk/deployers/build.xml	                        (rev 0)
+++ projects/jboss-jca/trunk/deployers/build.xml	2009-04-27 16:25:16 UTC (rev 87877)
@@ -0,0 +1,180 @@
+<!--
+ * 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.
+-->
+<project name="jboss-jca-deployers" 
+         default="compile" 
+         xmlns:ivy="antlib:org.apache.ivy.ant">
+
+  <!-- ================================= 
+       Properties              
+       ================================= -->
+  <property name="build.deployers.dir" value="${build.dir}/deployers" />
+
+  <!-- ================================= 
+       Target: compile
+       ================================= -->
+  <target name="compile">
+    <mkdir dir="${build.deployers.dir}" />
+    <mkdir dir="${build.deployers.dir}/impl" />
+
+    <javac srcdir="src/main"
+           destdir="${build.deployers.dir}/impl"
+           classpathref="standalone.lib.path.id"
+           debug="${javac.debug}"
+           deprecation="${javac.deprecation}"
+           optimize="${javac.optimize}">
+      <compilerarg value="-Xlint"/>
+    </javac> 
+  </target>
+
+  <!-- ================================= 
+       Target: jars 
+       ================================= -->
+  <target name="jars" depends="compile">
+    <jar destfile="${target.dir}/jboss-jca-deployers-main.jar"
+         manifest="src/main/resources/main-manifest.mf"
+         basedir="${build.deployers.dir}/impl"
+         includes="**/hack/**"
+         excludes="**/*.java"/>
+
+    <jar destfile="${target.dir}/jboss-jca-deployers-rar.jar"
+         manifest="src/main/resources/rar-manifest.mf"
+         basedir="${build.deployers.dir}/impl"
+         includes="**/rar/**"
+         excludes="**/*.java"/>
+  </target>
+
+  <!-- ================================= 
+       Target: docs
+       ================================= -->
+  <target name="docs">
+    <mkdir dir="${target.dir}/docs/deployers"/>
+    <javadoc packagenames="org.*"
+             sourcepath="src/main/java"
+             destdir="${target.dir}/docs/deployers"
+             author="true"
+             version="true"
+             windowtitle="JBoss JCA Deployers"
+             doctitle="JBoss JCA Deployers"
+             use="true"
+             classpathref="standalone.lib.path.id"
+             bottom="Copyright &#169; 2008-2009 Red Hat Middleware LLC (http://www.jboss.com/)">
+      <link offline="true" href="http://java.sun.com/j2se/5/docs/api/" packagelistLoc="${java.home}/../docs/api"/>
+    </javadoc>
+  </target>
+
+  <!-- ================================= 
+       Target: test
+       ================================= -->
+  <target name="test" depends="jars, prepare-test">
+    <mkdir dir="${reports.dir}"/>
+    <mkdir dir="${reports.dir}/deployers"/>
+
+    <junit dir="src/test"
+           printsummary="${junit.printsummary}"
+           haltonerror="${junit.haltonerror}"
+           haltonfailure="${junit.haltonfailure}"
+           fork="${junit.fork}"
+           timeout="${junit.timeout}">
+      
+      <jvmarg line="${junit.jvm.options}"/>
+      <sysproperty key="test.dir" value="${test.dir}"/>
+      
+      <classpath>
+        <pathelement location="${build.deployers.dir}/test"/>
+        <fileset dir="${target.dir}" includes="*.jar"/>
+        <fileset dir="${lib.dir}/test" includes="*.jar" />
+      </classpath>
+      
+      <formatter type="plain"/>
+      <formatter type="xml"/>
+      
+      <batchtest todir="${reports.dir}/deployers"
+                 haltonerror="${junit.batchtest.haltonerror}"
+                 haltonfailure="${junit.batchtest.haltonfailure}"
+                 fork="${junit.batchtest.fork}">
+        
+        <fileset dir="${build.deployers.dir}/test">
+          <include name="**/*TestCase.class"/>
+        </fileset>
+      </batchtest>
+
+    </junit>
+    
+  </target>
+
+
+  <!-- ================================= 
+       Target: one-test
+       ================================= -->
+  <target name="one-test" depends="jars, prepare-test">
+    <mkdir dir="${reports.dir}"/>
+    <mkdir dir="${reports.dir}/deployers"/>
+
+    <junit dir="src/test"
+           printsummary="${junit.printsummary}"
+           haltonerror="${junit.haltonerror}"
+           haltonfailure="${junit.haltonfailure}"
+           fork="${junit.fork}"
+           timeout="${junit.timeout}">
+      
+      <jvmarg line="${junit.jvm.options}"/>
+      <sysproperty key="test.dir" value="${test.dir}"/>
+      
+      <classpath>
+        <pathelement location="${build.deployers.dir}/test"/>
+        <fileset dir="${target.dir}" includes="*.jar"/>
+        <fileset dir="${lib.dir}/test" includes="*.jar" />
+      </classpath>
+      
+      <formatter type="plain"/>
+      <formatter type="xml"/>
+      
+      <test todir="${reports.dir}/deployers" name="${test}"
+                 haltonerror="${junit.batchtest.haltonerror}"
+                 haltonfailure="${junit.batchtest.haltonfailure}"
+                 fork="${junit.batchtest.fork}"/>
+    </junit>
+  </target>
+
+  <!-- ================================= 
+       Target: prepare-test
+       ================================= -->
+  <target name="prepare-test">
+    <mkdir dir="${build.deployers.dir}" />
+    <mkdir dir="${build.deployers.dir}/test" />
+
+    <javac srcdir="src/test"
+           destdir="${build.deployers.dir}/test"
+           classpathref="test.lib.path.id"
+           debug="${javac.debug}"
+           deprecation="${javac.deprecation}"
+           optimize="${javac.optimize}">
+      <compilerarg value="-Xlint"/>
+    </javac> 
+
+    <copy todir="${build.deployers.dir}/test">
+      <fileset dir="src/test/resources"/>
+    </copy>
+
+  </target>
+
+</project>

Added: projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/hack/MainScanner.java
===================================================================
--- projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/hack/MainScanner.java	                        (rev 0)
+++ projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/hack/MainScanner.java	2009-04-27 16:25:16 UTC (rev 87877)
@@ -0,0 +1,154 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008-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.deployers.hack;
+
+import java.io.File;
+import java.io.IOException;
+import java.net.JarURLConnection;
+import java.net.URI;
+import java.net.URL;
+import java.net.URLConnection;
+import java.util.Enumeration;
+import java.util.List;
+import java.util.Properties;
+
+import org.jboss.bootstrap.spi.Server;
+import org.jboss.bootstrap.spi.microcontainer.MCServer;
+import org.jboss.dependency.spi.ControllerState;
+import org.jboss.deployers.client.spi.main.MainDeployer;
+import org.jboss.deployers.spi.DeploymentException;
+import org.jboss.deployers.vfs.spi.client.VFSDeployment;
+import org.jboss.deployers.vfs.spi.client.VFSDeploymentFactory;
+import org.jboss.kernel.Kernel;
+import org.jboss.logging.Logger;
+import org.jboss.virtual.VFS;
+import org.jboss.virtual.VirtualFile;
+
+/**
+ * Main scanner
+ * @author Jesper Pedersen <jesper.pedersen at jboss.org>
+ */
+public class MainScanner
+{
+   /** The logger */
+   private static Logger log = Logger.getLogger(MainScanner.class);
+
+   /** Whether trace is enabled */
+   private boolean trace = log.isTraceEnabled();
+
+   /** The MC main deployer */
+   private MainDeployer mainDeployer;
+
+   /** The deploy directory */
+   private URL deployDirectory;
+
+   /**
+    * Constructor
+    * @param server The server
+    * @param deployDirectory The deploy directory that needs to be scanned
+    */
+   public MainScanner(Object server, URL deployDirectory)
+   {
+      if (server == null)
+         throw new IllegalArgumentException("Server is null");
+
+      if (deployDirectory == null)
+         throw new IllegalArgumentException("DeployDirectory is null");
+
+      if (!(server instanceof MCServer))
+         throw new IllegalArgumentException("Server is not a MCServer instance");
+
+      MCServer mcServer = (MCServer)server;
+      Kernel kernel = mcServer.getKernel();
+
+      this.mainDeployer = 
+         (MainDeployer)kernel.getController().getContext("MainDeployer", ControllerState.INSTALLED).getTarget();
+      this.deployDirectory = deployDirectory;
+
+      log.debug("MainScanner created.");
+   }
+
+   /**
+    * Start
+    * @exception Exception Thrown if an error occurs
+    */
+   public void start() throws Exception 
+   {
+      log.debug("MainScanner starting.");
+
+      ClassLoader tccl = Thread.currentThread().getContextClassLoader();
+
+      Enumeration<URL> urls = tccl.getResources("META-INF/jboss-beans.xml");
+      while (urls.hasMoreElements())
+      {
+         URL u = urls.nextElement();
+         URLConnection c = u.openConnection();
+
+         if (!(c instanceof JarURLConnection))
+            continue;
+
+         JarURLConnection connection = (JarURLConnection)c;
+         URL jarFileURL = connection.getJarFileURL();
+         deploy(jarFileURL);
+      }
+      
+      VirtualFile deployDir = VFS.getRoot(deployDirectory);
+      List<VirtualFile> candidates = deployDir.getChildren();
+
+      for (VirtualFile candidate : candidates)
+      {
+         deploy(candidate.toURL());
+      }
+
+      log.debug("MainScanner started.");
+   }
+
+   /**
+    * Stop
+    * @exception Exception Thrown if an error occurs
+    */
+   public void stop() throws Exception 
+   {
+      log.debug("MainScanner stopping.");
+
+      log.debug("MainScanner stopped.");
+   }
+
+   /**
+    * Deploy
+    * @param url The URL
+    * @exception DeploymentException Thrown if a deploy error occurs
+    * @exception IOException Thrown if an I/O error occurs
+    */
+   protected void deploy(URL url) throws DeploymentException, IOException
+   {
+      log.info("Deploying: " + url);
+
+      VirtualFile root = VFS.getRoot(url);
+      VFSDeployment deployment = VFSDeploymentFactory.getInstance().createVFSDeployment(root);
+      mainDeployer.deploy(deployment);
+      mainDeployer.checkComplete(deployment);
+
+      log.info("Deployed: " + url);
+   }
+}

Added: projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/hack/package.html
===================================================================
--- projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/hack/package.html	                        (rev 0)
+++ projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/hack/package.html	2009-04-27 16:25:16 UTC (rev 87877)
@@ -0,0 +1,3 @@
+<body>
+This package contains interfaces and classes that are considered hacks. This package need to go away.
+</body>

Added: projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/rar/RaXmlParsingDeployer.java
===================================================================
--- projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/rar/RaXmlParsingDeployer.java	                        (rev 0)
+++ projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/rar/RaXmlParsingDeployer.java	2009-04-27 16:25:16 UTC (rev 87877)
@@ -0,0 +1,73 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008-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.deployers.rar;
+
+import org.jboss.deployers.spi.DeploymentException;
+import org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployer;
+import org.jboss.deployers.structure.spi.DeploymentUnit;
+import org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit;
+import org.jboss.logging.Logger;
+
+/**
+ * RaXmlParsingDeployer parses the Java Connector Architecture ra.xml
+ * file
+ * @author Jesper Pedersen <jesper.pedersen at jboss.org>
+ */
+public class RaXmlParsingDeployer extends AbstractParsingDeployer
+{
+   /** The logger */
+   private static Logger log = Logger.getLogger(RaXmlParsingDeployer.class);
+
+   /** Whether trace is enabled */
+   private boolean trace = log.isTraceEnabled();
+
+   /**
+    * Constructor
+    */
+   public RaXmlParsingDeployer()
+   {
+   }
+
+   /**
+    * Deploy
+    * @param unit The deployment unit
+    * @exception DeploymentException Thrown if the deployment fails
+    */
+   public void deploy(DeploymentUnit unit) throws DeploymentException 
+   {
+      if (unit instanceof VFSDeploymentUnit)
+      {
+         deploy((VFSDeploymentUnit)unit);
+      }
+   }
+
+   /**
+    * Deploy
+    * @param unit The deployment unit
+    * @exception DeploymentException Thrown if the deployment fails
+    */
+   public void deploy(VFSDeploymentUnit unit) throws DeploymentException 
+   {
+      throw new DeploymentException("NYI");
+   }
+}

Added: projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/rar/package.html
===================================================================
--- projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/rar/package.html	                        (rev 0)
+++ projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/rar/package.html	2009-04-27 16:25:16 UTC (rev 87877)
@@ -0,0 +1,3 @@
+<body>
+This package contains the .RAR deployer chain.
+</body>

Added: projects/jboss-jca/trunk/deployers/src/main/resources/jca-deployers-jboss-beans.xml
===================================================================
--- projects/jboss-jca/trunk/deployers/src/main/resources/jca-deployers-jboss-beans.xml	                        (rev 0)
+++ projects/jboss-jca/trunk/deployers/src/main/resources/jca-deployers-jboss-beans.xml	2009-04-27 16:25:16 UTC (rev 87877)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+  <bean name="RaXmlParsingDeployer" class="org.jboss.jca.deployers.rar.RaXmlParsingDeployer"/>
+
+</deployment>

Added: projects/jboss-jca/trunk/deployers/src/main/resources/main-manifest.mf
===================================================================
--- projects/jboss-jca/trunk/deployers/src/main/resources/main-manifest.mf	                        (rev 0)
+++ projects/jboss-jca/trunk/deployers/src/main/resources/main-manifest.mf	2009-04-27 16:25:16 UTC (rev 87877)
@@ -0,0 +1,4 @@
+Implementation-Title: JBoss JCA Deployers Main
+Implementation-Vendor: Red Hat Middleware LLC
+Implementation-Vendor-Id: org.jboss
+Implementation-Version: 0.1

Added: projects/jboss-jca/trunk/deployers/src/main/resources/rar-manifest.mf
===================================================================
--- projects/jboss-jca/trunk/deployers/src/main/resources/rar-manifest.mf	                        (rev 0)
+++ projects/jboss-jca/trunk/deployers/src/main/resources/rar-manifest.mf	2009-04-27 16:25:16 UTC (rev 87877)
@@ -0,0 +1,4 @@
+Implementation-Title: JBoss JCA Deployers RAR
+Implementation-Vendor: Red Hat Middleware LLC
+Implementation-Vendor-Id: org.jboss
+Implementation-Version: 0.1

Modified: projects/jboss-jca/trunk/standalone/build.xml
===================================================================
--- projects/jboss-jca/trunk/standalone/build.xml	2009-04-27 16:07:54 UTC (rev 87876)
+++ projects/jboss-jca/trunk/standalone/build.xml	2009-04-27 16:25:16 UTC (rev 87877)
@@ -85,6 +85,8 @@
     <mkdir dir="${target.dir}/standalone/server"/>
     <mkdir dir="${target.dir}/standalone/server/jca"/>
     <mkdir dir="${target.dir}/standalone/server/jca/conf"/>
+    <mkdir dir="${target.dir}/standalone/server/jca/conf/bootstrap"/>
+    <mkdir dir="${target.dir}/standalone/server/jca/deploy"/>
 
     <copy todir="${target.dir}/standalone/bin">
       <fileset dir="src/main/resources/">
@@ -99,11 +101,35 @@
     </copy>
 
     <copy todir="${target.dir}/standalone/server/jca/conf">
+      <fileset dir="src/main/resources">
+        <include name="*.xml"/>
+      </fileset>
+    </copy>
+
+    <copy todir="${target.dir}/standalone/server/jca/conf/bootstrap">
+      <fileset dir="src/main/resources/bootstrap">
+        <include name="*.xml"/>
+      </fileset>
+    </copy>
+
+    <copy todir="${target.dir}/standalone/server/jca/conf">
       <fileset dir="src/main/resources/">
+        <include name="*.properties"/>
+      </fileset>
+    </copy>
+
+    <copy todir="${target.dir}/standalone/server/jca/deploy">
+      <fileset dir="${target.dir}/deploy">
         <include name="**/*.xml"/>
       </fileset>
     </copy>
 
+    <copy todir="${target.dir}/standalone/server/jca/deploy">
+      <fileset dir="src/main/resources/deployment">
+        <include name="**/*.xml"/>
+      </fileset>
+    </copy>
+
     <copy todir="${target.dir}/standalone/lib">
       <fileset dir="${target.dir}">
         <include name="*.jar"/>

Modified: projects/jboss-jca/trunk/standalone/src/main/java/org/jboss/jca/standalone/JarFilter.java
===================================================================
--- projects/jboss-jca/trunk/standalone/src/main/java/org/jboss/jca/standalone/JarFilter.java	2009-04-27 16:07:54 UTC (rev 87876)
+++ projects/jboss-jca/trunk/standalone/src/main/java/org/jboss/jca/standalone/JarFilter.java	2009-04-27 16:25:16 UTC (rev 87877)
@@ -27,6 +27,7 @@
 
 /**
  * Jar filter
+ * @author <a hef="mailto:jesper.pedersen at jboss.org">Jesper Pedersen</a>
  */
 public class JarFilter implements FilenameFilter
 {

Modified: projects/jboss-jca/trunk/standalone/src/main/java/org/jboss/jca/standalone/Main.java
===================================================================
--- projects/jboss-jca/trunk/standalone/src/main/java/org/jboss/jca/standalone/Main.java	2009-04-27 16:07:54 UTC (rev 87876)
+++ projects/jboss-jca/trunk/standalone/src/main/java/org/jboss/jca/standalone/Main.java	2009-04-27 16:25:16 UTC (rev 87877)
@@ -38,13 +38,16 @@
 
 /**
  * The main class for JBoss JCA standalone
- * @author <a hef="mailto:jesper.pedersen">Jesper Pedersen</a>
+ * @author <a hef="mailto:jesper.pedersen at jboss.org">Jesper Pedersen</a>
  */
 public class Main
 {
    /** The server */
    private Object server;
 
+   /** The main deployer */
+   private Object mainScanner;
+
    /**
     * Default constructor
     */
@@ -75,6 +78,7 @@
 
          File libDirectory = new File(root, "/lib/");
          File configDirectory = new File(root, "/server/jca/conf/");
+         URL deployDirectory = new File(root, "/server/jca/deploy/").toURI().toURL();
 
          ClassLoader parent = SecurityActions.getThreadContextClassLoader();
 
@@ -118,6 +122,15 @@
          serverMethodInit.invoke(server, props, null);
 
          serverMethodStart.invoke(server);
+
+         // Start the main scanner
+         Class mainScannerClass = Class.forName("org.jboss.jca.deployers.hack.MainScanner", true, classLoader);
+         Constructor mainScannerConstructor = mainScannerClass.getDeclaredConstructor(Object.class, URL.class);
+         mainScanner = mainScannerConstructor.newInstance(server, deployDirectory);
+
+         Method  mainScannerMethodStart = mainScannerClass.getDeclaredMethod("start"); 
+
+         mainScannerMethodStart.invoke(mainScanner);
       }
       catch (Throwable t)
       {
@@ -132,6 +145,19 @@
    {
       try
       {
+         if (mainScanner != null)
+         {
+            Method mainScannerMethodStop = mainScanner.getClass().getDeclaredMethod("stop"); 
+            mainScannerMethodStop.invoke(mainScanner);
+         }
+      }
+      catch (Exception e)
+      {
+         e.printStackTrace(System.err);
+      }
+
+      try
+      {
          if (server != null)
          {
             Method serverMethodShutdown = server.getClass().getDeclaredMethod("shutdown"); 

Modified: projects/jboss-jca/trunk/standalone/src/main/java/org/jboss/jca/standalone/SecurityActions.java
===================================================================
--- projects/jboss-jca/trunk/standalone/src/main/java/org/jboss/jca/standalone/SecurityActions.java	2009-04-27 16:07:54 UTC (rev 87876)
+++ projects/jboss-jca/trunk/standalone/src/main/java/org/jboss/jca/standalone/SecurityActions.java	2009-04-27 16:25:16 UTC (rev 87877)
@@ -28,7 +28,7 @@
 
 /**
  * Privileged Blocks
- * @author <a hef="mailto:jesper.pedersen">Jesper Pedersen</a>
+ * @author <a hef="mailto:jesper.pedersen at jboss.org">Jesper Pedersen</a>
  */
 class SecurityActions
 { 

Added: projects/jboss-jca/trunk/standalone/src/main/java/org/jboss/jca/standalone/hack/JMX.java
===================================================================
--- projects/jboss-jca/trunk/standalone/src/main/java/org/jboss/jca/standalone/hack/JMX.java	                        (rev 0)
+++ projects/jboss-jca/trunk/standalone/src/main/java/org/jboss/jca/standalone/hack/JMX.java	2009-04-27 16:25:16 UTC (rev 87877)
@@ -0,0 +1,70 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008-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.standalone.hack;
+
+import javax.management.MBeanServer;
+import javax.management.MBeanServerFactory;
+
+import org.jboss.logging.Logger;
+
+/**
+ * JMX.
+ * 
+ * @author <a href="mailto:jesper.pedersen at jboss.org">Jesper Pedersen</a>
+ * @version $Revision: $
+ */
+public class JMX
+{
+   // --------------------------------------------------------------------------------||
+   // Class Members ------------------------------------------------------------------||
+   // --------------------------------------------------------------------------------||
+
+   private static Logger log = Logger.getLogger(JMX.class);
+
+   private MBeanServer mbeanServer;
+
+   // --------------------------------------------------------------------------------||
+   // Constructors -------------------------------------------------------------------||
+   // --------------------------------------------------------------------------------||
+
+   /**
+    * Constructor
+    */
+   public JMX()
+   {
+      mbeanServer = MBeanServerFactory.createMBeanServer();
+   }
+
+   // --------------------------------------------------------------------------------||
+   // Methods ------------------------------------------------------------------------||
+   // --------------------------------------------------------------------------------||
+
+   /**
+    * Get the MBeanServer
+    * @return The MBeanServer
+    */
+   public MBeanServer getMbeanServer()
+   {
+      return mbeanServer;
+   }
+}

Added: projects/jboss-jca/trunk/standalone/src/main/java/org/jboss/jca/standalone/hack/JavaCompInitializer.java
===================================================================
--- projects/jboss-jca/trunk/standalone/src/main/java/org/jboss/jca/standalone/hack/JavaCompInitializer.java	                        (rev 0)
+++ projects/jboss-jca/trunk/standalone/src/main/java/org/jboss/jca/standalone/hack/JavaCompInitializer.java	2009-04-27 16:25:16 UTC (rev 87877)
@@ -0,0 +1,69 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008-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.standalone.hack;
+
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+
+import org.jboss.logging.Logger;
+
+/**
+ * A JavaCompInitializer that can be stopped.
+ * 
+ * @author <a href="mailto:cdewolf at redhat.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+public class JavaCompInitializer extends org.jboss.naming.JavaCompInitializer
+{
+   private static Logger log = Logger.getLogger(JavaCompInitializer.class);
+   
+   /**
+    * Stop
+    */
+   public void stop()
+   {
+      InitialContext ctx = getIniCtx();
+      if (ctx == null)
+         return;
+      
+      try
+      {
+         ctx.unbind("java:comp");
+      }
+      catch (NamingException e)
+      {
+         log.debug("Failed to unbind 'java:comp'", e);
+      }
+      
+      try
+      {
+         ctx.close();
+      }
+      catch (NamingException e)
+      {
+         log.debug("Failed to close InitialContext " + ctx, e);
+      }
+      
+      setIniCtx(null);
+   }
+}

Added: projects/jboss-jca/trunk/standalone/src/main/java/org/jboss/jca/standalone/hack/package.html
===================================================================
--- projects/jboss-jca/trunk/standalone/src/main/java/org/jboss/jca/standalone/hack/package.html	                        (rev 0)
+++ projects/jboss-jca/trunk/standalone/src/main/java/org/jboss/jca/standalone/hack/package.html	2009-04-27 16:25:16 UTC (rev 87877)
@@ -0,0 +1,3 @@
+<body>
+This package provides classes that are common for testing the JCA core.
+</body>

Modified: projects/jboss-jca/trunk/standalone/src/main/resources/bootstrap/deployers.xml
===================================================================
--- projects/jboss-jca/trunk/standalone/src/main/resources/bootstrap/deployers.xml	2009-04-27 16:07:54 UTC (rev 87876)
+++ projects/jboss-jca/trunk/standalone/src/main/resources/bootstrap/deployers.xml	2009-04-27 16:25:16 UTC (rev 87877)
@@ -95,6 +95,55 @@
       <property name="suffix">jboss-beans.xml</property>
    </bean>
 
+   <!-- A declared structure descriptor deployer -->
+   <bean name="DeclaredStructure" class="org.jboss.deployers.vfs.plugins.structure.explicit.DeclaredStructure"/>
+
+    <!-- JAR Structure -->
+    <bean name="JARStructure" class="org.jboss.deployers.vfs.plugins.structure.jar.JARStructure">
+       <!-- Unless specified the default list of suffixes is .zip, .ear, .jar, ,.rar, .war, .sar, .har, .aop -->
+       <constructor>
+          <parameter>
+             <set elementClass="java.lang.String">
+                <value>.zip</value>
+                <value>.jar</value>
+                <value>.rar</value>
+             </set>
+          </parameter>
+       </constructor>
+       <property name="candidateStructureVisitorFactory">
+          <!-- Any file that is not an ordinary directory is a candidate -->
+          <bean name="JARStructureCandidates" class="org.jboss.deployers.vfs.spi.structure.helpers.DefaultCandidateStructureVisitorFactory">
+             <!-- A filter to exclude some obvious non-subdeployments -->
+             <property name="filter">
+                <bean name="JARFilter" class="org.jboss.virtual.plugins.vfs.helpers.SuffixesExcludeFilter">
+                   <constructor><parameter>
+                      <list elementClass="java.lang.String">
+                         <!-- Exclude class files as subdeployments -->
+                         <value>.class</value>
+                      </list>
+                   </parameter></constructor>
+                </bean>
+             </property>
+          </bean>
+       </property>
+    </bean>
+
+    <!-- File Structure -->
+    <bean name="FileStructure" class="org.jboss.deployers.vfs.plugins.structure.file.FileStructure">
+       <!-- Unless specified the default list of suffixes is -service.xml, -beans.xml, -ds.xml, -aop.xml -->
+       <constructor>
+          <parameter>
+             <set elementClass="java.lang.String">
+                <value>-service.xml</value>
+                <value>-beans.xml</value>
+                <value>-ds.xml</value>
+                <value>-aop.xml</value>
+             </set>
+          </parameter>
+       </constructor>
+    </bean>
+
+   <!-- AOP -->
    <bean name="AOPXMLMetaDataParserDeployer" class="org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer">
       <constructor>
          <parameter>org.jboss.aop.microcontainer.beans.metadata.AOPDeployment</parameter>
@@ -118,4 +167,27 @@
       <property name="aspectManager"><inject bean="AspectManager" property="aspectManager"/></property>
    </bean>
 
+   <!-- Classloading -->
+   <bean name="ClassLoadingMetaDataParser" class="org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer">
+      <constructor>
+         <parameter>org.jboss.classloading.spi.metadata.ClassLoadingMetaData</parameter>
+      </constructor>
+      <property name="name">jboss-classloading.xml</property>
+      <property name="buildManagedObject">true</property>
+   </bean>
+   <bean name="ClassLoadingDefaultDeployer" class="org.jboss.deployers.plugins.classloading.ClassLoadingDefaultDeployer">
+      <property name="defaultMetaData">
+         <classloading xmlns="urn:jboss:classloading:1.0" export-all="NON_EMPTY" import-all="true"/>
+      </property>
+   </bean>
+   <bean name="InMemoryClassesDeployer" class="org.jboss.deployers.vfs.plugins.classloader.InMemoryClassesDeployer"/>
+   <bean name="ClassLoaderClassPathDeployer" class="org.jboss.deployers.vfs.plugins.classloader.VFSClassLoaderClassPathDeployer"/>
+   <bean name="ClassLoaderDescribeDeployer" class="org.jboss.deployers.vfs.plugins.classloader.VFSClassLoaderDescribeDeployer">
+      <property name="classLoading"><inject bean="ClassLoading"/></property>
+   </bean>
+   <bean name="ClassLoaderDeployer" class="org.jboss.deployers.plugins.classloading.AbstractLevelClassLoaderSystemDeployer">
+      <property name="classLoading"><inject bean="ClassLoading"/></property>
+      <property name="system"><inject bean="ClassLoaderSystem"/></property>
+   </bean>
+
 </deployment>

Added: projects/jboss-jca/trunk/standalone/src/main/resources/deployment/naming-jboss-beans.xml
===================================================================
--- projects/jboss-jca/trunk/standalone/src/main/resources/deployment/naming-jboss-beans.xml	                        (rev 0)
+++ projects/jboss-jca/trunk/standalone/src/main/resources/deployment/naming-jboss-beans.xml	2009-04-27 16:25:16 UTC (rev 87877)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+    JBoss JCA
+-->
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+  <!-- Naming -->
+  <bean name="NamingServer" class="org.jnp.server.SingletonNamingServer"/>
+
+  <!-- java:comp -->
+  <bean name="JavaCompInitializer" class="org.jboss.jca.standalone.hack.JavaCompInitializer">
+    <depends>NamingServer</depends>
+  </bean>
+
+</deployment>

Added: projects/jboss-jca/trunk/standalone/src/main/resources/deployment/transaction-jboss-beans.xml
===================================================================
--- projects/jboss-jca/trunk/standalone/src/main/resources/deployment/transaction-jboss-beans.xml	                        (rev 0)
+++ projects/jboss-jca/trunk/standalone/src/main/resources/deployment/transaction-jboss-beans.xml	2009-04-27 16:25:16 UTC (rev 87877)
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+    JBoss JCA
+-->
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+  <!-- JMX -->
+  <bean name="JMX" class="org.jboss.jca.standalone.hack.JMX"/>
+
+  <!-- Transaction manager -->
+  <bean name="TransactionManager" class="com.arjuna.ats.jbossatx.jta.TransactionManagerService">
+<!--    <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss:service=TransactionManager", exposedInterface=com.arjuna.ats.jbossatx.jta.TransactionManagerServiceMBean.class, registerDirectly=true)</annotation> -->
+    <property name="transactionTimeout">300</property>
+    <property name="objectStoreDir">tx-object-store</property>
+    <property name="mbeanServer"><inject bean="JMX" property="mbeanServer"/></property>
+    <property name="transactionStatusManagerInetAddress">localhost</property>
+    <property name="transactionStatusManagerPort">4713</property>
+    <property name="recoveryInetAddress">localhost</property>
+    <property name="recoveryPort">4712</property>
+    <property name="socketProcessIdPort">0</property>    
+
+    <depends>JMX</depends>
+    <depends>NamingServer</depends>
+  </bean>
+
+</deployment>

Added: projects/jboss-jca/trunk/standalone/src/main/resources/jndi.properties
===================================================================
--- projects/jboss-jca/trunk/standalone/src/main/resources/jndi.properties	                        (rev 0)
+++ projects/jboss-jca/trunk/standalone/src/main/resources/jndi.properties	2009-04-27 16:25:16 UTC (rev 87877)
@@ -0,0 +1,2 @@
+java.naming.factory.initial=org.jnp.interfaces.LocalOnlyContextFactory
+java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces




More information about the jboss-cvs-commits mailing list