com.javaranch.common
Class SessionEJB

java.lang.Object
  |
  +--com.javaranch.common.EJB
        |
        +--com.javaranch.common.SessionEJB

public abstract class SessionEJB
extends EJB

Inheriting this abstract class provides empty SessionBean methods. - - - - - - - - - - - - - - - - -

Copyright (c) 1998-2004 Paul Wheaton

You are welcome to do whatever you want to with this source file provided that you maintain this comment fragment (between the dashed lines). Modify it, change the package name, change the class name ... personal or business use ... sell it, share it ... add a copyright for the portions you add ...

My goal in giving this away and maintaining the copyright is to hopefully direct developers back to JavaRanch.

The original source can be found at JavaRanch

- - - - - - - - - - - - - - - - -

Author:
Paul Wheaton

Field Summary
protected  SessionContext ctx
           
 
Constructor Summary
SessionEJB()
           
 
Method Summary
 void ejbCreate()
          Override this only if you have to.
 void ejbRemove()
          Override this only if you have to.
 void setSessionContext(SessionContext ctx)
          The context is grabbed and stored in ctx for any of your future context needs.
 
Methods inherited from class com.javaranch.common.EJB
ejbActivate, ejbPassivate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ctx

protected SessionContext ctx
Constructor Detail

SessionEJB

public SessionEJB()
Method Detail

setSessionContext

public void setSessionContext(SessionContext ctx)
The context is grabbed and stored in ctx for any of your future context needs.

Should you choose to override this method, please call super.setEntityContext().


ejbCreate

public void ejbCreate()
               throws CreateException
Override this only if you have to.

CreateException

ejbRemove

public void ejbRemove()
Override this only if you have to.



Copyright ©2004 Paul Wheaton All Rights Reserved