geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlaskow...@apache.org
Subject svn commit: r390662 [1/2] - in /geronimo/trunk/applications: ./ demo/ magicGball/ magicGball/magicGball-client/ magicGball/magicGball-client/src/java/org/acme/ magicGball/magicGball-ear/ magicGball/magicGball-ejb/ magicGball/magicGball-ejb/src/java/org...
Date Sat, 01 Apr 2006 12:46:06 GMT
Author: jlaskowski
Date: Sat Apr  1 04:46:02 2006
New Revision: 390662

URL: http://svn.apache.org/viewcvs?rev=390662&view=rev
Log:
Enable M2 to be able to run in applications. Previously, there were some bizzare changes that duplicated content of several files.

Added:
    geronimo/trunk/applications/remote-deploy-lib/pom.xml   (with props)
Modified:
    geronimo/trunk/applications/demo/pom.xml
    geronimo/trunk/applications/magicGball/magicGball-client/pom.xml
    geronimo/trunk/applications/magicGball/magicGball-client/src/java/org/acme/MagicGBall.java
    geronimo/trunk/applications/magicGball/magicGball-client/src/java/org/acme/MagicGBallCallbackHandler.java
    geronimo/trunk/applications/magicGball/magicGball-client/src/java/org/acme/MagicGBallClient.java
    geronimo/trunk/applications/magicGball/magicGball-client/src/java/org/acme/MagicGBallHome.java
    geronimo/trunk/applications/magicGball/magicGball-client/src/java/org/acme/MagicGBallJaxRpcClient.java
    geronimo/trunk/applications/magicGball/magicGball-ear/pom.xml
    geronimo/trunk/applications/magicGball/magicGball-ejb/pom.xml
    geronimo/trunk/applications/magicGball/magicGball-ejb/src/java/org/acme/MagicGBall.java
    geronimo/trunk/applications/magicGball/magicGball-ejb/src/java/org/acme/MagicGBallBean.java
    geronimo/trunk/applications/magicGball/magicGball-ejb/src/java/org/acme/MagicGBallCallbackHandler.java
    geronimo/trunk/applications/magicGball/magicGball-ejb/src/java/org/acme/MagicGBallEndpoint.java
    geronimo/trunk/applications/magicGball/magicGball-ejb/src/java/org/acme/MagicGBallHome.java
    geronimo/trunk/applications/magicGball/magicGball-ejb/src/java/org/acme/MagicGBallLocal.java
    geronimo/trunk/applications/magicGball/magicGball-ejb/src/java/org/acme/MagicGBallLocalHome.java
    geronimo/trunk/applications/magicGball/magicGball-web/pom.xml
    geronimo/trunk/applications/magicGball/magicGball-web/src/java/org/acme/MagicGBallServlet.java
    geronimo/trunk/applications/magicGball/pom.xml
    geronimo/trunk/applications/pom.xml
    geronimo/trunk/applications/remote-deploy-lib/LICENSE.txt   (props changed)
    geronimo/trunk/applications/remote-deploy-lib/NOTICE.txt   (props changed)
    geronimo/trunk/applications/remote-deploy-lib/maven.xml   (props changed)
    geronimo/trunk/applications/remote-deploy-lib/project.properties   (props changed)
    geronimo/trunk/applications/remote-deploy-lib/project.xml   (props changed)
    geronimo/trunk/applications/remote-deploy-lib/src/java/org/apache/geronimo/deployment/remote/RemoteDeployGBean.java   (props changed)
    geronimo/trunk/applications/remote-deploy-lib/src/java/org/apache/geronimo/deployment/remote/RemoteDeployToken.java   (props changed)

Modified: geronimo/trunk/applications/demo/pom.xml
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/demo/pom.xml?rev=390662&r1=390661&r2=390662&view=diff
==============================================================================
--- geronimo/trunk/applications/demo/pom.xml (original)
+++ geronimo/trunk/applications/demo/pom.xml Sat Apr  1 04:46:02 2006
@@ -1,39 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  
-    Copyright 2006 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.
--->
-
-<!-- $Rev$ $Date$ -->
-
-<project>
-  <parent>
-    <groupId>org.apache.geronimo.applications</groupId>
-    <artifactId>applications-parent</artifactId>
-    <version>1.2-SNAPSHOT</version>
-  </parent>
-
-  <modelVersion>4.0.0</modelVersion>
-  <version>${geronimoVersion}</version>
-  <artifactId>demo</artifactId>
-  <packaging>war</packaging>
-  <name>Geronimo Demo Application</name>
-  <description>Geronimo Demo Application</description>
-
-</project>
-<?xml version="1.0" encoding="UTF-8"?>
 <!--
   
     Copyright 2006 The Apache Software Foundation

Modified: geronimo/trunk/applications/magicGball/magicGball-client/pom.xml
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/magicGball/magicGball-client/pom.xml?rev=390662&r1=390661&r2=390662&view=diff
==============================================================================
--- geronimo/trunk/applications/magicGball/magicGball-client/pom.xml (original)
+++ geronimo/trunk/applications/magicGball/magicGball-client/pom.xml Sat Apr  1 04:46:02 2006
@@ -24,13 +24,11 @@
     <version>1.2-SNAPSHOT</version>
     <artifactId>magicGball-parent</artifactId>
   </parent>
-
   <modelVersion>4.0.0</modelVersion>
   <artifactId>magicGball-client</artifactId>
   <version>1.2-SNAPSHOT</version>
   <packaging>jar</packaging>
   <name>Geronimo :: The Magic G Ball Sample :: Client</name>
-
   <dependencies>
     <dependency>
       <groupId>org.apache.geronimo.applications.magicGball</groupId>
@@ -38,7 +36,6 @@
       <version>1.2-SNAPSHOT</version>
     </dependency>
   </dependencies>
-
   <build>
     <plugins>
       <plugin>
@@ -48,63 +45,5 @@
         </configuration>
       </plugin>
     </plugins>
-
-  
   </build>
-
-</project>
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  
-    Copyright 2006 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.
--->
-
-<!-- $Rev$ $Date$ -->
-
-<project>
-  <parent>
-    <groupId>org.apache.geronimo.applications.magicGball</groupId>
-    <version>1.2-SNAPSHOT</version>
-    <artifactId>magicGball-parent</artifactId>
-  </parent>
-
-  <modelVersion>4.0.0</modelVersion>
-  <artifactId>magicGball-client</artifactId>
-  <version>1.2-SNAPSHOT</version>
-  <packaging>jar</packaging>
-  <name>Geronimo :: The Magic G Ball Sample :: Client</name>
-
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.geronimo.applications.magicGball</groupId>
-      <artifactId>magicGball-ejb</artifactId>
-      <version>1.2-SNAPSHOT</version>
-    </dependency>
-  </dependencies>
-
-  <build>
-    <plugins>
-      <plugin>
-        <artifactId>maven-ejb-plugin</artifactId>
-        <configuration>
-           <generateClient>true</generateClient>
-        </configuration>
-      </plugin>
-    </plugins>
-
-  
-  </build>
-
 </project>

Modified: geronimo/trunk/applications/magicGball/magicGball-client/src/java/org/acme/MagicGBall.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/magicGball/magicGball-client/src/java/org/acme/MagicGBall.java?rev=390662&r1=390661&r2=390662&view=diff
==============================================================================
--- geronimo/trunk/applications/magicGball/magicGball-client/src/java/org/acme/MagicGBall.java (original)
+++ geronimo/trunk/applications/magicGball/magicGball-client/src/java/org/acme/MagicGBall.java Sat Apr  1 04:46:02 2006
@@ -24,133 +24,3 @@
 public interface MagicGBall extends javax.ejb.EJBObject {
 	public String ask(String question) throws java.rmi.RemoteException;
 }
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
-/**
- * Remote interface for Enterprise Bean: MagicGBall
- *
- * @version $Rev$ $Date$
- */
-public interface MagicGBall extends javax.ejb.EJBObject {
-	public String ask(String question) throws java.rmi.RemoteException;
-}
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
-/**
- * Remote interface for Enterprise Bean: MagicGBall
- *
- * @version $Rev$ $Date$
- */
-public interface MagicGBall extends javax.ejb.EJBObject {
-	public String ask(String question) throws java.rmi.RemoteException;
-}
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
-/**
- * Remote interface for Enterprise Bean: MagicGBall
- *
- * @version $Rev$ $Date$
- */
-public interface MagicGBall extends javax.ejb.EJBObject {
-	public String ask(String question) throws java.rmi.RemoteException;
-}
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
-/**
- * Remote interface for Enterprise Bean: MagicGBall
- *
- * @version $Rev$ $Date$
- */
-public interface MagicGBall extends javax.ejb.EJBObject {
-	public String ask(String question) throws java.rmi.RemoteException;
-}
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
-/**
- * Remote interface for Enterprise Bean: MagicGBall
- *
- * @version $Rev$ $Date$
- */
-public interface MagicGBall extends javax.ejb.EJBObject {
-	public String ask(String question) throws java.rmi.RemoteException;
-}

Modified: geronimo/trunk/applications/magicGball/magicGball-client/src/java/org/acme/MagicGBallCallbackHandler.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/magicGball/magicGball-client/src/java/org/acme/MagicGBallCallbackHandler.java?rev=390662&r1=390661&r2=390662&view=diff
==============================================================================
--- geronimo/trunk/applications/magicGball/magicGball-client/src/java/org/acme/MagicGBallCallbackHandler.java (original)
+++ geronimo/trunk/applications/magicGball/magicGball-client/src/java/org/acme/MagicGBallCallbackHandler.java Sat Apr  1 04:46:02 2006
@@ -42,223 +42,3 @@
         }
     }
 }
-/**
- *
- * Copyright 2005 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.
- */
-package org.acme;
-
-import java.io.IOException;
-import javax.security.auth.callback.CallbackHandler;
-import javax.security.auth.callback.Callback;
-import javax.security.auth.callback.UnsupportedCallbackException;
-import javax.security.auth.callback.NameCallback;
-import javax.security.auth.callback.PasswordCallback;
-
-/**
- * @version $Rev$ $Date$
- */
-public class MagicGBallCallbackHandler implements CallbackHandler {
-
-    public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
-        for (int i = 0; i < callbacks.length; i++) {
-            Callback callback = callbacks[i];
-            if (callback instanceof NameCallback) {
-                ((NameCallback)callback).setName("system");
-            } else if (callback instanceof PasswordCallback) {
-                ((PasswordCallback)callback).setPassword("manager".toCharArray());
-            } else {
-                throw new UnsupportedCallbackException(callback);
-            }
-            System.out.println("CallbackHandler set user=system, password=manager");
-        }
-    }
-}
-/**
- *
- * Copyright 2005 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.
- */
-package org.acme;
-
-import java.io.IOException;
-import javax.security.auth.callback.CallbackHandler;
-import javax.security.auth.callback.Callback;
-import javax.security.auth.callback.UnsupportedCallbackException;
-import javax.security.auth.callback.NameCallback;
-import javax.security.auth.callback.PasswordCallback;
-
-/**
- * @version $Rev$ $Date$
- */
-public class MagicGBallCallbackHandler implements CallbackHandler {
-
-    public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
-        for (int i = 0; i < callbacks.length; i++) {
-            Callback callback = callbacks[i];
-            if (callback instanceof NameCallback) {
-                ((NameCallback)callback).setName("system");
-            } else if (callback instanceof PasswordCallback) {
-                ((PasswordCallback)callback).setPassword("manager".toCharArray());
-            } else {
-                throw new UnsupportedCallbackException(callback);
-            }
-            System.out.println("CallbackHandler set user=system, password=manager");
-        }
-    }
-}
-/**
- *
- * Copyright 2005 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.
- */
-package org.acme;
-
-import java.io.IOException;
-import javax.security.auth.callback.CallbackHandler;
-import javax.security.auth.callback.Callback;
-import javax.security.auth.callback.UnsupportedCallbackException;
-import javax.security.auth.callback.NameCallback;
-import javax.security.auth.callback.PasswordCallback;
-
-/**
- * @version $Rev$ $Date$
- */
-public class MagicGBallCallbackHandler implements CallbackHandler {
-
-    public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
-        for (int i = 0; i < callbacks.length; i++) {
-            Callback callback = callbacks[i];
-            if (callback instanceof NameCallback) {
-                ((NameCallback)callback).setName("system");
-            } else if (callback instanceof PasswordCallback) {
-                ((PasswordCallback)callback).setPassword("manager".toCharArray());
-            } else {
-                throw new UnsupportedCallbackException(callback);
-            }
-            System.out.println("CallbackHandler set user=system, password=manager");
-        }
-    }
-}
-/**
- *
- * Copyright 2005 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.
- */
-package org.acme;
-
-import java.io.IOException;
-import javax.security.auth.callback.CallbackHandler;
-import javax.security.auth.callback.Callback;
-import javax.security.auth.callback.UnsupportedCallbackException;
-import javax.security.auth.callback.NameCallback;
-import javax.security.auth.callback.PasswordCallback;
-
-/**
- * @version $Rev$ $Date$
- */
-public class MagicGBallCallbackHandler implements CallbackHandler {
-
-    public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
-        for (int i = 0; i < callbacks.length; i++) {
-            Callback callback = callbacks[i];
-            if (callback instanceof NameCallback) {
-                ((NameCallback)callback).setName("system");
-            } else if (callback instanceof PasswordCallback) {
-                ((PasswordCallback)callback).setPassword("manager".toCharArray());
-            } else {
-                throw new UnsupportedCallbackException(callback);
-            }
-            System.out.println("CallbackHandler set user=system, password=manager");
-        }
-    }
-}
-/**
- *
- * Copyright 2005 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.
- */
-package org.acme;
-
-import java.io.IOException;
-import javax.security.auth.callback.CallbackHandler;
-import javax.security.auth.callback.Callback;
-import javax.security.auth.callback.UnsupportedCallbackException;
-import javax.security.auth.callback.NameCallback;
-import javax.security.auth.callback.PasswordCallback;
-
-/**
- * @version $Rev$ $Date$
- */
-public class MagicGBallCallbackHandler implements CallbackHandler {
-
-    public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
-        for (int i = 0; i < callbacks.length; i++) {
-            Callback callback = callbacks[i];
-            if (callback instanceof NameCallback) {
-                ((NameCallback)callback).setName("system");
-            } else if (callback instanceof PasswordCallback) {
-                ((PasswordCallback)callback).setPassword("manager".toCharArray());
-            } else {
-                throw new UnsupportedCallbackException(callback);
-            }
-            System.out.println("CallbackHandler set user=system, password=manager");
-        }
-    }
-}

Modified: geronimo/trunk/applications/magicGball/magicGball-client/src/java/org/acme/MagicGBallClient.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/magicGball/magicGball-client/src/java/org/acme/MagicGBallClient.java?rev=390662&r1=390661&r2=390662&view=diff
==============================================================================
--- geronimo/trunk/applications/magicGball/magicGball-client/src/java/org/acme/MagicGBallClient.java (original)
+++ geronimo/trunk/applications/magicGball/magicGball-client/src/java/org/acme/MagicGBallClient.java Sat Apr  1 04:46:02 2006
@@ -50,263 +50,3 @@
 	}
 
 }
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
-
-import javax.naming.Context;
-import javax.naming.InitialContext;
-import javax.rmi.PortableRemoteObject;
-
-/**
- * Run this app client from the command line and pass in a question as an argument.
- *
- * @version $Rev$ $Date$
- */
-public class MagicGBallClient {
-    public static void main(String[] args) throws Exception{
-        if (args.length < 1){
-            System.err.println("Please ask a question");
-            System.exit(-1);
-        }
-
-        MagicGBallClient magicGBallClient = new MagicGBallClient();
-        for (int i = 0; i < args.length; i++) {
-            magicGBallClient.ask(args[i]);
-        }
-    }
-
-	public void ask(String question) throws Exception {
-        Context ctx = new InitialContext();
-        Object o = ctx.lookup("java:comp/env/mGball");
-        MagicGBallHome ejbHome = (MagicGBallHome) PortableRemoteObject.narrow(o, MagicGBallHome.class);
-        MagicGBall mGball = ejbHome.create();
-        String answer = mGball.ask(question);
-
-        System.out.println(answer);
-	}
-
-}
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
-
-import javax.naming.Context;
-import javax.naming.InitialContext;
-import javax.rmi.PortableRemoteObject;
-
-/**
- * Run this app client from the command line and pass in a question as an argument.
- *
- * @version $Rev$ $Date$
- */
-public class MagicGBallClient {
-    public static void main(String[] args) throws Exception{
-        if (args.length < 1){
-            System.err.println("Please ask a question");
-            System.exit(-1);
-        }
-
-        MagicGBallClient magicGBallClient = new MagicGBallClient();
-        for (int i = 0; i < args.length; i++) {
-            magicGBallClient.ask(args[i]);
-        }
-    }
-
-	public void ask(String question) throws Exception {
-        Context ctx = new InitialContext();
-        Object o = ctx.lookup("java:comp/env/mGball");
-        MagicGBallHome ejbHome = (MagicGBallHome) PortableRemoteObject.narrow(o, MagicGBallHome.class);
-        MagicGBall mGball = ejbHome.create();
-        String answer = mGball.ask(question);
-
-        System.out.println(answer);
-	}
-
-}
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
-
-import javax.naming.Context;
-import javax.naming.InitialContext;
-import javax.rmi.PortableRemoteObject;
-
-/**
- * Run this app client from the command line and pass in a question as an argument.
- *
- * @version $Rev$ $Date$
- */
-public class MagicGBallClient {
-    public static void main(String[] args) throws Exception{
-        if (args.length < 1){
-            System.err.println("Please ask a question");
-            System.exit(-1);
-        }
-
-        MagicGBallClient magicGBallClient = new MagicGBallClient();
-        for (int i = 0; i < args.length; i++) {
-            magicGBallClient.ask(args[i]);
-        }
-    }
-
-	public void ask(String question) throws Exception {
-        Context ctx = new InitialContext();
-        Object o = ctx.lookup("java:comp/env/mGball");
-        MagicGBallHome ejbHome = (MagicGBallHome) PortableRemoteObject.narrow(o, MagicGBallHome.class);
-        MagicGBall mGball = ejbHome.create();
-        String answer = mGball.ask(question);
-
-        System.out.println(answer);
-	}
-
-}
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
-
-import javax.naming.Context;
-import javax.naming.InitialContext;
-import javax.rmi.PortableRemoteObject;
-
-/**
- * Run this app client from the command line and pass in a question as an argument.
- *
- * @version $Rev$ $Date$
- */
-public class MagicGBallClient {
-    public static void main(String[] args) throws Exception{
-        if (args.length < 1){
-            System.err.println("Please ask a question");
-            System.exit(-1);
-        }
-
-        MagicGBallClient magicGBallClient = new MagicGBallClient();
-        for (int i = 0; i < args.length; i++) {
-            magicGBallClient.ask(args[i]);
-        }
-    }
-
-	public void ask(String question) throws Exception {
-        Context ctx = new InitialContext();
-        Object o = ctx.lookup("java:comp/env/mGball");
-        MagicGBallHome ejbHome = (MagicGBallHome) PortableRemoteObject.narrow(o, MagicGBallHome.class);
-        MagicGBall mGball = ejbHome.create();
-        String answer = mGball.ask(question);
-
-        System.out.println(answer);
-	}
-
-}
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
-
-import javax.naming.Context;
-import javax.naming.InitialContext;
-import javax.rmi.PortableRemoteObject;
-
-/**
- * Run this app client from the command line and pass in a question as an argument.
- *
- * @version $Rev$ $Date$
- */
-public class MagicGBallClient {
-    public static void main(String[] args) throws Exception{
-        if (args.length < 1){
-            System.err.println("Please ask a question");
-            System.exit(-1);
-        }
-
-        MagicGBallClient magicGBallClient = new MagicGBallClient();
-        for (int i = 0; i < args.length; i++) {
-            magicGBallClient.ask(args[i]);
-        }
-    }
-
-	public void ask(String question) throws Exception {
-        Context ctx = new InitialContext();
-        Object o = ctx.lookup("java:comp/env/mGball");
-        MagicGBallHome ejbHome = (MagicGBallHome) PortableRemoteObject.narrow(o, MagicGBallHome.class);
-        MagicGBall mGball = ejbHome.create();
-        String answer = mGball.ask(question);
-
-        System.out.println(answer);
-	}
-
-}

