User: starksm 
  Date: 01/06/10 11:28:30

  Modified:    src/main/org/jboss/test/naming/test TestENC.java
  Log:
  Add tests of bean ENC isolation
  
  Revision  Changes    Path
  1.2       +14 -0     jbosstest/src/main/org/jboss/test/naming/test/TestENC.java
  
  Index: TestENC.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/naming/test/TestENC.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestENC.java      2001/04/18 19:48:29     1.1
  +++ TestENC.java      2001/06/10 18:28:30     1.2
  @@ -13,6 +13,7 @@
   
   import org.jboss.test.util.Deploy;
   import org.jboss.test.naming.interfaces.TestENCHome;
  +import org.jboss.test.naming.interfaces.TestENCHome2;
   
   /** Tests of the secure access to EJBs.
   @author [EMAIL PROTECTED]
  @@ -41,6 +42,19 @@
   
           EJBObject bean = home.create();
           System.out.println("Created ENCBean");
  +        bean.remove();
  +    }
  +
  +    public void testENC2() throws Exception
  +    {
  +        InitialContext jndiContext = new InitialContext();
  +        Object obj = jndiContext.lookup("ENCBean0");
  +        obj = PortableRemoteObject.narrow(obj, TestENCHome2.class);
  +        TestENCHome2 home = (TestENCHome2) obj;
  +        System.out.println("Found TestENCHome2");
  +
  +        EJBObject bean = home.create();
  +        System.out.println("Created ENCBean0");
           bean.remove();
       }
   
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to