You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2007/06/10 11:43:25 UTC

svn commit: r545861 - in /incubator/tuscany/java/sca/modules/binding-ejb: ./ src/main/java/org/apache/tuscany/binding/ src/test/java/account/ src/test/java/org/apache/geronimo/ src/test/java/org/apache/geronimo/samples/ src/test/java/org/apache/geronim...

Author: antelder
Date: Sun Jun 10 02:43:24 2007
New Revision: 545861

URL: http://svn.apache.org/viewvc?view=rev&rev=545861
Log:
Binding ejb, get test working from mvn without requireing the eclipse config

Added:
    incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/org/apache/geronimo/
    incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/org/apache/geronimo/samples/
    incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/org/apache/geronimo/samples/bank/
    incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/org/apache/geronimo/samples/bank/ejb/
    incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacade.java   (with props)
    incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacadeHome.java   (with props)
Removed:
    incubator/tuscany/java/sca/modules/binding-ejb/src/main/java/org/apache/tuscany/binding/
Modified:
    incubator/tuscany/java/sca/modules/binding-ejb/pom.xml
    incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/account/BankManagerFacade.java
    incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/account/Customer.java
    incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/account/CustomerImpl.java
    incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/org/apache/tuscany/sca/binding/ejb/tests/EJBReferenceTestCase.java

