Email Answering System
Version 1.0

com.ninecode.email.beans.slave.phone
Class PhoneBooth

java.lang.Object
  |
  +--com.ninecode.email.beans.slave.Robot
        |
        +--com.ninecode.email.beans.slave.phone.PhoneBooth
All Implemented Interfaces:
EnterpriseBean, MessageDrivenBean, MessageListener, Serializable

public class PhoneBooth
extends Robot

Message driven bean to handle phone requests.

See Also:
Serialized Form

Field Summary
protected  PhoneBean mPhoneBean
           
 
Constructor Summary
PhoneBooth()
           
 
Method Summary
 void ejbCreate()
          Startup call.
 void ejbRemove()
          Shutdown call.
 void onMessage(Message message)
          Process a message.
 
Methods inherited from class com.ninecode.email.beans.slave.Robot
replyMessage, setMessageDrivenContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mPhoneBean

protected PhoneBean mPhoneBean
Constructor Detail

PhoneBooth

public PhoneBooth()
Method Detail

ejbCreate

public void ejbCreate()
               throws CreateException
Startup call. Connects the bean to the database.

Overrides:
ejbCreate in class Robot
Throws:
CreateException - If the initial context could not be established or does not contain the 'jdbc/Dictionary' entry or the database connection could not be obtained.

ejbRemove

public void ejbRemove()
               throws EJBException
Shutdown call. Closes the database connection.

Specified by:
ejbRemove in interface MessageDrivenBean
Overrides:
ejbRemove in class Robot
Throws:
EJBException - if the close operation failed.

onMessage

public void onMessage(Message message)
Process a message.

Specified by:
onMessage in interface MessageListener
Specified by:
onMessage in class Robot
Parameters:
message - The message to process.
See Also:
Robot.replyMessage(javax.jms.Message, java.lang.String, java.lang.String)

Email Answering System
Version 1.0

Copyright © 2003 Derrick Oswald. All rights reserved.