Modified: geronimo/trunk/applications/magicGball/magicGball-client/src/java/org/acme/MagicGBallHome.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/magicGball/magicGball-client/src/java/org/acme/MagicGBallHome.java?rev=390662&r1=390661&r2=390662&view=diff
==============================================================================
--- geronimo/trunk/applications/magicGball/magicGball-client/src/java/org/acme/MagicGBallHome.java (original)
+++ geronimo/trunk/applications/magicGball/magicGball-client/src/java/org/acme/MagicGBallHome.java Sat Apr  1 04:46:02 2006
@@ -27,148 +27,3 @@
 	 */
 	public MagicGBall create() throws javax.ejb.CreateException, java.rmi.RemoteException;;
 }
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
-/**
- * Home interface for Enterprise Bean: MagicGBall
- *
- * @version $Rev$ $Date$
- */
-public interface MagicGBallHome extends javax.ejb.EJBHome {
-	/**
-	 * Creates a default instance of Session Bean: MagicGBall
-	 */
-	public MagicGBall create() throws javax.ejb.CreateException, java.rmi.RemoteException;;
-}
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
-/**
- * Home interface for Enterprise Bean: MagicGBall
- *
- * @version $Rev$ $Date$
- */
-public interface MagicGBallHome extends javax.ejb.EJBHome {
-	/**
-	 * Creates a default instance of Session Bean: MagicGBall
-	 */
-	public MagicGBall create() throws javax.ejb.CreateException, java.rmi.RemoteException;;
-}
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
-/**
- * Home interface for Enterprise Bean: MagicGBall
- *
- * @version $Rev$ $Date$
- */
-public interface MagicGBallHome extends javax.ejb.EJBHome {
-	/**
-	 * Creates a default instance of Session Bean: MagicGBall
-	 */
-	public MagicGBall create() throws javax.ejb.CreateException, java.rmi.RemoteException;;
-}
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
-/**
- * Home interface for Enterprise Bean: MagicGBall
- *
- * @version $Rev$ $Date$
- */
-public interface MagicGBallHome extends javax.ejb.EJBHome {
-	/**
-	 * Creates a default instance of Session Bean: MagicGBall
-	 */
-	public MagicGBall create() throws javax.ejb.CreateException, java.rmi.RemoteException;;
-}
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
-/**
- * Home interface for Enterprise Bean: MagicGBall
- *
- * @version $Rev$ $Date$
- */
-public interface MagicGBallHome extends javax.ejb.EJBHome {
-	/**
-	 * Creates a default instance of Session Bean: MagicGBall
-	 */
-	public MagicGBall create() throws javax.ejb.CreateException, java.rmi.RemoteException;;
-}

Modified: geronimo/trunk/applications/magicGball/magicGball-client/src/java/org/acme/MagicGBallJaxRpcClient.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/magicGball/magicGball-client/src/java/org/acme/MagicGBallJaxRpcClient.java?rev=390662&r1=390661&r2=390662&view=diff
==============================================================================
--- geronimo/trunk/applications/magicGball/magicGball-client/src/java/org/acme/MagicGBallJaxRpcClient.java (original)
+++ geronimo/trunk/applications/magicGball/magicGball-client/src/java/org/acme/MagicGBallJaxRpcClient.java Sat Apr  1 04:46:02 2006
@@ -48,253 +48,3 @@
         }
     }
 }
