edu.cmu.mafia.Server
Class MessageHandlerBean

java.lang.Object
  extended by edu.cmu.mafia.Server.MessageHandlerBean

public class MessageHandlerBean
extends java.lang.Object


Field Summary
static int MSG_FAIL
           
 
Constructor Summary
MessageHandlerBean()
           
 
Method Summary
 void ejbActivate()
           
 void ejbCreate()
          Default create method
 void ejbPassivate()
           
 void ejbRemove()
           
 java.lang.String getBeanIP()
          Business method
 javax.naming.InitialContext getInitialContext()
           
 java.lang.String getMsgToAll()
          Business method
 java.lang.String getMsgToGroup(int group)
          Business method
 int getNextMsgNumber(int group)
          Business method
 int setMessage(java.lang.String msg, int group, int msgID, java.lang.String username)
          Business method
 void setSessionContext(SessionContext ctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MSG_FAIL

public static final int MSG_FAIL
See Also:
Constant Field Values
Constructor Detail

MessageHandlerBean

public MessageHandlerBean()
Method Detail

setSessionContext

public void setSessionContext(SessionContext ctx)
                       throws EJBException,
                              java.rmi.RemoteException
Throws:
EJBException
java.rmi.RemoteException

ejbRemove

public void ejbRemove()
               throws EJBException,
                      java.rmi.RemoteException
Throws:
EJBException
java.rmi.RemoteException

ejbActivate

public void ejbActivate()
                 throws EJBException,
                        java.rmi.RemoteException
Throws:
EJBException
java.rmi.RemoteException

ejbPassivate

public void ejbPassivate()
                  throws EJBException,
                         java.rmi.RemoteException
Throws:
EJBException
java.rmi.RemoteException

ejbCreate

public void ejbCreate()
               throws CreateException
Default create method

Throws:
CreateException

setMessage

public int setMessage(java.lang.String msg,
                      int group,
                      int msgID,
                      java.lang.String username)
Business method


getBeanIP

public java.lang.String getBeanIP()
Business method


getMsgToAll

public java.lang.String getMsgToAll()
Business method


getNextMsgNumber

public int getNextMsgNumber(int group)
Business method


getMsgToGroup

public java.lang.String getMsgToGroup(int group)
Business method


getInitialContext

public javax.naming.InitialContext getInitialContext()
                                              throws javax.naming.NamingException
Throws:
javax.naming.NamingException


Copyright (c) 2006 FaultTerminators. All Rights Reserved.