[jboss-cvs] JBossAS SVN: r61036 - branches/Branch_4_2/ejb3/docs/tutorial/ejb21_client_adaptors/src/org/jboss/tutorial/ejb21_client_adaptors/client.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Mar 1 19:03:45 EST 2007


Author: bdecoste
Date: 2007-03-01 19:03:45 -0500 (Thu, 01 Mar 2007)
New Revision: 61036

Modified:
   branches/Branch_4_2/ejb3/docs/tutorial/ejb21_client_adaptors/src/org/jboss/tutorial/ejb21_client_adaptors/client/Client.java
Log:
fix and tests for new home jndi binding default and annotations

Modified: branches/Branch_4_2/ejb3/docs/tutorial/ejb21_client_adaptors/src/org/jboss/tutorial/ejb21_client_adaptors/client/Client.java
===================================================================
--- branches/Branch_4_2/ejb3/docs/tutorial/ejb21_client_adaptors/src/org/jboss/tutorial/ejb21_client_adaptors/client/Client.java	2007-03-01 23:56:41 UTC (rev 61035)
+++ branches/Branch_4_2/ejb3/docs/tutorial/ejb21_client_adaptors/src/org/jboss/tutorial/ejb21_client_adaptors/client/Client.java	2007-03-02 00:03:45 UTC (rev 61036)
@@ -38,7 +38,7 @@
    public static void accessHomes() throws Exception
    {
       InitialContext jndiContext = new InitialContext();
-      Session1RemoteHome home = (Session1RemoteHome)jndiContext.lookup("Session1RemoteHome");
+      Session1RemoteHome home = (Session1RemoteHome)jndiContext.lookup("Session1/home");
       Session1Remote session1 = home.create();
       String initValue1 = session1.getInitValue();
       System.out.println("Session1 init value is " + initValue1);
@@ -50,7 +50,7 @@
    public static void accessDeploymentDescriptorHomes() throws Exception
    {
       InitialContext jndiContext = new InitialContext();
-      Session1RemoteHome home = (Session1RemoteHome)jndiContext.lookup("DeploymentDescriptorSession1RemoteHome");
+      Session1RemoteHome home = (Session1RemoteHome)jndiContext.lookup("DeploymentDescriptorSession1/home");
       Session1Remote session1 = home.create();
       String initValue1 = session1.getInitValue();
       System.out.println("DeploymentDescriptor Session1 init value is " + initValue1);




More information about the jboss-cvs-commits mailing list