Modified: incubator/tuscany/java/sca/modules/binding-ejb/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-ejb/pom.xml?view=diff&rev=545861&r1=545860&r2=545861
==============================================================================
--- incubator/tuscany/java/sca/modules/binding-ejb/pom.xml (original)
+++ incubator/tuscany/java/sca/modules/binding-ejb/pom.xml Sun Jun 10 02:43:24 2007
@@ -74,6 +74,383 @@
             <scope>test</scope>
         </dependency>
 
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-j2ee-jacc_1.0_spec</artifactId>
+            <version>1.0</version>
+            <scope>test</scope>
+        </dependency>
+
+
+  <!-- yuk. all the exclusions are necessary as otherwise just about every geronimo
+       jar gets downloaded, and also there's a problem with one of the pom's causing
+       the build to always fail -->
+       
+        <dependency>
+            <groupId>openejb</groupId>
+            <artifactId>openejb-core</artifactId>
+            <version>2.1.1</version>
+            <scope>test</scope>
+ 
+          <exclusions>
+           <exclusion>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-connector</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-core</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-client</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-common</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-deployment</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-j2ee</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-management</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-kernel</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>activeio</groupId>
+      <artifactId>activeio</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-security</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-timer</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-transaction</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-axis</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-axis-builder</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-naming</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-system</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-util</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>org.apache.geronimo.specs</groupId>
+      <artifactId>geronimo-j2ee-deployment_1.1_spec</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>geronimo-spec</groupId>
+      <artifactId>geronimo-spec-corba</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>org.apache.geronimo.specs</groupId>
+      <artifactId>geronimo-jta_1.0.1B_spec</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>org.apache.geronimo.specs</groupId>
+      <artifactId>geronimo-ejb_2.1_spec</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>org.apache.geronimo.specs</groupId>
+      <artifactId>geronimo-servlet_2.4_spec</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>org.apache.geronimo.specs</groupId>
+      <artifactId>geronimo-j2ee-connector_1.5_spec</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>org.apache.geronimo.specs</groupId>
+      <artifactId>geronimo-j2ee-jacc_1.0_spec</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>org.apache.geronimo.specs</groupId>
+      <artifactId>geronimo-jms_1.1_spec</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>org.apache.geronimo.specs</groupId>
+      <artifactId>geronimo-j2ee-management_1.0_spec</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>org.apache.geronimo.specs</groupId>
+      <artifactId>geronimo-jaxrpc_1.1_spec</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>org.apache.geronimo.specs</groupId>
+      <artifactId>geronimo-saaj_1.1_spec</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>org.apache.geronimo.specs</groupId>
+      <artifactId>geronimo-qname_1.1_spec</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-webservices</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>tranql</groupId>
+      <artifactId>tranql</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>antlr</groupId>
+      <artifactId>antlr</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>axion</groupId>
+      <artifactId>axion</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>castor</groupId>
+      <artifactId>castor</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>oro</groupId>
+      <artifactId>oro</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>cglib</groupId>
+      <artifactId>cglib-nodep</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>commons-logging</groupId>
+      <artifactId>commons-logging</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>commons-primitives</groupId>
+      <artifactId>commons-primitives</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>concurrent</groupId>
+      <artifactId>concurrent</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>log4j</groupId>
+      <artifactId>log4j</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>mx4j</groupId>
+      <artifactId>mx4j</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>regexp</groupId>
+      <artifactId>regexp</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>xerces</groupId>
+      <artifactId>xercesImpl</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>xerces</groupId>
+      <artifactId>xmlParserAPIs</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>commons-cli</groupId>
+      <artifactId>commons-cli</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>asm</groupId>
+      <artifactId>asm</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>axis</groupId>
+      <artifactId>axis</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>xmlbeans</groupId>
+      <artifactId>xbean</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>commons-jelly</groupId>
+      <artifactId>commons-jelly-tags-velocity</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>velocity</groupId>
+      <artifactId>velocity</artifactId>
+    </exclusion>
+            </exclusions>
+        </dependency>
+
+       <dependency>
+            <groupId>geronimo</groupId>
+            <artifactId>geronimo-security</artifactId>
+            <version>1.1.1</version>
+            <scope>test</scope>
+    <exclusions>
+       <exclusion>
+      <groupId>org.apache.geronimo.specs</groupId>
+      <artifactId>geronimo-j2ee-jacc_1.0_spec</artifactId>
+    </exclusion>
+       <exclusion>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-common</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-util</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-core</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-j2ee</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-management</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-kernel</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-system</artifactId>
+    </exclusion>
+    <!-- exclusion>
+      <groupId>org.apache.geronimo.specs</groupId>
+      <artifactId>geronimo-j2ee-jacc_1.0_spec</artifactId>
+    </exclusion -->
+    <exclusion>
+      <groupId>cglib</groupId>
+      <artifactId>cglib-nodep</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>concurrent</groupId>
+      <artifactId>concurrent</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>activeio</groupId>
+      <artifactId>activeio</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>commons-logging</groupId>
+      <artifactId>commons-logging</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>mx4j</groupId>
+      <artifactId>mx4j</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>regexp</groupId>
+      <artifactId>regexp</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>hsqldb</groupId>
+      <artifactId>hsqldb</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>log4j</groupId>
+      <artifactId>log4j</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>commons-jelly</groupId>
+      <artifactId>commons-jelly-tags-velocity</artifactId>
+    </exclusion>
+    <exclusion>
+      <groupId>velocity</groupId>
+      <artifactId>velocity</artifactId>
+    </exclusion>
+    </exclusions>
+        </dependency>
+
+        <dependency>
+            <groupId>geronimo</groupId>
+            <artifactId>geronimo-common</artifactId>
+            <version>1.1.1</version>
+            <scope>test</scope>
+            <exclusions>
+                <exclusion>
+                    <groupId>commons-jelly</groupId>
+                    <artifactId>commons-jelly-tags-velocity</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>log4j</groupId>
+                    <artifactId>log4j</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>mx4j</groupId>
+                    <artifactId>mx4j</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+
+        <dependency>
+            <groupId>geronimo</groupId>
+            <artifactId>geronimo-kernel</artifactId>
+            <version>1.1.1</version>
+            <scope>test</scope>
+            <exclusions>
+                <exclusion>
+                    <groupId>log4j</groupId>
+                    <artifactId>log4j</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>org.apache.geronimo.specs</groupId>
+                    <artifactId>geronimo-qname</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>org.apache.geronimo.specs</groupId>
+                    <artifactId>geronimo-qname_1.1_spec</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>xstream</groupId>
+                    <artifactId>xstream</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>log4j</groupId>
+                    <artifactId>log4j</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>commons-jelly</groupId>
+                    <artifactId>commons-jelly-tags-velocity</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>xpp3</groupId>
+                    <artifactId>xpp3</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>mx4j</groupId>
+                    <artifactId>mx4j</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>org.apache.geronimo.specs</groupId>
+                    <artifactId>geronimo-j2ee-management_1.0_spec</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>org.apache.geronimo.specs</groupId>
+                    <artifactId>geronimo-j2ee-deployment_1.1_spec</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+
     </dependencies>
 
 </project>

Modified: incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/account/BankManagerFacade.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/account/BankManagerFacade.java?view=diff&rev=545861&r1=545860&r2=545861
==============================================================================
--- incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/account/BankManagerFacade.java (original)
+++ incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/account/BankManagerFacade.java Sun Jun 10 02:43:24 2007
@@ -1,7 +1,20 @@
-/**
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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
  * 
- * (C) Copyright IBM Corp. 2004, 2006  All Rights Reserved
+ *   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.    
  */
 package account;
 

Modified: incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/account/Customer.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/account/Customer.java?view=diff&rev=545861&r1=545860&r2=545861
==============================================================================
--- incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/account/Customer.java (original)
+++ incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/account/Customer.java Sun Jun 10 02:43:24 2007
@@ -1,7 +1,20 @@
-/**
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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
  * 
- * (C) Copyright IBM Corp. 2004, 2006  All Rights Reserved
+ *   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.    
  */
 package account;
 