-/**
- *
- * Copyright 2003-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.
- */
-package org.acme;
-
-import java.net.URL;
-import javax.xml.namespace.QName;
-import javax.xml.rpc.Service;
-import javax.xml.rpc.ServiceFactory;
-
-public class MagicGBallJaxRpcClient {
-    public static void main(String[] args) {
-        if (args.length < 1) {
-            System.err.println("Please ask a question");
-            System.exit(-1);
-        }
-
-        try {
-            URL wsdlURL = new URL("http://localhost:8000/services/MagicGBall?wsdl");
-            String namespaceURI = "http://acme.org/magicGball";
-            QName serviceQName = new QName(namespaceURI, "MagicGBallService");
-            QName portQName = new QName(namespaceURI, "MagicGBallPort");
-
-            ServiceFactory serviceFactory = ServiceFactory.newInstance();
-            Service service = serviceFactory.createService(wsdlURL, serviceQName);
-            MagicGBallEndpoint mGball = (MagicGBallEndpoint) service.getPort(portQName, MagicGBallEndpoint.class);
-
-            for (int i = 0; i < args.length; i++) {
-                String question = args[i];
-                String answer = mGball.ask(question);
-                System.out.println(answer);
-            }
-        } catch (Exception e) {
-            System.err.println(e.toString());
-        }
-    }
-}
-/**
- *
- * Copyright 2003-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.
- */
-package org.acme;
-
-import java.net.URL;
-import javax.xml.namespace.QName;
-import javax.xml.rpc.Service;
-import javax.xml.rpc.ServiceFactory;
-
-public class MagicGBallJaxRpcClient {
-    public static void main(String[] args) {
-        if (args.length < 1) {
-            System.err.println("Please ask a question");
-            System.exit(-1);
-        }
-
-        try {
-            URL wsdlURL = new URL("http://localhost:8000/services/MagicGBall?wsdl");
-            String namespaceURI = "http://acme.org/magicGball";
-            QName serviceQName = new QName(namespaceURI, "MagicGBallService");
-            QName portQName = new QName(namespaceURI, "MagicGBallPort");
-
-            ServiceFactory serviceFactory = ServiceFactory.newInstance();
-            Service service = serviceFactory.createService(wsdlURL, serviceQName);
-            MagicGBallEndpoint mGball = (MagicGBallEndpoint) service.getPort(portQName, MagicGBallEndpoint.class);
-
-            for (int i = 0; i < args.length; i++) {
-                String question = args[i];
-                String answer = mGball.ask(question);
-                System.out.println(answer);
-            }
-        } catch (Exception e) {
-            System.err.println(e.toString());
-        }
-    }
-}
-/**
- *
- * Copyright 2003-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.
- */
-package org.acme;
-
-import java.net.URL;
-import javax.xml.namespace.QName;
-import javax.xml.rpc.Service;
-import javax.xml.rpc.ServiceFactory;
-
-public class MagicGBallJaxRpcClient {
-    public static void main(String[] args) {
-        if (args.length < 1) {
-            System.err.println("Please ask a question");
-            System.exit(-1);
-        }
-
-        try {
-            URL wsdlURL = new URL("http://localhost:8000/services/MagicGBall?wsdl");
-            String namespaceURI = "http://acme.org/magicGball";
-            QName serviceQName = new QName(namespaceURI, "MagicGBallService");
-            QName portQName = new QName(namespaceURI, "MagicGBallPort");
-
-            ServiceFactory serviceFactory = ServiceFactory.newInstance();
-            Service service = serviceFactory.createService(wsdlURL, serviceQName);
-            MagicGBallEndpoint mGball = (MagicGBallEndpoint) service.getPort(portQName, MagicGBallEndpoint.class);
-
-            for (int i = 0; i < args.length; i++) {
-                String question = args[i];
-                String answer = mGball.ask(question);
-                System.out.println(answer);
-            }
-        } catch (Exception e) {
-            System.err.println(e.toString());
-        }
-    }
-}
-/**
- *
- * Copyright 2003-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.
- */
-package org.acme;
-
-import java.net.URL;
-import javax.xml.namespace.QName;
-import javax.xml.rpc.Service;
-import javax.xml.rpc.ServiceFactory;
-
-public class MagicGBallJaxRpcClient {
-    public static void main(String[] args) {
-        if (args.length < 1) {
-            System.err.println("Please ask a question");
-            System.exit(-1);
-        }
-
-        try {
-            URL wsdlURL = new URL("http://localhost:8000/services/MagicGBall?wsdl");
-            String namespaceURI = "http://acme.org/magicGball";
-            QName serviceQName = new QName(namespaceURI, "MagicGBallService");
-            QName portQName = new QName(namespaceURI, "MagicGBallPort");
-
-            ServiceFactory serviceFactory = ServiceFactory.newInstance();
-            Service service = serviceFactory.createService(wsdlURL, serviceQName);
-            MagicGBallEndpoint mGball = (MagicGBallEndpoint) service.getPort(portQName, MagicGBallEndpoint.class);
-
-            for (int i = 0; i < args.length; i++) {
-                String question = args[i];
-                String answer = mGball.ask(question);
-                System.out.println(answer);
-            }
-        } catch (Exception e) {
-            System.err.println(e.toString());
-        }
-    }
-}
-/**
- *
- * Copyright 2003-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.
- */
-package org.acme;
-
-import java.net.URL;
-import javax.xml.namespace.QName;
-import javax.xml.rpc.Service;
-import javax.xml.rpc.ServiceFactory;
-
-public class MagicGBallJaxRpcClient {
-    public static void main(String[] args) {
-        if (args.length < 1) {
-            System.err.println("Please ask a question");
-            System.exit(-1);
-        }
-
-        try {
-            URL wsdlURL = new URL("http://localhost:8000/services/MagicGBall?wsdl");
-            String namespaceURI = "http://acme.org/magicGball";
-            QName serviceQName = new QName(namespaceURI, "MagicGBallService");
-            QName portQName = new QName(namespaceURI, "MagicGBallPort");
-
-            ServiceFactory serviceFactory = ServiceFactory.newInstance();
-            Service service = serviceFactory.createService(wsdlURL, serviceQName);
-            MagicGBallEndpoint mGball = (MagicGBallEndpoint) service.getPort(portQName, MagicGBallEndpoint.class);
-
-            for (int i = 0; i < args.length; i++) {
-                String question = args[i];
-                String answer = mGball.ask(question);
-                System.out.println(answer);
-            }
-        } catch (Exception e) {
-            System.err.println(e.toString());
-        }
-    }
-}

Modified: geronimo/trunk/applications/magicGball/magicGball-ear/pom.xml
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/magicGball/magicGball-ear/pom.xml?rev=390662&r1=390661&r2=390662&view=diff
==============================================================================
--- geronimo/trunk/applications/magicGball/magicGball-ear/pom.xml (original)
+++ geronimo/trunk/applications/magicGball/magicGball-ear/pom.xml Sat Apr  1 04:46:02 2006
@@ -51,56 +51,3 @@
   </dependencies>
 
 </project>
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  
-    Copyright 2006 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.
--->
-
-<!-- $Rev$ $Date$ -->
-
-<project>
-  <parent>
-    <groupId>org.apache.geronimo.applications.magicGball</groupId>
-    <version>1.2-SNAPSHOT</version>
-    <artifactId>magicGball-parent</artifactId>
-  </parent>
-
-  <modelVersion>4.0.0</modelVersion>
-  <artifactId>magicGball-ear</artifactId>
-  <version>1.2-SNAPSHOT</version>
-  <packaging>ear</packaging>
-  <name>Geronimo :: The Magic G Ball Sample Application</name>
-
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.geronimo.applications.magicGball</groupId>
-      <artifactId>magicGball-client</artifactId>
-      <version>1.2-SNAPSHOT</version>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.geronimo.applications.magicGball</groupId>
-      <artifactId>magicGball-ejb</artifactId>
-      <version>1.2-SNAPSHOT</version>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.geronimo.applications.magicGball</groupId>
-      <artifactId>magicGball-web</artifactId>
-      <version>1.2-SNAPSHOT</version>
-      <type>war</type>
-    </dependency>
-  </dependencies>
-
-</project>

Modified: geronimo/trunk/applications/magicGball/magicGball-ejb/pom.xml
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/magicGball/magicGball-ejb/pom.xml?rev=390662&r1=390661&r2=390662&view=diff
==============================================================================
--- geronimo/trunk/applications/magicGball/magicGball-ejb/pom.xml (original)
+++ geronimo/trunk/applications/magicGball/magicGball-ejb/pom.xml Sat Apr  1 04:46:02 2006
@@ -32,37 +32,3 @@
   <name>Geronimo :: The Magic G Ball Sample :: EJB</name>
 
 </project>
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  
-    Copyright 2006 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.
--->
-
-<!-- $Rev$ $Date$ -->
-
-<project>
-  <parent>
-    <groupId>org.apache.geronimo.applications.magicGball</groupId>
-    <version>1.2-SNAPSHOT</version>
-    <artifactId>magicGball-parent</artifactId>
-  </parent>
-
-  <modelVersion>4.0.0</modelVersion>
-  <artifactId>magicGball-ejb</artifactId>
-  <version>1.2-SNAPSHOT</version>
-  <packaging>ejb</packaging>
-  <name>Geronimo :: The Magic G Ball Sample :: EJB</name>
-
-</project>

