From: Bill D. <bde...@jb...> - 2005-09-30 18:43:54
|
User: bdecoste Date: 05/09/30 13:27:01 Added: docs/tutorial/ejb21_client_adaptors/src/org/jboss/tutorial/ejb21_client_adaptors/client Client.java Log: tutorial for ejb21 client adaptors (i.e. @RemoteHome, @LocalHome, @Init) Revision Changes Path 1.1 date: 2005/09/30 17:27:01; author: bdecoste; state: Exp;jboss-ejb3/docs/tutorial/ejb21_client_adaptors/src/org/jboss/tutorial/ejb21_client_adaptors/client/Client.java Index: Client.java =================================================================== /* * JBoss, the OpenSource J2EE webOS * * Distributable under LGPL license. * See terms of license at gnu.org. */ package org.jboss.tutorial.ejb21_client_adaptors.client; import org.jboss.tutorial.ejb21_client_adaptors.bean.Session1RemoteHome; import org.jboss.tutorial.ejb21_client_adaptors.bean.Session1Remote; import javax.naming.InitialContext; public class Client { public static void main(String[] args) throws Exception { accessHomes(); accessDeploymentDescriptorHomes(); } public static void accessHomes() throws Exception { InitialContext jndiContext = new InitialContext(); Session1RemoteHome home = (Session1RemoteHome)jndiContext.lookup("Session1Remote"); 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); } public static void accessDeploymentDescriptorHomes() throws Exception { InitialContext jndiContext = new InitialContext(); Session1RemoteHome home = (Session1RemoteHome)jndiContext.lookup("DeploymentDescriptorSession1Remote"); 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); } } |
From: Bill B. <bi...@jb...> - 2005-10-06 23:11:52
|
User: bill Date: 05/10/06 19:11:30 Added: docs/tutorial/ejb21_client_adaptors/src/org/jboss/tutorial/ejb21_client_adaptors/client Tag: Branch_4_0 Client.java Log: merge from head Revision Changes Path No revision No revision 1.1.2.2 +46 -0 jboss-ejb3/docs/tutorial/ejb21_client_adaptors/src/org/jboss/tutorial/ejb21_client_adaptors/client/Client.java (In the diff below, changes in quantity of whitespace are not shown.) Index: Client.java =================================================================== RCS file: Client.java diff -N Client.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ Client.java 6 Oct 2005 23:11:30 -0000 1.1.2.2 @@ -0,0 +1,46 @@ +/* + * JBoss, the OpenSource J2EE webOS + * + * Distributable under LGPL license. + * See terms of license at gnu.org. + */ +package org.jboss.tutorial.ejb21_client_adaptors.client; + +import org.jboss.tutorial.ejb21_client_adaptors.bean.Session1RemoteHome; +import org.jboss.tutorial.ejb21_client_adaptors.bean.Session1Remote; + +import javax.naming.InitialContext; + +public class Client +{ + public static void main(String[] args) throws Exception + { + accessHomes(); + + accessDeploymentDescriptorHomes(); + } + + public static void accessHomes() throws Exception + { + InitialContext jndiContext = new InitialContext(); + Session1RemoteHome home = (Session1RemoteHome)jndiContext.lookup("Session1Remote"); + 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); + } + + public static void accessDeploymentDescriptorHomes() throws Exception + { + InitialContext jndiContext = new InitialContext(); + Session1RemoteHome home = (Session1RemoteHome)jndiContext.lookup("DeploymentDescriptorSession1Remote"); + 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); + } +} |
From: Scott S. <sco...@jb...> - 2005-10-29 05:04:19
|
User: starksm Date: 05/10/29 01:03:57 Modified: docs/tutorial/ejb21_client_adaptors/src/org/jboss/tutorial/ejb21_client_adaptors/client Tag: Branch_4_0 Client.java Log: Update the LGPL header Revision Changes Path No revision No revision 1.1.2.3 +20 -5 jboss-ejb3/docs/tutorial/ejb21_client_adaptors/src/org/jboss/tutorial/ejb21_client_adaptors/client/Client.java (In the diff below, changes in quantity of whitespace are not shown.) Index: Client.java =================================================================== RCS file: /cvsroot/jboss/jboss-ejb3/docs/tutorial/ejb21_client_adaptors/src/org/jboss/tutorial/ejb21_client_adaptors/client/Client.java,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -u -b -r1.1.2.2 -r1.1.2.3 --- Client.java 6 Oct 2005 23:11:30 -0000 1.1.2.2 +++ Client.java 29 Oct 2005 05:03:57 -0000 1.1.2.3 @@ -1,9 +1,24 @@ /* - * JBoss, the OpenSource J2EE webOS - * - * Distributable under LGPL license. - * See terms of license at gnu.org. - */ +* JBoss, Home of Professional Open Source +* Copyright 2005, JBoss Inc., and individual contributors as indicated +* by the @authors tag. See the copyright.txt in the distribution for a +* full listing of individual contributors. +* +* This is free software; you can redistribute it and/or modify it +* under the terms of the GNU Lesser General Public License as +* published by the Free Software Foundation; either version 2.1 of +* the License, or (at your option) any later version. +* +* This software is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +* Lesser General Public License for more details. +* +* You should have received a copy of the GNU Lesser General Public +* License along with this software; if not, write to the Free +* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +* 02110-1301 USA, or see the FSF site: http://www.fsf.org. +*/ package org.jboss.tutorial.ejb21_client_adaptors.client; import org.jboss.tutorial.ejb21_client_adaptors.bean.Session1RemoteHome; |
From: Scott S. <sco...@jb...> - 2005-10-30 00:06:43
|
User: starksm Date: 05/10/29 20:06:30 Modified: docs/tutorial/ejb21_client_adaptors/src/org/jboss/tutorial/ejb21_client_adaptors/client Client.java Log: Update the jboss LGPL headers Revision Changes Path 1.2 +20 -5 jboss-ejb3/docs/tutorial/ejb21_client_adaptors/src/org/jboss/tutorial/ejb21_client_adaptors/client/Client.java (In the diff below, changes in quantity of whitespace are not shown.) Index: Client.java =================================================================== RCS file: /cvsroot/jboss/jboss-ejb3/docs/tutorial/ejb21_client_adaptors/src/org/jboss/tutorial/ejb21_client_adaptors/client/Client.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- Client.java 30 Sep 2005 17:27:01 -0000 1.1 +++ Client.java 30 Oct 2005 00:06:30 -0000 1.2 @@ -1,9 +1,24 @@ /* - * JBoss, the OpenSource J2EE webOS - * - * Distributable under LGPL license. - * See terms of license at gnu.org. - */ +* JBoss, Home of Professional Open Source +* Copyright 2005, JBoss Inc., and individual contributors as indicated +* by the @authors tag. See the copyright.txt in the distribution for a +* full listing of individual contributors. +* +* This is free software; you can redistribute it and/or modify it +* under the terms of the GNU Lesser General Public License as +* published by the Free Software Foundation; either version 2.1 of +* the License, or (at your option) any later version. +* +* This software is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +* Lesser General Public License for more details. +* +* You should have received a copy of the GNU Lesser General Public +* License along with this software; if not, write to the Free +* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +* 02110-1301 USA, or see the FSF site: http://www.fsf.org. +*/ package org.jboss.tutorial.ejb21_client_adaptors.client; import org.jboss.tutorial.ejb21_client_adaptors.bean.Session1RemoteHome; |
From: Bill D. <bde...@jb...> - 2006-01-13 17:59:38
|
User: bdecoste Date: 06/01/13 12:59:35 Modified: docs/tutorial/ejb21_client_adaptors/src/org/jboss/tutorial/ejb21_client_adaptors/client Client.java Log: updated tutorials Revision Changes Path 1.3 +2 -2 jboss-ejb3/docs/tutorial/ejb21_client_adaptors/src/org/jboss/tutorial/ejb21_client_adaptors/client/Client.java (In the diff below, changes in quantity of whitespace are not shown.) Index: Client.java =================================================================== RCS file: /cvsroot/jboss/jboss-ejb3/docs/tutorial/ejb21_client_adaptors/src/org/jboss/tutorial/ejb21_client_adaptors/client/Client.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- Client.java 30 Oct 2005 00:06:30 -0000 1.2 +++ Client.java 13 Jan 2006 17:59:35 -0000 1.3 @@ -38,7 +38,7 @@ public static void accessHomes() throws Exception { InitialContext jndiContext = new InitialContext(); - Session1RemoteHome home = (Session1RemoteHome)jndiContext.lookup("Session1Remote"); + Session1RemoteHome home = (Session1RemoteHome)jndiContext.lookup("Session1RemoteHome"); 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("DeploymentDescriptorSession1Remote"); + Session1RemoteHome home = (Session1RemoteHome)jndiContext.lookup("DeploymentDescriptorSession1RemoteHome"); Session1Remote session1 = home.create(); String initValue1 = session1.getInitValue(); System.out.println("DeploymentDescriptor Session1 init value is " + initValue1); |
From: Bill B. <bi...@jb...> - 2006-01-14 06:52:59
|
User: bill Date: 06/01/14 01:52:51 Modified: docs/tutorial/ejb21_client_adaptors/src/org/jboss/tutorial/ejb21_client_adaptors/client Tag: Branch_4_0 Client.java Log: merge from head Revision Changes Path No revision No revision 1.1.2.4 +2 -2 jboss-ejb3/docs/tutorial/ejb21_client_adaptors/src/org/jboss/tutorial/ejb21_client_adaptors/client/Client.java (In the diff below, changes in quantity of whitespace are not shown.) Index: Client.java =================================================================== RCS file: /cvsroot/jboss/jboss-ejb3/docs/tutorial/ejb21_client_adaptors/src/org/jboss/tutorial/ejb21_client_adaptors/client/Client.java,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -u -b -r1.1.2.3 -r1.1.2.4 --- Client.java 29 Oct 2005 05:03:57 -0000 1.1.2.3 +++ Client.java 14 Jan 2006 06:52:51 -0000 1.1.2.4 @@ -38,7 +38,7 @@ public static void accessHomes() throws Exception { InitialContext jndiContext = new InitialContext(); - Session1RemoteHome home = (Session1RemoteHome)jndiContext.lookup("Session1Remote"); + Session1RemoteHome home = (Session1RemoteHome)jndiContext.lookup("Session1RemoteHome"); 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("DeploymentDescriptorSession1Remote"); + Session1RemoteHome home = (Session1RemoteHome)jndiContext.lookup("DeploymentDescriptorSession1RemoteHome"); Session1Remote session1 = home.create(); String initValue1 = session1.getInitValue(); System.out.println("DeploymentDescriptor Session1 init value is " + initValue1); |
From: Bill B. <bi...@jb...> - 2006-03-21 00:00:25
|
User: bill Date: 06/03/20 19:00:22 Modified: docs/tutorial/ejb21_client_adaptors/src/org/jboss/tutorial/ejb21_client_adaptors/client Tag: Branch_4_0 Client.java Log: backmerge Revision Changes Path No revision No revision 1.1.2.5 +0 -0 jboss-ejb3/docs/tutorial/ejb21_client_adaptors/src/org/jboss/tutorial/ejb21_client_adaptors/client/Client.java (In the diff below, changes in quantity of whitespace are not shown.) |
From: Bill B. <bi...@jb...> - 2006-05-12 21:19:56
|
User: bill Date: 06/05/12 17:19:51 Modified: docs/tutorial/ejb21_client_adaptors/src/org/jboss/tutorial/ejb21_client_adaptors/client Tag: Branch_4_0 Client.java Log: docs Revision Changes Path No revision No revision 1.1.2.6 +0 -0 jboss-ejb3/docs/tutorial/ejb21_client_adaptors/src/org/jboss/tutorial/ejb21_client_adaptors/client/Client.java (In the diff below, changes in quantity of whitespace are not shown.) |