Hi Noel Your second point has solved it - thank you! I am no doubt being blind but can anyone explain how I register an Authenticator with a Session returned from JNDI? The only way I can see is to create another Session from the one returned, passing the same Properties and the Authenticator. Whereas this works it seems somewhat inelegent... Anyone know of an alternative please?
Thanks Dave ----- Original Message ----- From: "Noel J. Bergman" <[EMAIL PROTECTED]> To: "James Users List" <[EMAIL PROTECTED]> Sent: Sunday, April 25, 2004 5:19 PM Subject: RE: Authentication > I don't know if it applies in your case, not having looked too closely at > your code, but PLAIN AUTH was broken until recently. Please try 2.2.0RC2 > instead of 2.1.3. > > On another note, where are you registering the Authenticator with the > Session? I'm looking at org.apache.naming.factory.MailSession, and it > calls: > > Session session = Session.getInstance(props, null); > return (session); > > which means that there is no Authenticator registered with that Session as > it comes back from the JNDI ObjectFactory. > > --- Noel > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