Modified: geronimo/trunk/applications/magicGball/magicGball-ejb/src/java/org/acme/MagicGBall.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/magicGball/magicGball-ejb/src/java/org/acme/MagicGBall.java?rev=390662&r1=390661&r2=390662&view=diff
==============================================================================
--- geronimo/trunk/applications/magicGball/magicGball-ejb/src/java/org/acme/MagicGBall.java (original)
+++ geronimo/trunk/applications/magicGball/magicGball-ejb/src/java/org/acme/MagicGBall.java Sat Apr  1 04:46:02 2006
@@ -24,133 +24,3 @@
 public interface MagicGBall extends javax.ejb.EJBObject {
 	public String ask(String question) throws java.rmi.RemoteException;
 }
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
-/**
- * Remote interface for Enterprise Bean: MagicGBall
- *
- * @version $Rev$ $Date$
- */
-public interface MagicGBall extends javax.ejb.EJBObject {
-	public String ask(String question) throws java.rmi.RemoteException;
-}
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
-/**
- * Remote interface for Enterprise Bean: MagicGBall
- *
- * @version $Rev$ $Date$
- */
-public interface MagicGBall extends javax.ejb.EJBObject {
-	public String ask(String question) throws java.rmi.RemoteException;
-}
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
-/**
- * Remote interface for Enterprise Bean: MagicGBall
- *
- * @version $Rev$ $Date$
- */
-public interface MagicGBall extends javax.ejb.EJBObject {
-	public String ask(String question) throws java.rmi.RemoteException;
-}
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
-/**
- * Remote interface for Enterprise Bean: MagicGBall
- *
- * @version $Rev$ $Date$
- */
-public interface MagicGBall extends javax.ejb.EJBObject {
-	public String ask(String question) throws java.rmi.RemoteException;
-}
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
-/**
- * Remote interface for Enterprise Bean: MagicGBall
- *
- * @version $Rev$ $Date$
- */
-public interface MagicGBall extends javax.ejb.EJBObject {
-	public String ask(String question) throws java.rmi.RemoteException;
-}

Modified: geronimo/trunk/applications/magicGball/magicGball-ejb/src/java/org/acme/MagicGBallBean.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/magicGball/magicGball-ejb/src/java/org/acme/MagicGBallBean.java?rev=390662&r1=390661&r2=390662&view=diff
==============================================================================
--- geronimo/trunk/applications/magicGball/magicGball-ejb/src/java/org/acme/MagicGBallBean.java (original)
+++ geronimo/trunk/applications/magicGball/magicGball-ejb/src/java/org/acme/MagicGBallBean.java Sat Apr  1 04:46:02 2006
@@ -63,328 +63,3 @@
 	public void ejbRemove() {
 	}
 }
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
-/**
- * Bean implementation class for Enterprise Bean: MagicGBall
- *
- * @version $Rev$ $Date$
- */
-public class MagicGBallBean implements javax.ejb.SessionBean {
-
-	private static final String[] answers = {"It is certain","Outlook not so good","You may rely on it","My Sources say no","It is decidedly so", "Rephrase and ask again","Most likely","Don't count on it","Yes definitely","Very doubtful"}; 
-
-	public String ask(String question){
-		return answers[Math.abs(question.hashCode()) % answers.length];
-	}
-	
-	private javax.ejb.SessionContext mySessionCtx;
-	/**
-	 * getSessionContext
-	 */
-	public javax.ejb.SessionContext getSessionContext() {
-		return mySessionCtx;
-	}
-	/**
-	 * setSessionContext
-	 */
-	public void setSessionContext(javax.ejb.SessionContext ctx) {
-		mySessionCtx = ctx;
-	}
-	/**
-	 * ejbCreate
-	 */
-	public void ejbCreate() throws javax.ejb.CreateException {
-	}
-	/**
-	 * ejbActivate
-	 */
-	public void ejbActivate() {
-	}
-	/**
-	 * ejbPassivate
-	 */
-	public void ejbPassivate() {
-	}
-	/**
-	 * ejbRemove
-	 */
-	public void ejbRemove() {
-	}
-}
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
-/**
- * Bean implementation class for Enterprise Bean: MagicGBall
- *
- * @version $Rev$ $Date$
- */
-public class MagicGBallBean implements javax.ejb.SessionBean {
-
-	private static final String[] answers = {"It is certain","Outlook not so good","You may rely on it","My Sources say no","It is decidedly so", "Rephrase and ask again","Most likely","Don't count on it","Yes definitely","Very doubtful"}; 
-
-	public String ask(String question){
-		return answers[Math.abs(question.hashCode()) % answers.length];
-	}
-	
-	private javax.ejb.SessionContext mySessionCtx;
-	/**
-	 * getSessionContext
-	 */
-	public javax.ejb.SessionContext getSessionContext() {
-		return mySessionCtx;
-	}
-	/**
-	 * setSessionContext
-	 */
-	public void setSessionContext(javax.ejb.SessionContext ctx) {
-		mySessionCtx = ctx;
-	}
-	/**
-	 * ejbCreate
-	 */
-	public void ejbCreate() throws javax.ejb.CreateException {
-	}
-	/**
-	 * ejbActivate
-	 */
-	public void ejbActivate() {
-	}
-	/**
-	 * ejbPassivate
-	 */
-	public void ejbPassivate() {
-	}
-	/**
-	 * ejbRemove
-	 */
-	public void ejbRemove() {
-	}
-}
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
-/**
- * Bean implementation class for Enterprise Bean: MagicGBall
- *
- * @version $Rev$ $Date$
- */
-public class MagicGBallBean implements javax.ejb.SessionBean {
-
-	private static final String[] answers = {"It is certain","Outlook not so good","You may rely on it","My Sources say no","It is decidedly so", "Rephrase and ask again","Most likely","Don't count on it","Yes definitely","Very doubtful"}; 
-
-	public String ask(String question){
-		return answers[Math.abs(question.hashCode()) % answers.length];
-	}
-	
-	private javax.ejb.SessionContext mySessionCtx;
-	/**
-	 * getSessionContext
-	 */
-	public javax.ejb.SessionContext getSessionContext() {
-		return mySessionCtx;
-	}
-	/**
-	 * setSessionContext
-	 */
-	public void setSessionContext(javax.ejb.SessionContext ctx) {
-		mySessionCtx = ctx;
-	}
-	/**
-	 * ejbCreate
-	 */
-	public void ejbCreate() throws javax.ejb.CreateException {
-	}
-	/**
-	 * ejbActivate
-	 */
-	public void ejbActivate() {
-	}
-	/**
-	 * ejbPassivate
-	 */
-	public void ejbPassivate() {
-	}
-	/**
-	 * ejbRemove
-	 */
-	public void ejbRemove() {
-	}
-}
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
-/**
- * Bean implementation class for Enterprise Bean: MagicGBall
- *
- * @version $Rev$ $Date$
- */
-public class MagicGBallBean implements javax.ejb.SessionBean {
-
-	private static final String[] answers = {"It is certain","Outlook not so good","You may rely on it","My Sources say no","It is decidedly so", "Rephrase and ask again","Most likely","Don't count on it","Yes definitely","Very doubtful"}; 
-
-	public String ask(String question){
-		return answers[Math.abs(question.hashCode()) % answers.length];
-	}
-	
-	private javax.ejb.SessionContext mySessionCtx;
-	/**
-	 * getSessionContext
-	 */
-	public javax.ejb.SessionContext getSessionContext() {
-		return mySessionCtx;
-	}
-	/**
-	 * setSessionContext
-	 */
-	public void setSessionContext(javax.ejb.SessionContext ctx) {
-		mySessionCtx = ctx;
-	}
-	/**
-	 * ejbCreate
-	 */
-	public void ejbCreate() throws javax.ejb.CreateException {
-	}
-	/**
-	 * ejbActivate
-	 */
-	public void ejbActivate() {
-	}
-	/**
-	 * ejbPassivate
-	 */
-	public void ejbPassivate() {
-	}
-	/**
-	 * ejbRemove
-	 */
-	public void ejbRemove() {
-	}
-}
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
-/**
- * Bean implementation class for Enterprise Bean: MagicGBall
- *
- * @version $Rev$ $Date$
- */
-public class MagicGBallBean implements javax.ejb.SessionBean {
-
-	private static final String[] answers = {"It is certain","Outlook not so good","You may rely on it","My Sources say no","It is decidedly so", "Rephrase and ask again","Most likely","Don't count on it","Yes definitely","Very doubtful"}; 
-
-	public String ask(String question){
-		return answers[Math.abs(question.hashCode()) % answers.length];
-	}
-	
-	private javax.ejb.SessionContext mySessionCtx;
-	/**
-	 * getSessionContext
-	 */
-	public javax.ejb.SessionContext getSessionContext() {
-		return mySessionCtx;
-	}
-	/**
-	 * setSessionContext
-	 */
-	public void setSessionContext(javax.ejb.SessionContext ctx) {
-		mySessionCtx = ctx;
-	}
-	/**
-	 * ejbCreate
-	 */
-	public void ejbCreate() throws javax.ejb.CreateException {
-	}
-	/**
-	 * ejbActivate
-	 */
-	public void ejbActivate() {
-	}
-	/**
-	 * ejbPassivate
-	 */
-	public void ejbPassivate() {
-	}
-	/**
-	 * ejbRemove
-	 */
-	public void ejbRemove() {
-	}
-}

Modified: geronimo/trunk/applications/magicGball/magicGball-ejb/src/java/org/acme/MagicGBallCallbackHandler.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/magicGball/magicGball-ejb/src/java/org/acme/MagicGBallCallbackHandler.java?rev=390662&r1=390661&r2=390662&view=diff
==============================================================================
--- geronimo/trunk/applications/magicGball/magicGball-ejb/src/java/org/acme/MagicGBallCallbackHandler.java (original)
+++ geronimo/trunk/applications/magicGball/magicGball-ejb/src/java/org/acme/MagicGBallCallbackHandler.java Sat Apr  1 04:46:02 2006
@@ -42,223 +42,3 @@
         }
     }
 }
-/**
- *
- * Copyright 2005 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.
- */
-package org.acme;
-
-import java.io.IOException;
-import javax.security.auth.callback.CallbackHandler;
-import javax.security.auth.callback.Callback;
-import javax.security.auth.callback.UnsupportedCallbackException;
-import javax.security.auth.callback.NameCallback;
-import javax.security.auth.callback.PasswordCallback;
-
-/**
- * @version $Rev$ $Date$
- */
-public class MagicGBallCallbackHandler implements CallbackHandler {
-
-    public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
-        for (int i = 0; i < callbacks.length; i++) {
-            Callback callback = callbacks[i];
-            if (callback instanceof NameCallback) {
-                ((NameCallback)callback).setName("system");
-            } else if (callback instanceof PasswordCallback) {
-                ((PasswordCallback)callback).setPassword("manager".toCharArray());
-            } else {
-                throw new UnsupportedCallbackException(callback);
-            }
-            System.out.println("CallbackHandler set user=system, password=manager");
-        }
-    }
-}
-/**
- *
- * Copyright 2005 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.
- */
-package org.acme;
-
-import java.io.IOException;
-import javax.security.auth.callback.CallbackHandler;
-import javax.security.auth.callback.Callback;
-import javax.security.auth.callback.UnsupportedCallbackException;
-import javax.security.auth.callback.NameCallback;
-import javax.security.auth.callback.PasswordCallback;
-
-/**
- * @version $Rev$ $Date$
- */
-public class MagicGBallCallbackHandler implements CallbackHandler {
-
-    public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
-        for (int i = 0; i < callbacks.length; i++) {
-            Callback callback = callbacks[i];
-            if (callback instanceof NameCallback) {
-                ((NameCallback)callback).setName("system");
-            } else if (callback instanceof PasswordCallback) {
-                ((PasswordCallback)callback).setPassword("manager".toCharArray());
-            } else {
-                throw new UnsupportedCallbackException(callback);
-            }
-            System.out.println("CallbackHandler set user=system, password=manager");
-        }
-    }
-}
-/**
- *
- * Copyright 2005 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.
- */
-package org.acme;
-
-import java.io.IOException;
-import javax.security.auth.callback.CallbackHandler;
-import javax.security.auth.callback.Callback;
-import javax.security.auth.callback.UnsupportedCallbackException;
-import javax.security.auth.callback.NameCallback;
-import javax.security.auth.callback.PasswordCallback;
-
-/**
- * @version $Rev$ $Date$
- */
-public class MagicGBallCallbackHandler implements CallbackHandler {
-
-    public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
-        for (int i = 0; i < callbacks.length; i++) {
-            Callback callback = callbacks[i];
-            if (callback instanceof NameCallback) {
-                ((NameCallback)callback).setName("system");
-            } else if (callback instanceof PasswordCallback) {
-                ((PasswordCallback)callback).setPassword("manager".toCharArray());
-            } else {
-                throw new UnsupportedCallbackException(callback);
-            }
-            System.out.println("CallbackHandler set user=system, password=manager");
-        }
-    }
-}
-/**
- *
- * Copyright 2005 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.
- */
-package org.acme;
-
-import java.io.IOException;
-import javax.security.auth.callback.CallbackHandler;
-import javax.security.auth.callback.Callback;
-import javax.security.auth.callback.UnsupportedCallbackException;
-import javax.security.auth.callback.NameCallback;
-import javax.security.auth.callback.PasswordCallback;
-
-/**
- * @version $Rev$ $Date$
- */
-public class MagicGBallCallbackHandler implements CallbackHandler {
-
-    public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
-        for (int i = 0; i < callbacks.length; i++) {
-            Callback callback = callbacks[i];
-            if (callback instanceof NameCallback) {
-                ((NameCallback)callback).setName("system");
-            } else if (callback instanceof PasswordCallback) {
-                ((PasswordCallback)callback).setPassword("manager".toCharArray());
-            } else {
-                throw new UnsupportedCallbackException(callback);
-            }
-            System.out.println("CallbackHandler set user=system, password=manager");
-        }
-    }
-}
-/**
- *
- * Copyright 2005 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.
- */
-package org.acme;
-
-import java.io.IOException;
-import javax.security.auth.callback.CallbackHandler;
-import javax.security.auth.callback.Callback;
-import javax.security.auth.callback.UnsupportedCallbackException;
-import javax.security.auth.callback.NameCallback;
-import javax.security.auth.callback.PasswordCallback;
-
-/**
- * @version $Rev$ $Date$
- */
-public class MagicGBallCallbackHandler implements CallbackHandler {
-
-    public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
-        for (int i = 0; i < callbacks.length; i++) {
-            Callback callback = callbacks[i];
-            if (callback instanceof NameCallback) {
-                ((NameCallback)callback).setName("system");
-            } else if (callback instanceof PasswordCallback) {
-                ((PasswordCallback)callback).setPassword("manager".toCharArray());
-            } else {
-                throw new UnsupportedCallbackException(callback);
-            }
-            System.out.println("CallbackHandler set user=system, password=manager");
-        }
-    }
-}

