Jakob,
I've changed code and now i have exception:
Setting the message with given args...SessionMailerBean.setMessage:
checkpoint 1
.
12:47:23,734 WARN [SystemExceptionInterceptor] SessionMailer
java.lang.UnsupportedOperationException: Method not yet implemented
at
javax.mail.internet.MimeMessage.addRecipients(MimeMessage.java:287)
at
org.queryphone.ejb.mail.SessionMailerBean.setMessage(SessionMailerBea
n.java:77)
at
org.queryphone.ejb.mail.SessionMailerBean.setMessage(SessionMailerBea
n.java:45)
at
org.queryphone.ejb.mail.SessionMailerBean$$FastClassByCGLIB$$71407382
.invoke(<generated>)
at
org.openejb.dispatch.AbstractMethodOperation.invoke(AbstractMethodOpe
It looks like addRecipients methods is not implemented.
Any advice?
Best regards,
Alex Andrushchak
Jakob Færch (Trifork) wrote:
Alex Andrushchak wrote:
There are my two methods from my MailerBean:
> [...]
message.setRecipients(Message.RecipientType.TO,
toRecipients);
There is an unresolved bug in Geronimo-1.0 (GERONIMO-1402) causing
setRecipients to behave exactly as you are experiencing - the address
is not recognized at all, so e.g. misconfiguring the SMTP server will
not trigger any errors (because the message is never sent).
Could you try calling the
message.addRecipients(Message.RecipientType, String)
method instead and report here whether that changes the behaviour?
Jakob