openamf/src/java/org/openamf/test/ejb TestStatefulEJBBean.java,1.3,1.4 TestStatelessEJBBean.java,1.3,1.4

[email protected] Sat, 09 Aug 2003 09:59:25 -0700
Newsgroups gmane.comp.java.openamf.cvs
Message-ID <[email protected]>
Update of /cvsroot/openamf/openamf/src/java/org/openamf/test/ejb
In directory sc8-pr-cvs1:/tmp/cvs-serv690/src/java/org/openamf/test/ejb

Modified Files:
	TestStatefulEJBBean.java TestStatelessEJBBean.java 
Log Message:
added license header to all source files

Index: TestStatefulEJBBean.java
===================================================================
RCS file: /cvsroot/openamf/openamf/src/java/org/openamf/test/ejb/TestStatefulEJBBean.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** TestStatefulEJBBean.java	8 Aug 2003 17:41:07 -0000	1.3
--- TestStatefulEJBBean.java	9 Aug 2003 16:59:23 -0000	1.4
***************
*** 1,62 ****
! package org.openamf.test.ejb;
! 
! import javax.ejb.CreateException;
! import javax.ejb.EJBException;
! import javax.ejb.SessionBean;
! import javax.ejb.SessionContext;
! 
! import org.apache.commons.logging.Log;
! import org.apache.commons.logging.LogFactory;
! 
! /**
!  * @author Roberto Saccon <[email protected]>
!  * @author Radoslaw Sliwinski <madlyr at users.sourceforge.net>
!  * @author Jason Calabrese <[email protected]>
!  * @ejb.bean name="TestStatefulEJB"
!  *	jndi-name="TestStatefulEJBBean"
!  *	type="Stateful" 
! **/
! public class TestStatefulEJBBean implements SessionBean {
! 
! 	private static Log log = LogFactory.getLog(TestStatefulEJBBean.class);
! 	private SessionContext sessionContext;
! 	private int invokeCount;
! 
! 	/**
! 	 * @ejb:create-method
! 	 */
! 	public void ejbCreate() throws CreateException {
! 		log.debug("TestStatefulEJBBean ejbCreate() invoked");
! 		sessionContext = null;
! 		invokeCount = 0;
! 	}
! 
! 	/**
! 	 * @ejb.interface-method
! 	 *	view-type="remote" 
! 	**/
! 	public String getEcho(String value) {
! 		invokeCount++;
! 		log.debug("TestStatefulEJBBean value: " + value + "; invokeCount = " + invokeCount);
! 		return "TestStatefulEJBBean: " + value + "; invokeCount = " + invokeCount;
! 	}
! 
! 	// -------------------------------------------------------------------------
! 	// Framework Callbacks
! 	// -------------------------------------------------------------------------
! 	public void setSessionContext(SessionContext sessionContext)
! 		throws EJBException {
! 		log.debug("TestStatefulEJBBean.setSessionContext: " + sessionContext);
! 		this.sessionContext = sessionContext;
! 	}
! 
! 	public void ejbActivate() throws EJBException {
! 	}
! 
! 	public void ejbPassivate() throws EJBException {
! 	}
! 
! 	public void ejbRemove() throws EJBException {
! 	}
! 
! }
--- 1,69 ----
! /*
!  * www.openamf.org
!  *
!  * Distributable under LGPL license.
!  * See terms of license at gnu.org.
!  */
! 
! package org.openamf.test.ejb;
! 
! import javax.ejb.CreateException;
! import javax.ejb.EJBException;
! import javax.ejb.SessionBean;
! import javax.ejb.SessionContext;
! 
! import org.apache.commons.logging.Log;
! import org.apache.commons.logging.LogFactory;
! 
! /**
!  * @author Roberto Saccon <[email protected]>
!  * @author Radoslaw Sliwinski <madlyr at users.sourceforge.net>
!  * @author Jason Calabrese <[email protected]>
!  * @ejb.bean name="TestStatefulEJB"
!  *	jndi-name="TestStatefulEJBBean"
!  *	type="Stateful" 
! **/
! public class TestStatefulEJBBean implements SessionBean {
! 
! 	private static Log log = LogFactory.getLog(TestStatefulEJBBean.class);
! 	private SessionContext sessionContext;
! 	private int invokeCount;
! 
! 	/**
! 	 * @ejb:create-method
! 	 */
! 	public void ejbCreate() throws CreateException {
! 		log.debug("TestStatefulEJBBean ejbCreate() invoked");
! 		sessionContext = null;
! 		invokeCount = 0;
! 	}
! 
! 	/**
! 	 * @ejb.interface-method
! 	 *	view-type="remote" 
! 	**/
! 	public String getEcho(String value) {
! 		invokeCount++;
! 		log.debug("TestStatefulEJBBean value: " + value + "; invokeCount = " + invokeCount);
! 		return "TestStatefulEJBBean: " + value + "; invokeCount = " + invokeCount;
! 	}
! 
! 	// -------------------------------------------------------------------------
! 	// Framework Callbacks
! 	// -------------------------------------------------------------------------
! 	public void setSessionContext(SessionContext sessionContext)
! 		throws EJBException {
! 		log.debug("TestStatefulEJBBean.setSessionContext: " + sessionContext);
! 		this.sessionContext = sessionContext;
! 	}
! 
! 	public void ejbActivate() throws EJBException {
! 	}
! 
! 	public void ejbPassivate() throws EJBException {
! 	}
! 
! 	public void ejbRemove() throws EJBException {
! 	}
! 
! }

Index: TestStatelessEJBBean.java
===================================================================
RCS file: /cvsroot/openamf/openamf/src/java/org/openamf/test/ejb/TestStatelessEJBBean.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** TestStatelessEJBBean.java	8 Aug 2003 17:41:07 -0000	1.3
--- TestStatelessEJBBean.java	9 Aug 2003 16:59:23 -0000	1.4
***************
*** 1,61 ****
! package org.openamf.test.ejb;
! 
! import javax.ejb.CreateException;
! import javax.ejb.EJBException;
! import javax.ejb.SessionBean;
! import javax.ejb.SessionContext;
! 
! import org.apache.commons.logging.Log;
! import org.apache.commons.logging.LogFactory;
! 
! /**
!  * @author Jason Calabrese <[email protected]>
!  * @author Roberto Saccon <[email protected]>
!  * @ejb.bean name="TestStatelessEJB"
!  *	jndi-name="TestStatelessEJBBean"
!  *	type="Stateless" 
! **/
! public class TestStatelessEJBBean implements SessionBean {
! 
! 	private static Log log = LogFactory.getLog(TestStatelessEJBBean.class);
! 	private SessionContext sessionContext;
! 	private int invokeCount;
! 
! 	/**
! 	 * @ejb:create-method
! 	 */
! 	public void ejbCreate() throws CreateException {
! 		log.debug("TestStatelessEJBBean ejbCreate() invoked");
! 		sessionContext = null;
! 		invokeCount = 0;
! 	}
! 
! 	/**
! 	 * @ejb.interface-method
! 	 *	view-type="remote" 
! 	**/
! 	public String getEcho(String value) {
! 		invokeCount++;
! 		log.debug("TestStatelessEJBBean value: " + value + "; invokeCount = " + invokeCount);
! 		return "TestStatelessEJBBean: " + value + "; invokeCount = " + invokeCount;
! 	}
! 
! 	// -------------------------------------------------------------------------
! 	// Framework Callbacks
! 	// -------------------------------------------------------------------------
! 	public void setSessionContext(SessionContext sessionContext)
! 		throws EJBException {
! 		log.debug("TestStatelessEJBBean.setSessionContext: " + sessionContext);
! 		this.sessionContext = sessionContext;
! 	}
! 
! 	public void ejbActivate() throws EJBException {
! 	}
! 
! 	public void ejbPassivate() throws EJBException {
! 	}
! 
! 	public void ejbRemove() throws EJBException {
! 	}
! 
! }
--- 1,68 ----
! /*
!  * www.openamf.org
!  *
!  * Distributable under LGPL license.
!  * See terms of license at gnu.org.
!  */
! 
! package org.openamf.test.ejb;
! 
! import javax.ejb.CreateException;
! import javax.ejb.EJBException;
! import javax.ejb.SessionBean;
! import javax.ejb.SessionContext;
! 
! import org.apache.commons.logging.Log;
! import org.apache.commons.logging.LogFactory;
! 
! /**
!  * @author Jason Calabrese <[email protected]>
!  * @author Roberto Saccon <[email protected]>
!  * @ejb.bean name="TestStatelessEJB"
!  *	jndi-name="TestStatelessEJBBean"
!  *	type="Stateless" 
! **/
! public class TestStatelessEJBBean implements SessionBean {
! 
! 	private static Log log = LogFactory.getLog(TestStatelessEJBBean.class);
! 	private SessionContext sessionContext;
! 	private int invokeCount;
! 
! 	/**
! 	 * @ejb:create-method
! 	 */
! 	public void ejbCreate() throws CreateException {
! 		log.debug("TestStatelessEJBBean ejbCreate() invoked");
! 		sessionContext = null;
! 		invokeCount = 0;
! 	}
! 
! 	/**
! 	 * @ejb.interface-method
! 	 *	view-type="remote" 
! 	**/
! 	public String getEcho(String value) {
! 		invokeCount++;
! 		log.debug("TestStatelessEJBBean value: " + value + "; invokeCount = " + invokeCount);
! 		return "TestStatelessEJBBean: " + value + "; invokeCount = " + invokeCount;
! 	}
! 
! 	// -------------------------------------------------------------------------
! 	// Framework Callbacks
! 	// -------------------------------------------------------------------------
! 	public void setSessionContext(SessionContext sessionContext)
! 		throws EJBException {
! 		log.debug("TestStatelessEJBBean.setSessionContext: " + sessionContext);
! 		this.sessionContext = sessionContext;
! 	}
! 
! 	public void ejbActivate() throws EJBException {
! 	}
! 
! 	public void ejbPassivate() throws EJBException {
! 	}
! 
! 	public void ejbRemove() throws EJBException {
! 	}
! 
! }




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01