File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes EJB and JavaMail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB and JavaMail" Watch "EJB and JavaMail" New topic

EJB and JavaMail

Marilyn Monickam
Ranch Hand

Joined: Jun 05, 2001
Posts: 66
Can somebody explain to me what the EJB specification says under this section ?
23.1.1 APIs provided by Container
JavaMail 1.1 Standard Extension (for sending mail only)
Does it mean that I will not be able to write an enterprise bean to read mails from the server using JavaMail API?
Pankaj Jha

Joined: May 20, 2000
Posts: 21
even myself is also stuck up with the same problem , and i tried to use javamail api i worked but gives some error...
i am using the following code....
Properties properties = System.getProperties();
session = Session.getInstance(properties, null);
errors which comes.....
Sending failed; nested exception is: javax.mail.MessagingException: 250-DSN
javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.MessagingException: 250-DSN at javax.mail.MessagingException.( at javax.mail.SendFailedException.( at javax.mail.Transport.send0( at javax.mail.Transport.send( at test.webmail.WebMail.doCommand(

please help me

I agree. Here's the link:
subject: EJB and JavaMail
It's not a secret anymore!