Return-Path: Delivered-To: apmail-ws-tuscany-commits-archive@locus.apache.org Received: (qmail 32551 invoked from network); 10 Jun 2007 09:43:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jun 2007 09:43:47 -0000 Received: (qmail 62513 invoked by uid 500); 10 Jun 2007 09:43:51 -0000 Delivered-To: apmail-ws-tuscany-commits-archive@ws.apache.org Received: (qmail 62488 invoked by uid 500); 10 Jun 2007 09:43:50 -0000 Mailing-List: contact tuscany-commits-help@ws.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: tuscany-dev@ws.apache.org Delivered-To: mailing list tuscany-commits@ws.apache.org Received: (qmail 62479 invoked by uid 99); 10 Jun 2007 09:43:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Jun 2007 02:43:50 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Jun 2007 02:43:46 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 13AC71A981A; Sun, 10 Jun 2007 02:43:26 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: 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... Date: Sun, 10 Jun 2007 09:43:25 -0000 To: tuscany-commits@ws.apache.org From: antelder@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070610094326.13AC71A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 @@ test + + org.apache.geronimo.specs + geronimo-j2ee-jacc_1.0_spec + 1.0 + test + + + + + + + openejb + openejb-core + 2.1.1 + test + + + + geronimo + geronimo-connector + + + geronimo + geronimo-core + + + geronimo + geronimo-client + + + geronimo + geronimo-common + + + geronimo + geronimo-deployment + + + geronimo + geronimo-j2ee + + + geronimo + geronimo-management + + + geronimo + geronimo-kernel + + + activeio + activeio + + + geronimo + geronimo-security + + + geronimo + geronimo-timer + + + geronimo + geronimo-transaction + + + geronimo + geronimo-axis + + + geronimo + geronimo-axis-builder + + + geronimo + geronimo-naming + + + geronimo + geronimo-system + + + geronimo + geronimo-util + + + org.apache.geronimo.specs + geronimo-j2ee-deployment_1.1_spec + + + geronimo-spec + geronimo-spec-corba + + + org.apache.geronimo.specs + geronimo-jta_1.0.1B_spec + + + org.apache.geronimo.specs + geronimo-ejb_2.1_spec + + + org.apache.geronimo.specs + geronimo-servlet_2.4_spec + + + org.apache.geronimo.specs + geronimo-j2ee-connector_1.5_spec + + + org.apache.geronimo.specs + geronimo-j2ee-jacc_1.0_spec + + + org.apache.geronimo.specs + geronimo-jms_1.1_spec + + + org.apache.geronimo.specs + geronimo-j2ee-management_1.0_spec + + + org.apache.geronimo.specs + geronimo-jaxrpc_1.1_spec + + + org.apache.geronimo.specs + geronimo-saaj_1.1_spec + + + org.apache.geronimo.specs + geronimo-qname_1.1_spec + + + geronimo + geronimo-webservices + + + tranql + tranql + + + antlr + antlr + + + axion + axion + + + castor + castor + + + oro + oro + + + cglib + cglib-nodep + + + commons-logging + commons-logging + + + commons-primitives + commons-primitives + + + concurrent + concurrent + + + log4j + log4j + + + mx4j + mx4j + + + regexp + regexp + + + xerces + xercesImpl + + + xerces + xmlParserAPIs + + + commons-cli + commons-cli + + + asm + asm + + + axis + axis + + + xmlbeans + xbean + + + commons-jelly + commons-jelly-tags-velocity + + + velocity + velocity + + + + + + geronimo + geronimo-security + 1.1.1 + test + + + org.apache.geronimo.specs + geronimo-j2ee-jacc_1.0_spec + + + geronimo + geronimo-common + + + geronimo + geronimo-util + + + geronimo + geronimo-core + + + geronimo + geronimo-j2ee + + + geronimo + geronimo-management + + + geronimo + geronimo-kernel + + + geronimo + geronimo-system + + + + cglib + cglib-nodep + + + concurrent + concurrent + + + activeio + activeio + + + commons-logging + commons-logging + + + mx4j + mx4j + + + regexp + regexp + + + hsqldb + hsqldb + + + log4j + log4j + + + commons-jelly + commons-jelly-tags-velocity + + + velocity + velocity + + + + + + geronimo + geronimo-common + 1.1.1 + test + + + commons-jelly + commons-jelly-tags-velocity + + + log4j + log4j + + + mx4j + mx4j + + + + + + geronimo + geronimo-kernel + 1.1.1 + test + + + log4j + log4j + + + org.apache.geronimo.specs + geronimo-qname + + + org.apache.geronimo.specs + geronimo-qname_1.1_spec + + + xstream + xstream + + + log4j + log4j + + + commons-jelly + commons-jelly-tags-velocity + + + xpp3 + xpp3 + + + mx4j + mx4j + + + org.apache.geronimo.specs + geronimo-j2ee-management_1.0_spec + + + org.apache.geronimo.specs + geronimo-j2ee-deployment_1.1_spec + + + + 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