|
Email Answering System Version 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ninecode.email.beans.master.EmailResponder
Reply to original email sender with contents of a jms message.
Field Summary | |
protected Connection |
mConnection
|
protected RecordFactory |
mFactory
|
Constructor Summary | |
EmailResponder()
Creates a new instance of EmailResponder |
Method Summary | |
void |
ejbCreate()
Startup call. |
void |
ejbRemove()
Shutdown call. |
Connection |
getConnection()
|
RecordFactory |
getFactory()
|
void |
onMessage(Message message)
Process a message. |
void |
sendMessage(InternetAddress address,
String subject,
String text,
int retries)
Send a message using the resource adapter. |
void |
sendMessage(TextMessage msg)
Send a message using the resource adapter. |
void |
setMessageDrivenContext(MessageDrivenContext mdc)
Remember the context for this instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Connection mConnection
protected RecordFactory mFactory
Constructor Detail |
public EmailResponder()
Method Detail |
public void ejbCreate()
public Connection getConnection()
public RecordFactory getFactory()
public void sendMessage(InternetAddress address, String subject, String text, int retries)
address
- The address to send it to.subject
- The subject line.text
- The body of the message.retries
- The number of times to retry on resource adapter failure.public void sendMessage(TextMessage msg)
msg
- The message to send. Property 'To' and 'Subject' are used as
the recipient and subject line while the text of the message is sent as
the body.public void ejbRemove() throws EJBException
ejbRemove
in interface MessageDrivenBean
EJBException
public void setMessageDrivenContext(MessageDrivenContext mdc) throws EJBException
setMessageDrivenContext
in interface MessageDrivenBean
EJBException
public void onMessage(Message message)
onMessage
in interface MessageListener
message
- The message to process.
|
Email Answering System Version 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |