AW: Problem with JNDI Resources "JavaMail Sessions"

2008-10-02 Thread Schneider, Sebastian
Hey guys, I found the solution. I had import the wrong Session-class. So long, Sebastian > Hey Team, > > I have some problems with the example of JNDI Resources "JavaMail > Sessions". > > I get the error: The constructor MimeMessage(Session) is undefined > > A extract from the HOW-TO page:

Problem with JNDI Resources "JavaMail Sessions"

2008-10-02 Thread Schneider, Sebastian
Hey Team, I have some problems with the example of JNDI Resources "JavaMail Sessions". I get the error: The constructor MimeMessage(Session) is undefined A extract from the HOW-TO page: Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup("java:comp/env"); Session se