public class LogSessionBean extends Object implements javax.ejb.SessionBean
| Constructor and Description |
|---|
LogSessionBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
createLogTable()
Creates the database logtable
|
void |
ejbActivate() |
void |
ejbCreate() |
void |
ejbPassivate() |
void |
ejbRemove() |
void |
logMessage(String message)
Writes the specified message into the logtable
along with the timestamp and the current thread name.
|
void |
setSessionContext(javax.ejb.SessionContext sessionContext) |
public void createLogTable()
public void logMessage(String message)
message - the messagepublic void ejbCreate()
throws javax.ejb.CreateException
javax.ejb.CreateExceptionpublic void ejbActivate()
throws javax.ejb.EJBException,
RemoteException
ejbActivate in interface javax.ejb.SessionBeanjavax.ejb.EJBExceptionRemoteExceptionpublic void ejbPassivate()
throws javax.ejb.EJBException,
RemoteException
ejbPassivate in interface javax.ejb.SessionBeanjavax.ejb.EJBExceptionRemoteExceptionpublic void ejbRemove()
throws javax.ejb.EJBException,
RemoteException
ejbRemove in interface javax.ejb.SessionBeanjavax.ejb.EJBExceptionRemoteExceptionpublic void setSessionContext(javax.ejb.SessionContext sessionContext)
throws javax.ejb.EJBException,
RemoteException
setSessionContext in interface javax.ejb.SessionBeanjavax.ejb.EJBExceptionRemoteExceptionCopyright © 2003–2018. All rights reserved.