You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by ek...@apache.org on 2005/09/24 17:28:57 UTC

svn commit: r291314 - in /beehive/branches/v1/final/system-controls: src/ejb/org/apache/beehive/controls/system/ejb/ src/ejb/org/apache/beehive/controls/system/ejb/internal/ test/ejb/ test/ejb/src/ test/ejb/src/org/ test/ejb/src/org/apache/ test/ejb/sr...

Author: ekoneil
Date: Sat Sep 24 08:28:50 2005
New Revision: 291314

URL: http://svn.apache.org/viewcvs?rev=291314&view=rev
Log:
Add fix for BEEHIVE-953.  This ensures that the ejb-ref and ejb-local-ref elements added to web.xml and ejb-jar.xml DD files are in the correct order relative the elements that should follow them.

This is a patch from Chad Schoettger.  Changes from the patch include:

- handling the web.xml case -- web.xml files have two additional elements that can follow the j2ee:jndiEnvironmentRefsGroup that are "message-destination" and "locale-encoding-mapping-list"
- tests to ensure that the web.xml and ejb-jar.xml cases put the ejb-ref and ejb-local-ref elements in the right place in eight cases.  Unfortunately, the result of these tests needs to be manually vefiried, but it's better than nothing.  And, they confirm that this changes should work for various DD editing cases.
- refactored the EJBControlAssembler so that the descriptor editing code can be tested without having to mock the ControlAssemblyContext.  Two classes are added -- EJBJarDescriptorHandler and WebDescriptorHandler which accept a document, EJBInfo, and ejb link name and then edit the document.  The EJBControlAssembler still writes this file back to disk.  The DomUtils also moved down into the system/ejb/internal package.

BB: self
Test: Beehive DRT pass / EJB control tests manually verified


Added:
    beehive/branches/v1/final/system-controls/src/ejb/org/apache/beehive/controls/system/ejb/internal/
    beehive/branches/v1/final/system-controls/src/ejb/org/apache/beehive/controls/system/ejb/internal/DomUtils.java   (contents, props changed)
      - copied, changed from r291300, beehive/branches/v1/final/system-controls/src/ejb/org/apache/beehive/controls/system/ejb/DomUtils.java
    beehive/branches/v1/final/system-controls/src/ejb/org/apache/beehive/controls/system/ejb/internal/EJBJarDescriptorHandler.java   (with props)
    beehive/branches/v1/final/system-controls/src/ejb/org/apache/beehive/controls/system/ejb/internal/WebDescriptorHandler.java   (with props)
    beehive/branches/v1/final/system-controls/test/ejb/
    beehive/branches/v1/final/system-controls/test/ejb/build.xml   (with props)
    beehive/branches/v1/final/system-controls/test/ejb/src/
    beehive/branches/v1/final/system-controls/test/ejb/src/org/
    beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/
    beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/
    beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/
    beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/
    beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/
    beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/
    beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/EJBAssemblerTest.java   (with props)
    beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/cases/
    beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/cases/ejb-jar-afterelements.xml   (with props)
    beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/cases/ejb-jar.xml   (with props)
    beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/cases/web-afterelements.xml   (with props)
    beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/cases/web.xml   (with props)
    beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/local/
    beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/local/LocalEjbControl.java   (with props)
    beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/local/LocalSessionBean.java   (with props)
    beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/local/LocalSessionBeanHome.java   (with props)
    beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/local/LocalSessionBeanRemote.java   (with props)
    beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/remote/
    beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/remote/RemoteEjbControl.java   (with props)
    beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/remote/RemoteSessionBeanHome.java   (with props)
    beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/remote/RemoteSessionBeanRemote.java   (with props)
Removed:
    beehive/branches/v1/final/system-controls/src/ejb/org/apache/beehive/controls/system/ejb/DomUtils.java
Modified:
    beehive/branches/v1/final/system-controls/src/ejb/org/apache/beehive/controls/system/ejb/EJBControlAssembler.java

Modified: beehive/branches/v1/final/system-controls/src/ejb/org/apache/beehive/controls/system/ejb/EJBControlAssembler.java
URL: http://svn.apache.org/viewcvs/beehive/branches/v1/final/system-controls/src/ejb/org/apache/beehive/controls/system/ejb/EJBControlAssembler.java?rev=291314&r1=291313&r2=291314&view=diff
==============================================================================
--- beehive/branches/v1/final/system-controls/src/ejb/org/apache/beehive/controls/system/ejb/EJBControlAssembler.java (original)
+++ beehive/branches/v1/final/system-controls/src/ejb/org/apache/beehive/controls/system/ejb/EJBControlAssembler.java Sat Sep 24 08:28:50 2005
@@ -22,7 +22,6 @@
 import java.io.FileNotFoundException;
 import java.io.FileOutputStream;
 import java.io.IOException;
-import java.util.List;
 
 import javax.xml.parsers.DocumentBuilder;
 import javax.xml.parsers.DocumentBuilderFactory;
@@ -38,8 +37,9 @@
 import org.apache.beehive.controls.api.assembly.ControlAssembler;
 import org.apache.beehive.controls.api.assembly.ControlAssemblyContext;
 import org.apache.beehive.controls.api.assembly.ControlAssemblyException;
+import org.apache.beehive.controls.system.ejb.internal.EJBJarDescriptorHandler;
+import org.apache.beehive.controls.system.ejb.internal.WebDescriptorHandler;
 import org.w3c.dom.Document;
-import org.w3c.dom.Element;
 import org.w3c.dom.DocumentType;
 import org.xml.sax.SAXException;
 
@@ -120,23 +120,8 @@
             ejbJarStream.close();
             ejbJarStream = null;
 
-
-            Element ejbJarType = ejbDoc.getDocumentElement();
-            Element entBeansType = DomUtils.getChildElementByName(ejbJarType, "enterprise-beans");
-
-            // TODO: support Entity & other bean types
-            List sessionArray = DomUtils.getChildElementsByName(entBeansType, "session");
-            for ( Object e : sessionArray )
-            {
-                Element sessionBean = (Element)e;
-
-                if (ei._isLocal) {
-                	insertEJBLocalRefInEJBJar(sessionBean, ei, ejbLinkValue, ejbDoc);
-                }
-                else {
-                	insertEJBRefInEJBJar(sessionBean, ei, ejbLinkValue, ejbDoc);
-                }
-            }
+            EJBJarDescriptorHandler ejbHandler = EJBJarDescriptorHandler.getInstance();
+            ejbHandler.assemble(ejbDoc, ei, ejbLinkValue);
 
             // overwrite existing ejb-jar.xml file with new document
             writeXML(ejbDoc, ejbJarFile);
@@ -171,88 +156,6 @@
         }
     }
 
