Examples of create()


Examples of org.jboss.ejb3.core.proxy.spi.RemoteProxyFactory.create()

      // Allow override of the remote proxy
      if(!isLocal)
      {
         RemoteProxyFactory remoteProxyFactory = CurrentRemoteProxyFactory.get();
         if(remoteProxyFactory != null)
            return remoteProxyFactory.create(null);
      }
     
      // Lookup
      String proxyFactoryKey = this.getJndiRegistrar().getProxyFactoryRegistryKey(jndiName, smd, isLocal);
      Object factory = Ejb3RegistrarLocator.locateRegistrar().lookup(proxyFactoryKey);

Examples of org.jboss.ejb3.core.test.ejbthree1487.Greeter21Home.create()

  
   @Test
   public void testCreate() throws NamingException
   {
      Greeter21Home home = lookup("Greeter21Bean/home", Greeter21Home.class);
      Greeter21 bean = home.create();
      String me = new Date().toString();
      String actual = bean.sayHi(me);
      assertEquals("Hi " + me, actual);
   }
}

Examples of org.jboss.ejb3.core.test.ejbthree1512.MyStateless21Home.create()

   protected abstract String getEjbName();
  
   protected MyStateless21 getRemoteView() throws Exception
   {
      MyStateless21Home home = lookup(getEjbName() + "/home", MyStateless21Home.class);
      MyStateless21 bean = home.create();
      return bean;
   }
  
   @Test
   public void testCreate() throws Exception

Examples of org.jboss.ejb3.core.test.ejbthree1581.Bank21Home.create()

  
   @Test
   public void testCreation() throws Exception
   {
      Bank21Home home = lookup("BankBean21/localHome", Bank21Home.class);
      Bank21 bean = home.create();
      String actual = bean.getActivated();
      assertEquals("_CREATED", actual);
   }
  
   @Test

Examples of org.jboss.ejb3.core.test.ejbthree1585.ValueHolderHome.create()

  
   @Test
   public void test1() throws Exception
   {
      ValueHolderHome home = lookup("ValueHolderBean/localHome", ValueHolderHome.class);
      ValueHolder bean = home.create("value");
      String actual = bean.getValue();
      assertEquals("value", actual);
   }
}

Examples of org.jboss.ejb3.core.test.ejbthree1995.LegacyGreeterHome.create()

   @Test
   public void testCreate() throws Exception
   {
      LegacyGreeterHome home = lookup("LegacyGreeterBean/localHome", LegacyGreeterHome.class);

      LegacyGreeterLocal bean = home.create("testCreate");

      String result = bean.sayHi();

      assertEquals("Hi testCreate", result);
   }

Examples of org.jboss.ejb3.core.test.ejbthree1995.SecuredGreeter21RemoteHome.create()

   {
      SecurityContext sc = SecurityContextFactory.createSecurityContext("test");
      SecurityContextAssociation.setSecurityContext(sc);
           
      SecuredGreeter21RemoteHome home = lookup("SecuredGreeter21Bean/home", SecuredGreeter21RemoteHome.class);
      SecuredGreeter21Remote bean = home.create("testAnonymous");
      String result = bean.sayHi();

      assertEquals("Hi testAnonymous (anonymous)", result);
   }

Examples of org.jboss.ejb3.core.test.ejbthree670.MyStateful21Home.create()

  
   @Test
   public void test21() throws Exception
   {
      MyStateful21Home home = (MyStateful21Home) getInitialContext().lookup("MyStateful21Bean/home");
      MyStateful21 session = home.create();
      session.setName("Test");
      String actual = session.sayHello();
      assertEquals("Hi Test", actual);
      try
      {

Examples of org.jboss.ejb3.interceptors.InterceptorFactory.create()

               for(Class<?> interceptorClass : interceptorsAnnotation.value())
               {
                  Object interceptor = interceptors.get(interceptorClass);
                  if(interceptor == null)
                  {
                     interceptor = interceptorFactory.create(advisor, interceptorClass);
                     interceptors.put(interceptorClass, interceptor);
                  }
                  //Advisor interceptorAdvisor = ((Advised) interceptor)._getAdvisor();
                  //Advisor interceptorAdvisor = advisor.getManager().getAdvisor(interceptorClass);
                  ExtendedAdvisor interceptorAdvisor = ExtendedAdvisorHelper.getExtendedAdvisor(advisor, interceptor);

Examples of org.jboss.ejb3.test.cachepassivation.MockStatefulContainer.create()

      container.processMetadata();
      System.out.println("injectors = " + container.getInjectors());
      Ejb3Registry.register(container);
      try
      {
         container.create();
         container.setJaccContextId("none");
         container.start();
        
         Object id = container.createSession();
        
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.