Modified: geronimo/trunk/applications/magicGball/magicGball-ejb/src/java/org/acme/MagicGBallEndpoint.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/magicGball/magicGball-ejb/src/java/org/acme/MagicGBallEndpoint.java?rev=390662&r1=390661&r2=390662&view=diff
==============================================================================
--- geronimo/trunk/applications/magicGball/magicGball-ejb/src/java/org/acme/MagicGBallEndpoint.java (original)
+++ geronimo/trunk/applications/magicGball/magicGball-ejb/src/java/org/acme/MagicGBallEndpoint.java Sat Apr  1 04:46:02 2006
@@ -14,138 +14,8 @@
  *  See the License for the specific language governing permissions and
  *  limitations under the License.
  */
-
-package org.acme;
-/**
- * ServiceEndpoint interface for Enterprise Bean: MagicGBall
- *
- * @version $Rev$ $Date$
- */
-public interface MagicGBallEndpoint extends java.rmi.Remote {
-	public String ask(String question) throws java.rmi.RemoteException;
-}
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
-/**
- * ServiceEndpoint interface for Enterprise Bean: MagicGBall
- *
- * @version $Rev$ $Date$
- */
-public interface MagicGBallEndpoint extends java.rmi.Remote {
-	public String ask(String question) throws java.rmi.RemoteException;
-}
-/**
- *
- * Copyright 2003-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.
- */
-
 package org.acme;
-/**
- * ServiceEndpoint interface for Enterprise Bean: MagicGBall
- *
- * @version $Rev$ $Date$
- */
-public interface MagicGBallEndpoint extends java.rmi.Remote {
-	public String ask(String question) throws java.rmi.RemoteException;
-}
-/**
- *
- * Copyright 2003-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.
- */
 
-package org.acme;
-/**
- * ServiceEndpoint interface for Enterprise Bean: MagicGBall
- *
- * @version $Rev$ $Date$
- */
-public interface MagicGBallEndpoint extends java.rmi.Remote {
-	public String ask(String question) throws java.rmi.RemoteException;
-}
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
-/**
- * ServiceEndpoint interface for Enterprise Bean: MagicGBall
- *
- * @version $Rev$ $Date$
- */
-public interface MagicGBallEndpoint extends java.rmi.Remote {
-	public String ask(String question) throws java.rmi.RemoteException;
-}
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
 /**
  * ServiceEndpoint interface for Enterprise Bean: MagicGBall
  *

Modified: geronimo/trunk/applications/magicGball/magicGball-ejb/src/java/org/acme/MagicGBallHome.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/magicGball/magicGball-ejb/src/java/org/acme/MagicGBallHome.java?rev=390662&r1=390661&r2=390662&view=diff
==============================================================================
--- geronimo/trunk/applications/magicGball/magicGball-ejb/src/java/org/acme/MagicGBallHome.java (original)
+++ geronimo/trunk/applications/magicGball/magicGball-ejb/src/java/org/acme/MagicGBallHome.java Sat Apr  1 04:46:02 2006
@@ -27,148 +27,3 @@
 	 */
 	public MagicGBall create() throws javax.ejb.CreateException, java.rmi.RemoteException;;
 }
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
-/**
- * Home interface for Enterprise Bean: MagicGBall
- *
- * @version $Rev$ $Date$
- */
-public interface MagicGBallHome extends javax.ejb.EJBHome {
-	/**
-	 * Creates a default instance of Session Bean: MagicGBall
-	 */
-	public MagicGBall create() throws javax.ejb.CreateException, java.rmi.RemoteException;;
-}
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
-/**
- * Home interface for Enterprise Bean: MagicGBall
- *
- * @version $Rev$ $Date$
- */
-public interface MagicGBallHome extends javax.ejb.EJBHome {
-	/**
-	 * Creates a default instance of Session Bean: MagicGBall
-	 */
-	public MagicGBall create() throws javax.ejb.CreateException, java.rmi.RemoteException;;
-}
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
-/**
- * Home interface for Enterprise Bean: MagicGBall
- *
- * @version $Rev$ $Date$
- */
-public interface MagicGBallHome extends javax.ejb.EJBHome {
-	/**
-	 * Creates a default instance of Session Bean: MagicGBall
-	 */
-	public MagicGBall create() throws javax.ejb.CreateException, java.rmi.RemoteException;;
-}
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
-/**
- * Home interface for Enterprise Bean: MagicGBall
- *
- * @version $Rev$ $Date$
- */
-public interface MagicGBallHome extends javax.ejb.EJBHome {
-	/**
-	 * Creates a default instance of Session Bean: MagicGBall
-	 */
-	public MagicGBall create() throws javax.ejb.CreateException, java.rmi.RemoteException;;
-}
-/**
- *
- * Copyright 2003-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.
- */
-
-package org.acme;
-/**
- * Home interface for Enterprise Bean: MagicGBall
- *
- * @version $Rev$ $Date$
- */
-public interface MagicGBallHome extends javax.ejb.EJBHome {
-	/**
-	 * Creates a default instance of Session Bean: MagicGBall
-	 */
-	public MagicGBall create() throws javax.ejb.CreateException, java.rmi.RemoteException;;
-}



Mime
View raw message