-    protected void insertEJBRefInEJBJar(Element sessionBean, EJBInfo ei, String ejbLinkValue, Document ejbDoc)
-    {
-        System.err.println("EJBControlAssembler.insertEJBRefInEJBJar() called");
-        System.err.println("ejbLinkValue =" + ejbLinkValue);
-        List ejbRefArray = DomUtils.getChildElementsByName(sessionBean, "ejb-ref");
-        String insertedEjbRefName = ei._refName;
-
-        for (int j = ejbRefArray.size() - 1; j >= 0; j--) {
-            Element ejbRef = (Element) ejbRefArray.get(j);
-            String ejbRefName = DomUtils.getChildElementText(ejbRef, "ejb-ref-name");
-            if (insertedEjbRefName.equals(ejbRefName)) {
-                sessionBean.removeChild(ejbRef);
-                break;
-            }
-        }
-
-        // insert a new <ejb-ref> entry and fill in the values
-        Element insertedEjbRef = ejbDoc.createElement("ejb-ref");
-        sessionBean.insertBefore(insertedEjbRef, null);
-
-        Element ejbRefName = ejbDoc.createElement("ejb-ref-name");
-        ejbRefName.setTextContent(insertedEjbRefName);
-        insertedEjbRef.appendChild(ejbRefName);
-
-        Element ejbRefType = ejbDoc.createElement("ejb-ref-type");
-        ejbRefType.setTextContent(ei._beanType);
-        insertedEjbRef.appendChild(ejbRefType);
-
-        Element homeType = ejbDoc.createElement("home");
-        homeType.setTextContent(ei._homeInterface.getName());
-        insertedEjbRef.appendChild(homeType);
-
-        Element remoteType = ejbDoc.createElement("remote");
-        remoteType.setTextContent(ei._beanInterface.getName());
-        insertedEjbRef.appendChild(remoteType);
-
-        Element ejbLink = ejbDoc.createElement("ejb-link");
-        ejbLink.setTextContent(ejbLinkValue);
-        insertedEjbRef.appendChild(ejbLink);
-    }
-
-    protected void insertEJBLocalRefInEJBJar(Element sessionBean, EJBInfo ei, String ejbLinkValue, Document ejbDoc)
-    {
-        System.err.println("EJBControlAssembler.insertEJBLocalRefInEJBJar() called");
-        System.err.println("ejbLinkValue =" + ejbLinkValue);
-        List ejbLocalRefArray = DomUtils.getChildElementsByName(sessionBean, "ejb-local-ref");
-        String insertedEjbRefName = ei._refName;
-
-        for (int j = ejbLocalRefArray.size() - 1; j >= 0; j--) {
-            Element ejbLocalRef = (Element) ejbLocalRefArray.get(j);
-            String ejbRefName = DomUtils.getChildElementText(ejbLocalRef, "ejb-ref-name");
-            if (insertedEjbRefName.equals(ejbRefName)) {
-                sessionBean.removeChild(ejbLocalRef);
-                break;
-            }
-        }
-
-        // insert a new <ejb-local-ref> entry and fill in the values
-        Element insertedEjbLocalRef = ejbDoc.createElement("ejb-local-ref");
-        sessionBean.insertBefore(insertedEjbLocalRef, null);
-
-        Element ejbRefName = ejbDoc.createElement("ejb-ref-name");
-        ejbRefName.setTextContent(insertedEjbRefName);
-        insertedEjbLocalRef.appendChild(ejbRefName);
-
-        Element ejbRefType = ejbDoc.createElement("ejb-ref-type");
-        ejbRefType.setTextContent(ei._beanType);
-        insertedEjbLocalRef.appendChild(ejbRefType);
-
-        Element homeType = ejbDoc.createElement("local-home");
-        homeType.setTextContent(ei._homeInterface.getName());
-        insertedEjbLocalRef.appendChild(homeType);
-
-        Element localType = ejbDoc.createElement("local");
-        localType.setTextContent(ei._beanInterface.getName());
-        insertedEjbLocalRef.appendChild(localType);
-
-        Element ejbLink = ejbDoc.createElement("ejb-link");
-        ejbLink.setTextContent(ejbLinkValue);
-        insertedEjbLocalRef.appendChild(ejbLink);
-    }
-
     protected void updateWebApp( ControlAssemblyContext.WebAppModule webAppCcc,
                                  EJBInfo ei, String ejbLinkValue )
             throws ControlAssemblyException
@@ -286,12 +189,8 @@
                 webXmlStream.close();
                 webXmlStream = null;
 
-                Element webAppType = webAppDoc.getDocumentElement();
-
-                if (ei._isLocal)
-                	insertEJBLocalRefInWebApp(webAppType, ei, ejbLinkValue, webAppDoc);
-                else
-                	insertEJBRefInWebApp(webAppType, ei, ejbLinkValue, webAppDoc);
+                WebDescriptorHandler webHandler = WebDescriptorHandler.getInstance();
+                webHandler.assemble(webAppDoc, ei, ejbLinkValue);
 
                 // overwrite existing web.xml file with new document
                 writeXML(webAppDoc, webXmlFile);
@@ -326,89 +225,6 @@
             }
 
         }
-
-    protected void insertEJBRefInWebApp(Element webAppType, EJBInfo ei, String ejbLinkValue, Document webAppDoc) {
-        System.err.println("EJBControlAssembler.insertEJBRefInWebApp() called");
-        System.err.println("ejbLinkValue =" + ejbLinkValue);
-
-        List ejbRefArray = DomUtils.getChildElementsByName(webAppType, "ejb-ref");
-
-        String insertedEjbRefName = ei._refName;
-        for (int j = ejbRefArray.size() - 1; j >= 0; j--) {
-            Element ejbRef = (Element) ejbRefArray.get(j);
-            String ejbRefName = DomUtils.getChildElementText(ejbRef, "ejb-ref-name");
-            if (insertedEjbRefName.equals(ejbRefName)) {
-                webAppType.removeChild(ejbRef);
-                break;
-            }
-        }
-
-        // insert a new <ejb-ref> entry and fill in the values
-        Element insertedEjbRef = webAppDoc.createElement("ejb-ref");
-        webAppType.insertBefore(insertedEjbRef, null);
-
-        Element ejbRefName = webAppDoc.createElement("ejb-ref-name");
-        ejbRefName.setTextContent(insertedEjbRefName);
-        insertedEjbRef.appendChild(ejbRefName);
-
-        Element ejbRefType = webAppDoc.createElement("ejb-ref-type");
-        ejbRefType.setTextContent(ei._beanType);
-        insertedEjbRef.appendChild(ejbRefType);
-
-        Element homeType = webAppDoc.createElement("home");
-        homeType.setTextContent(ei._homeInterface.getName());
-        insertedEjbRef.appendChild(homeType);
-
-        Element remoteType = webAppDoc.createElement("remote");
-        remoteType.setTextContent(ei._beanInterface.getName());
-        insertedEjbRef.appendChild(remoteType);
-
-        Element ejbLink = webAppDoc.createElement("ejb-link");
-        ejbLink.setTextContent(ejbLinkValue);
-        insertedEjbRef.appendChild(ejbLink);
-    }
-
-    protected void insertEJBLocalRefInWebApp(Element webAppType, EJBInfo ei, String ejbLinkValue, Document webAppDoc)
-    {
-        System.err.println("EJBControlAssembler.insertEJBLocalRefInWebApp() called");
-        System.err.println("ejbLinkValue =" + ejbLinkValue);
-
-        List ejbLocalRefArray = DomUtils.getChildElementsByName(webAppType, "ejb-local-ref");
-        String insertedEjbRefName = ei._refName;
-
-        for (int j = ejbLocalRefArray.size() - 1; j >= 0; j--) {
-            Element ejbLocalRef = (Element) ejbLocalRefArray.get(j);
-            String ejbRefName = DomUtils.getChildElementText(ejbLocalRef, "ejb-ref-name");
-            if (insertedEjbRefName.equals(ejbRefName)) {
-                webAppType.removeChild(ejbLocalRef);
-                break;
-            }
-        }
-
-        // insert a new <ejb-local-ref> entry and fill in the values
-        Element insertedEjbLocalRef = webAppDoc.createElement("ejb-local-ref");
-        webAppType.insertBefore(insertedEjbLocalRef, null);
-
-        Element ejbRefName = webAppDoc.createElement("ejb-ref-name");
-        ejbRefName.setTextContent(insertedEjbRefName);
-        insertedEjbLocalRef.appendChild(ejbRefName);
-
-        Element ejbRefType = webAppDoc.createElement("ejb-ref-type");
-        ejbRefType.setTextContent(ei._beanType);
-        insertedEjbLocalRef.appendChild(ejbRefType);
-
-        Element homeType = webAppDoc.createElement("local-home");
-        homeType.setTextContent(ei._homeInterface.getName());
-        insertedEjbLocalRef.appendChild(homeType);
-
-        Element localType = webAppDoc.createElement("local");
-        localType.setTextContent(ei._beanInterface.getName());
-        insertedEjbLocalRef.appendChild(localType);
-
-        Element ejbLink = webAppDoc.createElement("ejb-link");
-        ejbLink.setTextContent(ejbLinkValue);
-        insertedEjbLocalRef.appendChild(ejbLink);
-    }
 
     private void writeXML(Document doc, File outputFile)
     {

Copied: beehive/branches/v1/final/system-controls/src/ejb/org/apache/beehive/controls/system/ejb/internal/DomUtils.java (from r291300, beehive/branches/v1/final/system-controls/src/ejb/org/apache/beehive/controls/system/ejb/DomUtils.java)
URL: http://svn.apache.org/viewcvs/beehive/branches/v1/final/system-controls/src/ejb/org/apache/beehive/controls/system/ejb/internal/DomUtils.java?p2=beehive/branches/v1/final/system-controls/src/ejb/org/apache/beehive/controls/system/ejb/internal/DomUtils.java&p1=beehive/branches/v1/final/system-controls/src/ejb/org/apache/beehive/controls/system/ejb/DomUtils.java&r1=291300&r2=291314&rev=291314&view=diff
==============================================================================
--- beehive/branches/v1/final/system-controls/src/ejb/org/apache/beehive/controls/system/ejb/DomUtils.java (original)
+++ beehive/branches/v1/final/system-controls/src/ejb/org/apache/beehive/controls/system/ejb/internal/DomUtils.java Sat Sep 24 08:28:50 2005
@@ -15,7 +15,7 @@
  *
  * $Header:$
  */
-package org.apache.beehive.controls.system.ejb;
+package org.apache.beehive.controls.system.ejb.internal;
 
 import java.util.ArrayList;
 import java.util.List;

Propchange: beehive/branches/v1/final/system-controls/src/ejb/org/apache/beehive/controls/system/ejb/internal/DomUtils.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/branches/v1/final/system-controls/src/ejb/org/apache/beehive/controls/system/ejb/internal/EJBJarDescriptorHandler.java
URL: http://svn.apache.org/viewcvs/beehive/branches/v1/final/system-controls/src/ejb/org/apache/beehive/controls/system/ejb/internal/EJBJarDescriptorHandler.java?rev=291314&view=auto
==============================================================================
--- beehive/branches/v1/final/system-controls/src/ejb/org/apache/beehive/controls/system/ejb/internal/EJBJarDescriptorHandler.java (added)
+++ beehive/branches/v1/final/system-controls/src/ejb/org/apache/beehive/controls/system/ejb/internal/EJBJarDescriptorHandler.java Sat Sep 24 08:28:50 2005
@@ -0,0 +1,189 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ $Header:$
+ */
+package org.apache.beehive.controls.system.ejb.internal;
+
+import java.util.List;
+
+import org.apache.beehive.controls.system.ejb.EJBInfo;
+import org.w3c.dom.Element;
+import org.w3c.dom.Document;
+import org.w3c.dom.Node;
+
+/**
+ *
+ */
+public class EJBJarDescriptorHandler {
+
+    public static EJBJarDescriptorHandler getInstance() {
+        return new EJBJarDescriptorHandler();
+    }
+
+    private EJBJarDescriptorHandler() {}
+
+    public void assemble(Document document, EJBInfo ejbInfo, String ejbLinkValue) {
+        Element ejbJarType = document.getDocumentElement();
+        Element entBeansType = DomUtils.getChildElementByName(ejbJarType, "enterprise-beans");
+
+        // TODO: support Entity & other bean types
+        List sessionArray = DomUtils.getChildElementsByName(entBeansType, "session");
+        for ( Object e : sessionArray )
+        {
+            Element sessionBean = (Element)e;
+
+            if (ejbInfo._isLocal) {
+                insertEJBLocalRefInEJBJar(sessionBean, ejbInfo, ejbLinkValue, document);
+            }
+            else {
+                insertEJBRefInEJBJar(sessionBean, ejbInfo, ejbLinkValue, document);
+            }
+        }
+    }
+
+    private void insertEJBRefInEJBJar(Element sessionBean, EJBInfo ei, String ejbLinkValue, Document ejbDoc)
+    {
+        System.err.println("EJBControlAssembler.insertEJBRefInEJBJar() called");
+        System.err.println("ejbLinkValue =" + ejbLinkValue);
+        List ejbRefArray = DomUtils.getChildElementsByName(sessionBean, "ejb-ref");
+        String insertedEjbRefName = ei._refName;
+
+        Node nextSibling = null;
+        for (int j = ejbRefArray.size() - 1; j >= 0; j--) {
+            Element ejbRef = (Element) ejbRefArray.get(j);
+            String ejbRefName = DomUtils.getChildElementText(ejbRef, "ejb-ref-name");
+            if (insertedEjbRefName.equals(ejbRefName)) {
+                nextSibling = ejbRef.getNextSibling();
+                sessionBean.removeChild(ejbRef);
+                break;
+            }
+        }
+
+        // insert a new <ejb-ref> entry and fill in the values
+        Element insertedEjbRef = ejbDoc.createElement("ejb-ref");
+        if (nextSibling != null) {
+            sessionBean.insertBefore(insertedEjbRef, nextSibling);
+        } else {
+            sessionBean.insertBefore(insertedEjbRef, findEjbRefInsertPoint(sessionBean));
+        }
+
+        Element ejbRefName = ejbDoc.createElement("ejb-ref-name");
+        ejbRefName.setTextContent(insertedEjbRefName);
+        insertedEjbRef.appendChild(ejbRefName);
+
+        Element ejbRefType = ejbDoc.createElement("ejb-ref-type");
+        ejbRefType.setTextContent(ei._beanType);
+        insertedEjbRef.appendChild(ejbRefType);
+
+        Element homeType = ejbDoc.createElement("home");
+        homeType.setTextContent(ei._homeInterface.getName());
+        insertedEjbRef.appendChild(homeType);
+
+        Element remoteType = ejbDoc.createElement("remote");
+        remoteType.setTextContent(ei._beanInterface.getName());
+        insertedEjbRef.appendChild(remoteType);
+
+        Element ejbLink = ejbDoc.createElement("ejb-link");
+        ejbLink.setTextContent(ejbLinkValue);
+        insertedEjbRef.appendChild(ejbLink);
+    }
+
+    private void insertEJBLocalRefInEJBJar(Element sessionBean, EJBInfo ei, String ejbLinkValue, Document ejbDoc)
+    {
+        System.err.println("EJBControlAssembler.insertEJBLocalRefInEJBJar() called");
+        System.err.println("ejbLinkValue =" + ejbLinkValue);
+        List ejbLocalRefArray = DomUtils.getChildElementsByName(sessionBean, "ejb-local-ref");
+        String insertedEjbRefName = ei._refName;
+
+        Node nextSibling = null;
+        for (int j = ejbLocalRefArray.size() - 1; j >= 0; j--) {
+            Element ejbLocalRef = (Element) ejbLocalRefArray.get(j);
+            String ejbRefName = DomUtils.getChildElementText(ejbLocalRef, "ejb-ref-name");
+            if (insertedEjbRefName.equals(ejbRefName)) {
+                nextSibling = ejbLocalRef.getNextSibling();
+                sessionBean.removeChild(ejbLocalRef);
+                break;
+            }
+        }
+
+        // insert a new <ejb-local-ref> entry and fill in the values
+        Element insertedEjbLocalRef = ejbDoc.createElement("ejb-local-ref");
+        if (nextSibling != null) {
+            sessionBean.insertBefore(insertedEjbLocalRef, nextSibling);
+        }
+        else {
+            sessionBean.insertBefore(insertedEjbLocalRef, findEjbLocalRefInsertPoint(sessionBean));
+        }
+
+        Element ejbRefName = ejbDoc.createElement("ejb-ref-name");
+        ejbRefName.setTextContent(insertedEjbRefName);
+        insertedEjbLocalRef.appendChild(ejbRefName);
+
+        Element ejbRefType = ejbDoc.createElement("ejb-ref-type");
+        ejbRefType.setTextContent(ei._beanType);
+        insertedEjbLocalRef.appendChild(ejbRefType);
+
+        Element homeType = ejbDoc.createElement("local-home");
+        homeType.setTextContent(ei._homeInterface.getName());
+        insertedEjbLocalRef.appendChild(homeType);
+
+        Element localType = ejbDoc.createElement("local");
+        localType.setTextContent(ei._beanInterface.getName());
+        insertedEjbLocalRef.appendChild(localType);
+
+        Element ejbLink = ejbDoc.createElement("ejb-link");
+        ejbLink.setTextContent(ejbLinkValue);
+        insertedEjbLocalRef.appendChild(ejbLink);
+    }
+
+    private Node findEjbRefInsertPoint(Element parent) {
+
+        Element e =  DomUtils.getChildElementByName(parent, "ejb-local-ref");
+        if (e != null)
+           return e;
+
+        return findEjbLocalRefInsertPoint(parent);
+    }
+
+    private Node findEjbLocalRefInsertPoint(Element parent) {
+
+        Element e = DomUtils.getChildElementByName(parent, "service-ref");
+        if (e != null)
+            return e;
+
+        e = DomUtils.getChildElementByName(parent, "resource-ref");
+        if (e != null)
+            return e;
+
+        e = DomUtils.getChildElementByName(parent, "resource-env-ref");
+        if (e != null)
+            return e;
+
+        e = DomUtils.getChildElementByName(parent, "message-destination-ref");
+        if(e != null)
+            return e;
+
+        e = DomUtils.getChildElementByName(parent, "security-role-ref");
+        if (e != null)
+            return e;
+
+        e = DomUtils.getChildElementByName(parent, "security-identity");
+        if (e != null)
+            return e;
+
+        return null;
+    }
+}

Propchange: beehive/branches/v1/final/system-controls/src/ejb/org/apache/beehive/controls/system/ejb/internal/EJBJarDescriptorHandler.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/branches/v1/final/system-controls/src/ejb/org/apache/beehive/controls/system/ejb/internal/WebDescriptorHandler.java
URL: http://svn.apache.org/viewcvs/beehive/branches/v1/final/system-controls/src/ejb/org/apache/beehive/controls/system/ejb/internal/WebDescriptorHandler.java?rev=291314&view=auto
==============================================================================
--- beehive/branches/v1/final/system-controls/src/ejb/org/apache/beehive/controls/system/ejb/internal/WebDescriptorHandler.java (added)
+++ beehive/branches/v1/final/system-controls/src/ejb/org/apache/beehive/controls/system/ejb/internal/WebDescriptorHandler.java Sat Sep 24 08:28:50 2005
@@ -0,0 +1,174 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ $Header:$
+ */
+package org.apache.beehive.controls.system.ejb.internal;
+
+import java.util.List;
+
+import org.apache.beehive.controls.system.ejb.EJBInfo;
+import org.w3c.dom.Element;
+import org.w3c.dom.Document;
+import org.w3c.dom.Node;
+
+/**
+ *
+ */
+public class WebDescriptorHandler {
+
+    public static WebDescriptorHandler getInstance() {
+        return new WebDescriptorHandler();
+    }
+
+    private WebDescriptorHandler() {}
+
+    public void assemble(Document document, EJBInfo ejbInfo, String ejbLinkValue) {
+        Element webAppType = document.getDocumentElement();
+
+        if (ejbInfo._isLocal)
+            insertEJBLocalRefInWebApp(webAppType, ejbInfo, ejbLinkValue, document);
+        else
+            insertEJBRefInWebApp(webAppType, ejbInfo, ejbLinkValue, document);
+    }
+
+    private void insertEJBRefInWebApp(Element webAppType, EJBInfo ei, String ejbLinkValue, Document webAppDoc) {
+        System.err.println("EJBControlAssembler.insertEJBRefInWebApp() called");
+        System.err.println("ejbLinkValue =" + ejbLinkValue);
+
+        List ejbRefArray = DomUtils.getChildElementsByName(webAppType, "ejb-ref");
+
+        String insertedEjbRefName = ei._refName;
+        Node nextSibling = null;
+        for (int j = ejbRefArray.size() - 1; j >= 0; j--) {
+            Element ejbRef = (Element) ejbRefArray.get(j);
+            String ejbRefName = DomUtils.getChildElementText(ejbRef, "ejb-ref-name");
+            if (insertedEjbRefName.equals(ejbRefName)) {
+                nextSibling = ejbRef.getNextSibling();
+                webAppType.removeChild(ejbRef);
+                break;
+            }
+        }
+
+        // insert a new <ejb-ref> entry and fill in the values
+        Element insertedEjbRef = webAppDoc.createElement("ejb-ref");
+        if (nextSibling != null)
+            webAppType.insertBefore(insertedEjbRef, nextSibling);
+        else webAppType.insertBefore(insertedEjbRef, findEjbRefInsertPoint(webAppType));
+
+        Element ejbRefName = webAppDoc.createElement("ejb-ref-name");
+        ejbRefName.setTextContent(insertedEjbRefName);
+        insertedEjbRef.appendChild(ejbRefName);
+
+        Element ejbRefType = webAppDoc.createElement("ejb-ref-type");
+        ejbRefType.setTextContent(ei._beanType);
+        insertedEjbRef.appendChild(ejbRefType);
+
+        Element homeType = webAppDoc.createElement("home");
+        homeType.setTextContent(ei._homeInterface.getName());
+        insertedEjbRef.appendChild(homeType);
+
+        Element remoteType = webAppDoc.createElement("remote");
+        remoteType.setTextContent(ei._beanInterface.getName());
+        insertedEjbRef.appendChild(remoteType);
+
+        Element ejbLink = webAppDoc.createElement("ejb-link");
+        ejbLink.setTextContent(ejbLinkValue);
+        insertedEjbRef.appendChild(ejbLink);
+    }
+
+    private void insertEJBLocalRefInWebApp(Element webAppType, EJBInfo ei, String ejbLinkValue, Document webAppDoc)
+    {
+        System.err.println("EJBControlAssembler.insertEJBLocalRefInWebApp() called");
+        System.err.println("ejbLinkValue =" + ejbLinkValue);
+
+        List ejbLocalRefArray = DomUtils.getChildElementsByName(webAppType, "ejb-local-ref");
+        String insertedEjbRefName = ei._refName;
+
+        Node nextSibling = null;
+        for (int j = ejbLocalRefArray.size() - 1; j >= 0; j--) {
+            Element ejbLocalRef = (Element) ejbLocalRefArray.get(j);
+            String ejbRefName = DomUtils.getChildElementText(ejbLocalRef, "ejb-ref-name");
+            if (insertedEjbRefName.equals(ejbRefName)) {
+                nextSibling = ejbLocalRef.getNextSibling();
+                webAppType.removeChild(ejbLocalRef);
+                break;
+            }
+        }
+
+        // insert a new <ejb-local-ref> entry and fill in the values
+        Element insertedEjbLocalRef = webAppDoc.createElement("ejb-local-ref");
+        if (nextSibling != null)
+            webAppType.insertBefore(insertedEjbLocalRef, nextSibling);
+        else webAppType.insertBefore(insertedEjbLocalRef, findEjbLocalRefInsertPoint(webAppType));
+
+        Element ejbRefName = webAppDoc.createElement("ejb-ref-name");
+        ejbRefName.setTextContent(insertedEjbRefName);
+        insertedEjbLocalRef.appendChild(ejbRefName);
+
+        Element ejbRefType = webAppDoc.createElement("ejb-ref-type");
+        ejbRefType.setTextContent(ei._beanType);
+        insertedEjbLocalRef.appendChild(ejbRefType);
+
+        Element homeType = webAppDoc.createElement("local-home");
+        homeType.setTextContent(ei._homeInterface.getName());
+        insertedEjbLocalRef.appendChild(homeType);
+
+        Element localType = webAppDoc.createElement("local");
+        localType.setTextContent(ei._beanInterface.getName());
+        insertedEjbLocalRef.appendChild(localType);
+
+        Element ejbLink = webAppDoc.createElement("ejb-link");
+        ejbLink.setTextContent(ejbLinkValue);
+        insertedEjbLocalRef.appendChild(ejbLink);
+    }
+
+    private Node findEjbRefInsertPoint(Element parent) {
+        Element e =  DomUtils.getChildElementByName(parent, "ejb-local-ref");
+        if (e != null)
+           return e;
+
+        return findEjbLocalRefInsertPoint(parent);
+    }
+
+    private Node findEjbLocalRefInsertPoint(Element parent) {
+
+        Element e = DomUtils.getChildElementByName(parent, "service-ref");
+        if (e != null)
+            return e;
+
+        e = DomUtils.getChildElementByName(parent, "resource-ref");
+        if (e != null)
+            return e;
+
+        e = DomUtils.getChildElementByName(parent, "resource-env-ref");
+        if (e != null)
+            return e;
+
+        e = DomUtils.getChildElementByName(parent, "message-destination-ref");
+        if(e != null)
+            return e;
+
+        e = DomUtils.getChildElementByName(parent, "message-destination");
+        if (e != null)
+            return e;
+
+        e = DomUtils.getChildElementByName(parent, "locale-encoding-mapping-list");
+        if (e != null)
+            return e;
+
+        return null;
+    }
+}

Propchange: beehive/branches/v1/final/system-controls/src/ejb/org/apache/beehive/controls/system/ejb/internal/WebDescriptorHandler.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/branches/v1/final/system-controls/test/ejb/build.xml
URL: http://svn.apache.org/viewcvs/beehive/branches/v1/final/system-controls/test/ejb/build.xml?rev=291314&view=auto
==============================================================================
--- beehive/branches/v1/final/system-controls/test/ejb/build.xml (added)
+++ beehive/branches/v1/final/system-controls/test/ejb/build.xml Sat Sep 24 08:28:50 2005
@@ -0,0 +1,70 @@
+<?xml version="1.0" ?>
+
+<!--
+   Copyright 2004 The Apache Software Foundation.
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+   $Header:$
+-->
+<project name="Beehive/EJBControlDRT" default="test" basedir=".">
+
+    <property environment="os"/>
+    <import file="../../systemcontrols-imports.xml"/>
+
+    <path id="test.classpath">
+        <path refid="controls.dependency.path"/>
+        <path refid="ejb.dependency.path"/>
+        <path refid="velocity.dependency.path"/>
+        <path refid="tools.dependency.path"/>
+        <pathelement location="${beehive.home}/system-controls/build/jars/beehive-ejb-control.jar"/>
+    </path>
+
+    <target name="clean">
+        <delete dir="build"/>
+    </target>
+
+    <target name="build">
+        <mkdir dir="build/classes"/>
+        <mkdir dir="build/testresults"/>
+
+        <javac srcdir="src" destdir="build/classes" classpathref="test.classpath" debug="true"/>
+
+        <copy todir="build/classes">
+            <fileset dir="src" includes="**/*.xml"/>
+        </copy>
+    </target>
+
+    <target name="run">
+        <junit printsummary="true"
+               fork="true"
+               haltonfailure="fail"
+               haltonerror="fail"
+               showOutput="true">
+            <sysproperty key="build.dir" value="build/"/>
+            <classpath>
+                <path refid="test.classpath"/>
+                <pathelement location="build/classes"/>
+            </classpath>
+            <formatter type="plain"/>
+            <batchtest fork="yes" todir="build/testresults">
+                <fileset dir="build/classes">
+                    <include name="org/apache/beehive/test/controls/system/ejb/*Test.class"/>
+                </fileset>
+            </batchtest>
+        </junit>
+    </target>
+
+    <target name="test" depends="clean,build,run"/>
+
+</project>
\ No newline at end of file

Propchange: beehive/branches/v1/final/system-controls/test/ejb/build.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/EJBAssemblerTest.java
URL: http://svn.apache.org/viewcvs/beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/EJBAssemblerTest.java?rev=291314&view=auto
==============================================================================
--- beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/EJBAssemblerTest.java (added)
+++ beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/EJBAssemblerTest.java Sat Sep 24 08:28:50 2005
@@ -0,0 +1,164 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ $Header:$
+ */
+package org.apache.beehive.test.controls.system.ejb;
+
+import java.io.InputStream;
+import java.io.File;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.Transformer;
+import javax.xml.transform.OutputKeys;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.dom.DOMSource;
+
+import junit.framework.TestCase;
+import org.apache.beehive.controls.system.ejb.EJBInfo;
+import org.apache.beehive.controls.system.ejb.internal.EJBJarDescriptorHandler;
+import org.apache.beehive.controls.system.ejb.internal.WebDescriptorHandler;
+import org.apache.beehive.test.controls.system.ejb.remote.RemoteEjbControl;
+import org.apache.beehive.test.controls.system.ejb.local.LocalEjbControl;
+import org.w3c.dom.Document;
+
+/**
+ *
+ */
+public class EJBAssemblerTest
+    extends TestCase {
+
+    private static final String RESOURCE_ROOT = "org/apache/beehive/test/controls/system/ejb/cases";
+    private static final int EJB = 0;
+    private static final int WEB = 1;
+
+    public void testWebLocal()
+        throws Exception {
+        assemble(LocalEjbControl.class, "web.xml", "local-web.xml", WEB);
+    }
+
+    public void testWebLocalAfterElements()
+        throws Exception {
+        assemble(LocalEjbControl.class, "web-afterelements.xml", "local-web-afterelements.xml", WEB);
+    }
+
+    public void testWebRemote()
+        throws Exception {
+        assemble(RemoteEjbControl.class, "web.xml", "remote-web.xml", WEB);
+    }
+
+    public void testWebRemoteAfterElememnts()
+        throws Exception {
+        assemble(RemoteEjbControl.class, "web-afterelements.xml", "remote-web-afterelements.xml", WEB);
+    }
+
+    public void testSimpleRef()
+        throws Exception {
+        assemble(RemoteEjbControl.class, "ejb-jar.xml", "remote-ejb-jar.xml", EJB);
+    }
+
+    public void testAfterElements()
+        throws Exception {
+        assemble(RemoteEjbControl.class, "ejb-jar-afterelements.xml", "remote-ejb-jar-afterelements.xml", EJB);
+    }
+
+    public void testLocalSimpleRef()
+        throws Exception {
+        assemble(LocalEjbControl.class, "ejb-jar.xml", "local-ejb-jar.xml", EJB);
+    }
+
+    public void testLocalAfterElements()
+        throws Exception {
+        assemble(LocalEjbControl.class, "ejb-jar-afterelements.xml", "local-ejb-jar-afterelements.xml", EJB);
+    }
+
+    private void assemble(Class ejbControl, String fileName, String outputFileName, int type)
+        throws Exception {
+
+        InputStream is = null;
+        Document doc = null;
+        try {
+            String resourcePath = RESOURCE_ROOT + "/" + fileName;
+            is = this.getClass().getClassLoader().getResourceAsStream(resourcePath);
+
+            DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
+            dbf.setValidating(false);
+            DocumentBuilder db = dbf.newDocumentBuilder();
+            doc = db.parse(is);
+
+            /* create EJBInfo */
+            String ejbLinkValue = "mockEjbLink";
+            EJBInfo ejbInfo = new EJBInfo(ejbControl);
+
+            /* edit document */
+            if(type == EJB) {
+                EJBJarDescriptorHandler ddHandler = EJBJarDescriptorHandler.getInstance();
+                ddHandler.assemble(doc, ejbInfo, ejbLinkValue);
+            }
+            else {
+                WebDescriptorHandler ddHandler = WebDescriptorHandler.getInstance();
+                ddHandler.assemble(doc, ejbInfo, ejbLinkValue);
+            }
+        }
+        finally {
+            if(is != null) try{is.close();}catch(IOException e) {}
+        }
+
+        /* write document */
+        writeXML(doc, new File(System.getProperty("build.dir") + File.separator + outputFileName));
+    }
+
+    private void writeXML(Document doc, File outputFile)
+        throws Exception {
+        TransformerFactory transformerFactory = TransformerFactory.newInstance();
+
+        try {
+            transformerFactory.setAttribute("indent-number", 2);
+        } catch (IllegalArgumentException e) {
+            throw e;
+        }
+
+        Transformer transformer;
+        FileOutputStream fos = null;
+        try {
+            transformer= transformerFactory.newTransformer();
+
+            try {
+                transformer.setOutputProperty(OutputKeys.INDENT, "yes");
+                if(doc.getDoctype() != null) {
+                    transformer.setOutputProperty(OutputKeys.DOCTYPE_PUBLIC, doc.getDoctype().getPublicId());
+                    transformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, doc.getDoctype().getSystemId());
+                }
+            } catch (IllegalArgumentException e) {
+                throw e;
+            }
+
+            DOMSource source = new DOMSource(doc);
+            fos = new FileOutputStream(outputFile);
+            StreamResult stream = new StreamResult(fos);
+            transformer.transform(source, stream);
+
+        } catch (Exception e) {
+            throw e;
+        }
+        finally {
+            if (fos != null) try {fos.close();} catch (IOException ignore) {}
+        }
+    }
+
+}

Propchange: beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/EJBAssemblerTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/cases/ejb-jar-afterelements.xml
URL: http://svn.apache.org/viewcvs/beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/cases/ejb-jar-afterelements.xml?rev=291314&view=auto
==============================================================================
--- beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/cases/ejb-jar-afterelements.xml (added)
+++ beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/cases/ejb-jar-afterelements.xml Sat Sep 24 08:28:50 2005
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ** This file was automatically generated by EJBGen 9.0
+  ** Build: 20040513-1205
+-->
+<ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.1"
+         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
+    <enterprise-beans>
+        <session>
+            <ejb-name>LocalLinkTest</ejb-name>
+            <local-home>ejb.annotations.ejblink.jws.LocalLinkTest_WLStatefulWrapperLocalHome</local-home>
+            <local>weblogic.wsee.jws.container.JWSSessionBeanLocal</local>
+            <service-endpoint>ejb.annotations.ejblink.jws.LocalLinkTestPortType</service-endpoint>
+            <ejb-class>ejb.annotations.ejblink.jws.LocalLinkTest_WLStatefulWrapper</ejb-class>
+            <session-type>Stateless</session-type>
+            <transaction-type>Container</transaction-type>
+
+            <security-role-ref>
+                <role-name>FooSecurityRoleRef</role-name>
+            </security-role-ref>
+        </session>
+    </enterprise-beans>
+    <assembly-descriptor>
+        <container-transaction>
+            <method>
+                <ejb-name>LocalLinkTest</ejb-name>
+                <method-intf>ServiceEndpoint</method-intf>
+                <method-name>echoLocalString</method-name>
+            </method>
+            <trans-attribute>Supports</trans-attribute>
+        </container-transaction>
+        <container-transaction>
+            <method>
+                <ejb-name>LocalLinkTest</ejb-name>
+                <method-intf>Local</method-intf>
+                <method-name>schedule</method-name>
+                <method-params>
+                    <method-param>weblogic.wsee.jws.conversation.ConversationTimeout</method-param>
+                </method-params>
+            </method>
+            <trans-attribute>Required</trans-attribute>
+        </container-transaction>
+        <container-transaction>
+            <method>
+                <ejb-name>LocalLinkTest</ejb-name>
+                <method-intf>ServiceEndpoint</method-intf>
+                <method-name>echoRemoteString</method-name>
+            </method>
+            <trans-attribute>Supports</trans-attribute>
+        </container-transaction>
+        <container-transaction>
+            <method>
+                <ejb-name>LocalLinkTest</ejb-name>
+                <method-intf>ServiceEndpoint</method-intf>
+                <method-name>echoBothString</method-name>
+            </method>
+            <trans-attribute>Supports</trans-attribute>
+        </container-transaction>
+    </assembly-descriptor>
+</ejb-jar>

Propchange: beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/cases/ejb-jar-afterelements.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/cases/ejb-jar.xml
URL: http://svn.apache.org/viewcvs/beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/cases/ejb-jar.xml?rev=291314&view=auto
==============================================================================
--- beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/cases/ejb-jar.xml (added)
+++ beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/cases/ejb-jar.xml Sat Sep 24 08:28:50 2005
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ** This file was automatically generated by EJBGen 9.0
+  ** Build: 20040513-1205
+-->
+<ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.1"
+         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
+    <enterprise-beans>
+        <session>
+            <ejb-name>LocalLinkTest</ejb-name>
+            <local-home>ejb.annotations.ejblink.jws.LocalLinkTest_WLStatefulWrapperLocalHome</local-home>
+            <local>weblogic.wsee.jws.container.JWSSessionBeanLocal</local>
+            <service-endpoint>ejb.annotations.ejblink.jws.LocalLinkTestPortType</service-endpoint>
+            <ejb-class>ejb.annotations.ejblink.jws.LocalLinkTest_WLStatefulWrapper</ejb-class>
+            <session-type>Stateless</session-type>
+            <transaction-type>Container</transaction-type>
+        </session>
+    </enterprise-beans>
+    <assembly-descriptor>
+        <container-transaction>
+            <method>
+                <ejb-name>LocalLinkTest</ejb-name>
+                <method-intf>ServiceEndpoint</method-intf>
+                <method-name>echoLocalString</method-name>
+            </method>
+            <trans-attribute>Supports</trans-attribute>
+        </container-transaction>
+        <container-transaction>
+            <method>
+                <ejb-name>LocalLinkTest</ejb-name>
+                <method-intf>Local</method-intf>
+                <method-name>schedule</method-name>
+                <method-params>
+                    <method-param>weblogic.wsee.jws.conversation.ConversationTimeout</method-param>
+                </method-params>
+            </method>
+            <trans-attribute>Required</trans-attribute>
+        </container-transaction>
+        <container-transaction>
+            <method>
+                <ejb-name>LocalLinkTest</ejb-name>
+                <method-intf>ServiceEndpoint</method-intf>
+                <method-name>echoRemoteString</method-name>
+            </method>
+            <trans-attribute>Supports</trans-attribute>
+        </container-transaction>
+        <container-transaction>
+            <method>
+                <ejb-name>LocalLinkTest</ejb-name>
+                <method-intf>ServiceEndpoint</method-intf>
+                <method-name>echoBothString</method-name>
+            </method>
+            <trans-attribute>Supports</trans-attribute>
+        </container-transaction>
+    </assembly-descriptor>
+</ejb-jar>

Propchange: beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/cases/ejb-jar.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/cases/web-afterelements.xml
URL: http://svn.apache.org/viewcvs/beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/cases/web-afterelements.xml?rev=291314&view=auto
==============================================================================
--- beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/cases/web-afterelements.xml (added)
+++ beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/cases/web-afterelements.xml Sat Sep 24 08:28:50 2005
@@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<web-app 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/web-app_2_4.xsd"
+    version="2.4">
+
+    <display-name>PageFlow Petstore Application</display-name>
+
+    <filter>
+        <filter-name>ControlFilter</filter-name>
+        <filter-class>org.apache.beehive.controls.runtime.servlet.ControlFilter</filter-class>
+    </filter>
+
+    <filter>
+        <filter-name>PageFlowJspFilter</filter-name>
+        <filter-class>org.apache.beehive.netui.pageflow.PageFlowJspFilter</filter-class>
+    </filter>
+
+    <filter-mapping>
+        <filter-name>ControlFilter</filter-name>
+        <url-pattern>*.jws</url-pattern>
+    </filter-mapping>
+
+    <filter-mapping>
+        <filter-name>PageFlowJspFilter</filter-name>
+        <url-pattern>*.jsp</url-pattern>
+        <dispatcher>FORWARD</dispatcher>
+        <dispatcher>REQUEST</dispatcher>
+        <dispatcher>INCLUDE</dispatcher>
+    </filter-mapping>
+
+    <servlet>
+        <servlet-name>AxisServlet</servlet-name>
+        <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
+    </servlet>
+
+    <!-- Standard Action Servlet Configuration (with debugging) -->
+    <servlet>
+        <servlet-name>action</servlet-name>
+        <servlet-class>org.apache.beehive.netui.pageflow.PageFlowActionServlet</servlet-class>
+        <init-param>
+            <param-name>config</param-name>
+            <param-value>/WEB-INF/classes/_pageflow/struts-config.xml</param-value>
+        </init-param>
+        <init-param>
+            <param-name>debug</param-name>
+            <param-value>2</param-value>
+        </init-param>
+        <init-param>
+            <param-name>detail</param-name>
+            <param-value>2</param-value>
+        </init-param>
+        <load-on-startup>2</load-on-startup>
+    </servlet>
+
+    <!-- Struts Action Servlet Mappings -->
+    <!-- Note that because Struts takes the *last* mapping here as the extension to add to
+         actions posted from forms, we must have *.do come after *.jpf. -->
+    <servlet-mapping>
+        <servlet-name>action</servlet-name>
+        <url-pattern>*.jpf</url-pattern>
+    </servlet-mapping>
+
+    <servlet-mapping>
+        <servlet-name>AxisServlet</servlet-name>
+        <url-pattern>*.jws</url-pattern>
+    </servlet-mapping>
+
+    <servlet-mapping>
+        <servlet-name>action</servlet-name>
+        <url-pattern>*.do</url-pattern>
+    </servlet-mapping>
+
+    <welcome-file-list>
+        <welcome-file>index.jsp</welcome-file>
+    </welcome-file-list>
+
+    <login-config>
+        <auth-method>FORM</auth-method>
+        <realm-name>default</realm-name>
+        <form-login-config>
+            <form-login-page>/auth/login.jsp</form-login-page>
+            <form-error-page>/auth/loginFail.jsp</form-error-page>
+        </form-login-config>
+    </login-config>
+
+    <security-role>
+        <description>Site customers</description>
+        <role-name>Users</role-name>
+    </security-role>
+
+    <locale-encoding-mapping-list>
+        <locale-encoding-mapping>
+            <locale>us</locale>
+            <encoding>UTF-8</encoding>
+        </locale-encoding-mapping>
+    </locale-encoding-mapping-list>
+
+</web-app>

Propchange: beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/cases/web-afterelements.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/cases/web.xml
URL: http://svn.apache.org/viewcvs/beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/cases/web.xml?rev=291314&view=auto
==============================================================================
--- beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/cases/web.xml (added)
+++ beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/cases/web.xml Sat Sep 24 08:28:50 2005
@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<web-app 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/web-app_2_4.xsd"
+    version="2.4">
+
+    <display-name>PageFlow Petstore Application</display-name>
+
+    <filter>
+        <filter-name>ControlFilter</filter-name>
+        <filter-class>org.apache.beehive.controls.runtime.servlet.ControlFilter</filter-class>
+    </filter>
+
+    <filter>
+        <filter-name>PageFlowJspFilter</filter-name>
+        <filter-class>org.apache.beehive.netui.pageflow.PageFlowJspFilter</filter-class>
+    </filter>
+
+    <filter-mapping>
+        <filter-name>ControlFilter</filter-name>
+        <url-pattern>*.jws</url-pattern>
+    </filter-mapping>
+
+    <filter-mapping>
+        <filter-name>PageFlowJspFilter</filter-name>
+        <url-pattern>*.jsp</url-pattern>
+        <dispatcher>FORWARD</dispatcher>
+        <dispatcher>REQUEST</dispatcher>
+        <dispatcher>INCLUDE</dispatcher>
+    </filter-mapping>
+
+    <servlet>
+        <servlet-name>AxisServlet</servlet-name>
+        <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
+    </servlet>
+
+    <!-- Standard Action Servlet Configuration (with debugging) -->
+    <servlet>
+        <servlet-name>action</servlet-name>
+        <servlet-class>org.apache.beehive.netui.pageflow.PageFlowActionServlet</servlet-class>
+        <init-param>
+            <param-name>config</param-name>
+            <param-value>/WEB-INF/classes/_pageflow/struts-config.xml</param-value>
+        </init-param>
+        <init-param>
+            <param-name>debug</param-name>
+            <param-value>2</param-value>
+        </init-param>
+        <init-param>
+            <param-name>detail</param-name>
+            <param-value>2</param-value>
+        </init-param>
+        <load-on-startup>2</load-on-startup>
+    </servlet>
+
+    <!-- Struts Action Servlet Mappings -->
+    <!-- Note that because Struts takes the *last* mapping here as the extension to add to
+         actions posted from forms, we must have *.do come after *.jpf. -->
+    <servlet-mapping>
+        <servlet-name>action</servlet-name>
+        <url-pattern>*.jpf</url-pattern>
+    </servlet-mapping>
+
+    <servlet-mapping>
+        <servlet-name>AxisServlet</servlet-name>
+        <url-pattern>*.jws</url-pattern>
+    </servlet-mapping>
+
+    <servlet-mapping>
+        <servlet-name>action</servlet-name>
+        <url-pattern>*.do</url-pattern>
+    </servlet-mapping>
+
+    <welcome-file-list>
+        <welcome-file>index.jsp</welcome-file>
+    </welcome-file-list>
+
+    <login-config>
+        <auth-method>FORM</auth-method>
+        <realm-name>default</realm-name>
+        <form-login-config>
+            <form-login-page>/auth/login.jsp</form-login-page>
+            <form-error-page>/auth/loginFail.jsp</form-error-page>
+        </form-login-config>
+    </login-config>
+
+    <security-role>
+        <description>Site customers</description>
+        <role-name>Users</role-name>
+    </security-role>
+
+</web-app>

