Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Implementation issue

 
vijay kumar
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm developing an application .in that i need a email component to send and receive the emails.

What is the difference between having it as java class or an EJB
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Every EJB server which is compliant with the EJB 2.0 spec must support JavaMail 1.1 Standard Extension (for sending mail only). Some servers also support the JavaMail API that allows connection to a message store, which could be an IMAP server or POP3 server, that contains the folders and messages which the server can access and read.

Should you use EJB for e-mail? I'd expect e-mail to be part of some business process which is running in an EJB container, as it would normally make no sense to use EJB just for e-mail.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic