com.j2biz.blogunity.services
Class MailService

java.lang.Object
  extended bycom.j2biz.blogunity.services.Service
      extended bycom.j2biz.blogunity.services.MailService
All Implemented Interfaces:
javax.jms.MessageListener

public class MailService
extends Service
implements javax.jms.MessageListener

Since:
0.1
Author:
michelson

Method Summary
 void destroy(SystemConfiguration config)
           
static MailService getInstance()
           
 javax.mail.Session getSession()
           
 void init(SystemConfiguration config)
           
 void onMessage(javax.jms.Message message)
           
 void sendMessage(javax.mail.internet.MimeMessage message)
          Send email message
 
Methods inherited from class com.j2biz.blogunity.services.Service
getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

public static MailService getInstance()

init

public void init(SystemConfiguration config)
          throws SystemException
Specified by:
init in class Service
Throws:
SystemException

destroy

public void destroy(SystemConfiguration config)
             throws SystemException
Specified by:
destroy in class Service
Throws:
SystemException

sendMessage

public void sendMessage(javax.mail.internet.MimeMessage message)
                 throws javax.mail.SendFailedException,
                        javax.mail.MessagingException
Send email message

Parameters:
message -
Throws:
javax.mail.MessagingException
javax.mail.SendFailedException

getSession

public javax.mail.Session getSession()

onMessage

public void onMessage(javax.jms.Message message)
Specified by:
onMessage in interface javax.jms.MessageListener


Copyright (c)j2biz.com