Propchange: beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/cases/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/local/LocalEjbControl.java
URL: http://svn.apache.org/viewcvs/beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/local/LocalEjbControl.java?rev=291314&view=auto
==============================================================================
--- beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/local/LocalEjbControl.java (added)
+++ beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/local/LocalEjbControl.java Sat Sep 24 08:28:50 2005
@@ -0,0 +1,35 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ $Header:$
+ */
+package org.apache.beehive.test.controls.system.ejb.local;
+
+import org.apache.beehive.controls.api.bean.ControlExtension;
+import org.apache.beehive.controls.system.ejb.EJBControl;
+import org.apache.beehive.controls.system.ejb.SessionEJBControl;
+
+/**
+ * This JCX defines a reference to the Plain Stateless Session bean
+ */
+@ControlExtension
+@EJBControl.EJBHome(jndiName ="ejb.LocalSessionBeanRemote", ejbLink="ejb.MockEjbLink")
+public interface LocalEjbControl
+    extends LocalSessionBean, LocalSessionBeanHome, SessionEJBControl
+{
+    // There a no methods here, the CTRL creates a unified interface that
+    // includes the home and remote interfaces to the EJB, plus the
+    // SessionEJB control services defined by the SessionEJB control interface.
+}

Propchange: beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/local/LocalEjbControl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/local/LocalSessionBean.java
URL: http://svn.apache.org/viewcvs/beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/local/LocalSessionBean.java?rev=291314&view=auto
==============================================================================
--- beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/local/LocalSessionBean.java (added)
+++ beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/local/LocalSessionBean.java Sat Sep 24 08:28:50 2005
@@ -0,0 +1,25 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ $Header:$
+ */
+package org.apache.beehive.test.controls.system.ejb.local;
+
+/**
+ *
+ */
+public interface LocalSessionBean
+    extends javax.ejb.EJBLocalObject {
+}

Propchange: beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/local/LocalSessionBean.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/local/LocalSessionBeanHome.java
URL: http://svn.apache.org/viewcvs/beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/local/LocalSessionBeanHome.java?rev=291314&view=auto
==============================================================================
--- beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/local/LocalSessionBeanHome.java (added)
+++ beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/local/LocalSessionBeanHome.java Sat Sep 24 08:28:50 2005
@@ -0,0 +1,25 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ $Header:$
+ */
+package org.apache.beehive.test.controls.system.ejb.local;
+
+/**
+ *
+ */
+public interface LocalSessionBeanHome
+    extends javax.ejb.EJBLocalHome {
+}

Propchange: beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/local/LocalSessionBeanHome.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/local/LocalSessionBeanRemote.java
URL: http://svn.apache.org/viewcvs/beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/local/LocalSessionBeanRemote.java?rev=291314&view=auto
==============================================================================
--- beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/local/LocalSessionBeanRemote.java (added)
+++ beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/local/LocalSessionBeanRemote.java Sat Sep 24 08:28:50 2005
@@ -0,0 +1,27 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ $Header:$
+ */
+package org.apache.beehive.test.controls.system.ejb.local;
+
+import javax.ejb.EJBHome;
+
+/**
+ *
+ */
+public interface LocalSessionBeanRemote
+    extends EJBHome {
+}

Propchange: beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/local/LocalSessionBeanRemote.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/remote/RemoteEjbControl.java
URL: http://svn.apache.org/viewcvs/beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/remote/RemoteEjbControl.java?rev=291314&view=auto
==============================================================================
--- beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/remote/RemoteEjbControl.java (added)
+++ beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/remote/RemoteEjbControl.java Sat Sep 24 08:28:50 2005
@@ -0,0 +1,35 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ $Header:$
+ */
+package org.apache.beehive.test.controls.system.ejb.remote;
+
+import org.apache.beehive.controls.api.bean.ControlExtension;
+import org.apache.beehive.controls.system.ejb.EJBControl;
+import org.apache.beehive.controls.system.ejb.SessionEJBControl;
+
+/**
+ * This JCX defines a reference to the Plain Stateless Session bean
+ */
+@ControlExtension
+@EJBControl.EJBHome(jndiName ="ejb.LocalSessionBeanRemote", ejbLink="ejb.MockEjbLink")
+public interface RemoteEjbControl
+    extends RemoteSessionBeanHome, RemoteSessionBeanRemote, SessionEJBControl
+{
+    // There a no methods here, the CTRL creates a unified interface that
+    // includes the home and remote interfaces to the EJB, plus the
+    // SessionEJB control services defined by the SessionEJB control interface.
+}

Propchange: beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/remote/RemoteEjbControl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/remote/RemoteSessionBeanHome.java
URL: http://svn.apache.org/viewcvs/beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/remote/RemoteSessionBeanHome.java?rev=291314&view=auto
==============================================================================
--- beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/remote/RemoteSessionBeanHome.java (added)
+++ beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/remote/RemoteSessionBeanHome.java Sat Sep 24 08:28:50 2005
@@ -0,0 +1,25 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ $Header:$
+ */
+package org.apache.beehive.test.controls.system.ejb.remote;
+
+/**
+ *
+ */
+public interface RemoteSessionBeanHome
+    extends javax.ejb.EJBObject {
+}

Propchange: beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/remote/RemoteSessionBeanHome.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/remote/RemoteSessionBeanRemote.java
URL: http://svn.apache.org/viewcvs/beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/remote/RemoteSessionBeanRemote.java?rev=291314&view=auto
==============================================================================
--- beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/remote/RemoteSessionBeanRemote.java (added)
+++ beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/remote/RemoteSessionBeanRemote.java Sat Sep 24 08:28:50 2005
@@ -0,0 +1,27 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ $Header:$
+ */
+package org.apache.beehive.test.controls.system.ejb.remote;
+
+import javax.ejb.EJBHome;
+
+/**
+ *
+ */
+public interface RemoteSessionBeanRemote
+    extends EJBHome {
+}

Propchange: beehive/branches/v1/final/system-controls/test/ejb/src/org/apache/beehive/test/controls/system/ejb/remote/RemoteSessionBeanRemote.java
------------------------------------------------------------------------------
    svn:eol-style = native