Package org.jboss.tutorial.ejb21_client_adaptors.bean

Examples of org.jboss.tutorial.ejb21_client_adaptors.bean.Session1RemoteHome.create()


  
   public static void accessHomes() throws Exception
   {
      InitialContext jndiContext = new InitialContext();
      Session1RemoteHome home = (Session1RemoteHome)jndiContext.lookup("Session1/home");
      Session1Remote session1 = home.create();
      String initValue1 = session1.getInitValue();
      System.out.println("Session1 init value is " + initValue1);
     
      String initValue2 = session1.getLocalSession2InitValue();
      System.out.println("Session2 init value is " + initValue2);
View Full Code Here


  
   public static void accessDeploymentDescriptorHomes() throws Exception
   {
      InitialContext jndiContext = new InitialContext();
      Session1RemoteHome home = (Session1RemoteHome)jndiContext.lookup("DeploymentDescriptorSession1/home");
      Session1Remote session1 = home.create();
      String initValue1 = session1.getInitValue();
      System.out.println("DeploymentDescriptor Session1 init value is " + initValue1);
     
      String initValue2 = session1.getLocalSession2InitValue();
      System.out.println("DeploymentDescriptor Session2 init value is " + initValue2);
View Full Code Here

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.