File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Distributed Java and the fly likes Implementation issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Implementation issue" Watch "Implementation issue" New topic

Implementation issue

vijay kumar
Ranch Hand

Joined: Nov 05, 2005
Posts: 58
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

Joined: Sep 29, 2002
Posts: 1683
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.

SCJP 1.4, SCWCD 1.3, SCBCD 1.3
I agree. Here's the link:
subject: Implementation issue
It's not a secret anymore!