• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Bear Bibeault
  • paul wheaton
Saloon Keepers:
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Mikalai Zaikin
  • Piet Souris
Bartenders:

EJB and JavaMail

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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();
properties.put("mail.smtp.host","myserver.com");
properties.put("mail.transport.protocol","smtp");
properties.put("mail.server","myserver.com");
session = Session.getInstance(properties, null);
session.setDebug(true);
========
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.(MessagingException.java:55) at javax.mail.SendFailedException.(SendFailedException.java:76) at javax.mail.Transport.send0(Transport.java:107) at javax.mail.Transport.send(Transport.java:81) at test.webmail.WebMail.doCommand(WebMail.java:203)

please help me

thanks
pankaj
 
What's wrong? Where are you going? Stop! Read this tiny ad:
Low Tech Laboratory
https://www.kickstarter.com/projects/paulwheaton/low-tech-0
reply
    Bookmark Topic Watch Topic
  • New Topic