Modified: incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/account/CustomerImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/account/CustomerImpl.java?view=diff&rev=545861&r1=545860&r2=545861
==============================================================================
--- incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/account/CustomerImpl.java (original)
+++ incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/account/CustomerImpl.java Sun Jun 10 02:43:24 2007
@@ -1,7 +1,20 @@
-/**
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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
  * 
- * (C) Copyright IBM Corp. 2004, 2006  All Rights Reserved
+ *   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.    
  */
 package account;
 

Added: incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacade.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacade.java?view=auto&rev=545861
==============================================================================
--- incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacade.java (added)
+++ incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacade.java Sun Jun 10 02:43:24 2007
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.    
+ */
+
+/*
+ * Generated by XDoclet - Do not edit!
+ */
+package org.apache.geronimo.samples.bank.ejb;
+
+// copied from the Geronimo Bank sample: http://cwiki.apache.org/GMOxDOC11/ejb-sample-application.html#EJBsampleapplication-overview
+
+/**
+ * Remote interface for BankManagerFacadeBean.
+ * @xdoclet-generated at ${TODAY}
+ * @copyright The XDoclet Team
+ * @author XDoclet
+ * @version ${version}
+ */
+public interface BankManagerFacade
+   extends javax.ejb.EJBObject
+{
+
+   public void changeAccountBalance( java.lang.String accountNo,java.lang.Double balance )
+      throws java.rmi.RemoteException;
+
+   public java.lang.Double getAccountBalance( java.lang.String accountNo )
+      throws java.rmi.RemoteException;
+
+}

Propchange: incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacade.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacade.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacadeHome.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacadeHome.java?view=auto&rev=545861
==============================================================================
--- incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacadeHome.java (added)
+++ incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacadeHome.java Sun Jun 10 02:43:24 2007
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.    
+ */
+
+/*
+ * Generated by XDoclet - Do not edit!
+ */
+
+// copied from the Geronimo Bank sample: http://cwiki.apache.org/GMOxDOC11/ejb-sample-application.html#EJBsampleapplication-overview
+
+package org.apache.geronimo.samples.bank.ejb;
+
+/**
+ * Home interface for BankManagerFacadeBean.
+ * @xdoclet-generated at ${TODAY}
+ * @copyright The XDoclet Team
+ * @author XDoclet
+ * @version ${version}
+ */
+public interface BankManagerFacadeHome
+   extends javax.ejb.EJBHome
+{
+   public static final String COMP_NAME="java:comp/env/ejb/BankManagerFacadeBean";
+   public static final String JNDI_NAME="org.apache.geronimo.samples.bank.ejb.BankManagerFacadeBean";
+
+   public org.apache.geronimo.samples.bank.ejb.BankManagerFacade create()
+      throws javax.ejb.CreateException,java.rmi.RemoteException;
+
+}

Propchange: incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacadeHome.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacadeHome.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/org/apache/tuscany/sca/binding/ejb/tests/EJBReferenceTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/org/apache/tuscany/sca/binding/ejb/tests/EJBReferenceTestCase.java?view=diff&rev=545861&r1=545860&r2=545861
==============================================================================
--- incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/org/apache/tuscany/sca/binding/ejb/tests/EJBReferenceTestCase.java (original)
+++ incubator/tuscany/java/sca/modules/binding-ejb/src/test/java/org/apache/tuscany/sca/binding/ejb/tests/EJBReferenceTestCase.java Sun Jun 10 02:43:24 2007
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.    
+ */
 package org.apache.tuscany.sca.binding.ejb.tests;
 
 import junit.framework.TestCase;
@@ -7,13 +25,16 @@
 import account.Customer;
 
 /**
- * This shows how to test the Calculator service component.
+ * Invokes the component which calls the reference using the EJB binding 
  */
 public class EJBReferenceTestCase extends TestCase {
 
     private SCADomain scaDomain;
 
     protected void setUp() throws Exception {
+        System.setProperty("managed", "false");
+        System.setProperty("java.naming.factory.initial", "org.openejb.client.RemoteInitialContextFactory");
+        System.setProperty("java.naming.provider.url", "localhost:4201");
         scaDomain = SCADomain.newInstance("account/account.composite");
     }
 
@@ -23,9 +44,10 @@
 
     public void testCalculator() throws Exception {
         Customer customer = scaDomain.getService(Customer.class, "CustomerComponent");
-        String accountNo = "1234567890"; // This is one of the customer numbers in bank application running on
-                                            // Geronimo
+        // This is one of the customer numbers in bank application running on Geronimo
+        String accountNo = "1234567890"; 
         Double balance = customer.depositAmount(accountNo, new Double(100));
         System.out.println("Balance amount for account " + accountNo + " is $" + balance);
+        assertEquals(1105.35, balance);
     }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org