[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jboss-cvs-commits
Subject:    [jboss-cvs] jboss-ejb3/src/test/org/jboss/ejb3/test/initial SecuredTestLocal.java SecuredTestRemote.
From:       Bill Burke <patriot1burke () users ! sourceforge ! net>
Date:       2004-08-31 21:29:59
Message-ID: E1C2GCV-0005JI-H7 () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]

  User: patriot1burke
  Date: 04/08/31 14:29:59

  Modified:    src/test/org/jboss/ejb3/test/initial SecuredTestBean.java
                        SecurityTester.java Test.java TestBean.java
                        Tester.java TxTester.java
  Added:       src/test/org/jboss/ejb3/test/initial SecuredTestLocal.java
                        SecuredTestRemote.java TestLocal.java
                        TestRemote.java
  Log:
  remoting for EJB3 and test for it
  
  Revision  Changes    Path
  1.2       +2 -2      jboss-ejb3/src/test/org/jboss/ejb3/test/initial/SecuredTestBean.java
  
  Index: SecuredTestBean.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-ejb3/src/test/org/jboss/ejb3/test/initial/SecuredTestBean.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SecuredTestBean.java	31 Aug 2004 04:11:08 -0000	1.1
  +++ SecuredTestBean.java	31 Aug 2004 21:29:58 -0000	1.2
  @@ -16,12 +16,12 @@
    * Comment
    *
    * @author <a href="mailto:bill@jboss.org">Bill Burke</a>
  - * @version $Revision: 1.1 $
  + * @version $Revision: 1.2 $
    *
    **/
   @Session
   @SecurityDomain("other")
  -public class SecuredTestBean implements SecuredTest
  +public class SecuredTestBean implements SecuredTestLocal, SecuredTestRemote
   {
      @Unchecked
      public void unchecked() {}
  
  
  
  1.2       +2 -2      jboss-ejb3/src/test/org/jboss/ejb3/test/initial/SecurityTester.java
  
  Index: SecurityTester.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-ejb3/src/test/org/jboss/ejb3/test/initial/SecurityTester.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SecurityTester.java	31 Aug 2004 04:11:08 -0000	1.1
  +++ SecurityTester.java	31 Aug 2004 21:29:58 -0000	1.2
  @@ -17,7 +17,7 @@
    * Comment
    *
    * @author <a href="mailto:bill@jboss.org">Bill Burke</a>
  - * @version $Revision: 1.1 $
  + * @version $Revision: 1.2 $
    *
    **/
   public class SecurityTester implements SecurityTesterMBean
  @@ -27,7 +27,7 @@
      public void test() throws Exception
      {
         InitialContext ctx = new InitialContext();
  -      SecuredTest test = (SecuredTest) ctx.lookup(SecuredTest.class.getName());
  +      SecuredTest test = (SecuredTest) ctx.lookup(SecuredTestLocal.class.getName());
   
         SecurityAssociation.setPrincipal(new SimplePrincipal("somebody"));
         SecurityAssociation.setCredential("password".toCharArray());
  
  
  
  1.2       +1 -5      jboss-ejb3/src/test/org/jboss/ejb3/test/initial/Test.java
  
  Index: Test.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-ejb3/src/test/org/jboss/ejb3/test/initial/Test.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Test.java	31 Aug 2004 04:11:08 -0000	1.1
  +++ Test.java	31 Aug 2004 21:29:58 -0000	1.2
  @@ -12,7 +12,7 @@
    * Comment
    *
    * @author <a href="mailto:bill@jboss.org">Bill Burke</a>
  - * @version $Revision: 1.1 $
  + * @version $Revision: 1.2 $
    *
    **/
   public interface Test
  @@ -23,12 +23,8 @@
   
      void notSupported() throws Exception;
   
  -   void supports(Transaction tx) throws Exception;
  -
      void required() throws Exception;
   
  -   void requiresNew(Transaction tx) throws Exception;
  -
      void mandatory();
   }
   
  
  
  
  1.2       +2 -2      jboss-ejb3/src/test/org/jboss/ejb3/test/initial/TestBean.java
  
  Index: TestBean.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-ejb3/src/test/org/jboss/ejb3/test/initial/TestBean.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestBean.java	31 Aug 2004 04:11:08 -0000	1.1
  +++ TestBean.java	31 Aug 2004 21:29:58 -0000	1.2
  @@ -19,9 +19,9 @@
    * Comment
    *
    * @author <a href="mailto:bill@jboss.org">Bill Burke</a>
  - * @version $Revision: 1.1 $
  + * @version $Revision: 1.2 $
    */
  -@Session public class TestBean implements Test
  +@Session public class TestBean implements TestLocal, TestRemote
   {
      private TransactionManager tm;
   
  
  
  
  1.2       +3 -3      jboss-ejb3/src/test/org/jboss/ejb3/test/initial/Tester.java
  
  Index: Tester.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-ejb3/src/test/org/jboss/ejb3/test/initial/Tester.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Tester.java	31 Aug 2004 04:11:08 -0000	1.1
  +++ Tester.java	31 Aug 2004 21:29:58 -0000	1.2
  @@ -15,15 +15,15 @@
    * Comment
    *
    * @author <a href="mailto:bill@jboss.org">Bill Burke</a>
  - * @version $Revision: 1.1 $
  + * @version $Revision: 1.2 $
    *
    **/
  -public class Tester implements TesterMBean
  +public class Tester implements TesterMBean    
   {
      public void test() throws Exception
      {
         InitialContext ctx = new InitialContext();
  -      Test test = (Test) ctx.lookup(Test.class.getName());
  +      Test test = (Test) ctx.lookup(TestLocal.class.getName());
         test.testMe();
      }
   
  
  
  
  1.2       +8 -8      jboss-ejb3/src/test/org/jboss/ejb3/test/initial/TxTester.java
  
  Index: TxTester.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-ejb3/src/test/org/jboss/ejb3/test/initial/TxTester.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TxTester.java	31 Aug 2004 04:11:08 -0000	1.1
  +++ TxTester.java	31 Aug 2004 21:29:58 -0000	1.2
  @@ -17,7 +17,7 @@
    * Comment
    *
    * @author <a href="mailto:bill@jboss.org">Bill Burke</a>
  - * @version $Revision: 1.1 $
  + * @version $Revision: 1.2 $
    *
    **/
   public class TxTester implements TxTesterMBean
  @@ -26,7 +26,7 @@
      {
         InitialContext ctx = new InitialContext();
         TransactionManager tm = (TransactionManager) ctx.lookup(TransactionManagerService.JNDI_NAME);
  -      Test test = (Test) ctx.lookup(Test.class.getName());
  +      TestLocal test = (TestLocal) ctx.lookup(TestLocal.class.getName());
         callNever(tm, test);
         callNotSupported(tm, test);
         callSupportsWithTx(tm, test);
  @@ -37,7 +37,7 @@
         callRequiresNew(tm, test);
      }
   
  -   public void callRequiresNew(TransactionManager tm, Test test) throws Exception
  +   public void callRequiresNew(TransactionManager tm, TestLocal test) throws Exception
      {
         tm.begin();
         Transaction tx = tm.getTransaction();
  @@ -45,7 +45,7 @@
         tm.commit();
      }
   
  -   public void callNever(TransactionManager tm, Test test) throws Exception
  +   public void callNever(TransactionManager tm, TestLocal test) throws Exception
      {
         boolean exceptionThrown = false;
         tm.begin();
  @@ -61,14 +61,14 @@
         if (!exceptionThrown) throw new Exception("failed on mandatory no tx call");
      }
   
  -   public void callNotSupported(TransactionManager tm, Test test) throws Exception
  +   public void callNotSupported(TransactionManager tm, TestLocal test) throws Exception
      {
         tm.begin();
         test.notSupported();
         tm.commit();
      }
   
  -   public void callSupportsWithTx(TransactionManager tm, Test test) throws Exception
  +   public void callSupportsWithTx(TransactionManager tm, TestLocal test) throws Exception
      {
         tm.begin();
         Transaction tx = tm.getTransaction();
  @@ -76,12 +76,12 @@
         tm.commit();
      }
   
  -   public void callSupportsWithoutTx(TransactionManager tm, Test test) throws Exception
  +   public void callSupportsWithoutTx(TransactionManager tm, TestLocal test) throws Exception
      {
         test.supports(null);
      }
   
  -   public void callMandatoryNoTx(TransactionManager tm, Test test) throws Exception
  +   public void callMandatoryNoTx(TransactionManager tm, TestLocal test) throws Exception
      {
         boolean exceptionThrown = false;
         try
  
  
  
  1.1                  jboss-ejb3/src/test/org/jboss/ejb3/test/initial/SecuredTestLocal.java
  
  Index: SecuredTestLocal.java
  ===================================================================
  /*
   * JBoss, the OpenSource J2EE webOS
   *
   * Distributable under LGPL license.
   * See terms of license at gnu.org.
   */
  package org.jboss.ejb3.test.initial;
  
  import javax.ejb.Local;
  
  /**
   * Comment
   *
   * @author <a href="mailto:bill@jboss.org">Bill Burke</a>
   * @version $Revision: 1.1 $
   */
  
  @Local public interface SecuredTestLocal extends SecuredTest
  {
  }
  
  
  
  1.1                  jboss-ejb3/src/test/org/jboss/ejb3/test/initial/SecuredTestRemote.java
  
  Index: SecuredTestRemote.java
  ===================================================================
  /*
   * JBoss, the OpenSource J2EE webOS
   *
   * Distributable under LGPL license.
   * See terms of license at gnu.org.
   */
  package org.jboss.ejb3.test.initial;
  
  import javax.ejb.Remote;
  
  /**
   * Comment
   *
   * @author <a href="mailto:bill@jboss.org">Bill Burke</a>
   * @version $Revision: 1.1 $
   */
  @Remote public interface SecuredTestRemote extends SecuredTest
  {
  }
  
  
  
  1.1                  jboss-ejb3/src/test/org/jboss/ejb3/test/initial/TestLocal.java
  
  Index: TestLocal.java
  ===================================================================
  /*
   * JBoss, the OpenSource J2EE webOS
   *
   * Distributable under LGPL license.
   * See terms of license at gnu.org.
   */
  package org.jboss.ejb3.test.initial;
  
  import javax.ejb.Local;
  import javax.transaction.Transaction;
  
  /**
   * Comment
   *
   * @author <a href="mailto:bill@jboss.org">Bill Burke</a>
   * @version $Revision: 1.1 $
   */
  @Local
  public interface TestLocal extends Test
  {
     void supports(Transaction tx) throws Exception;
     void requiresNew(Transaction tx) throws Exception;
  }
  
  
  
  1.1                  jboss-ejb3/src/test/org/jboss/ejb3/test/initial/TestRemote.java
  
  Index: TestRemote.java
  ===================================================================
  /*
   * JBoss, the OpenSource J2EE webOS
   *
   * Distributable under LGPL license.
   * See terms of license at gnu.org.
   */
  package org.jboss.ejb3.test.initial;
  
  import javax.ejb.Remote;
  
  /**
   * Comment
   *
   * @author <a href="mailto:bill@jboss.org">Bill Burke</a>
   * @version $Revision: 1.1 $
   */
  @Remote
  public interface TestRemote extends Test
  {
  }
  
  
  


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
jboss-cvs-commits mailing list
jboss-cvs-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-cvs-commits
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic