[jboss-user] [JBoss Seam] - Re: Seam email problem
martin.krajci
do-not-reply at jboss.com
Mon Sep 3 07:42:52 EDT 2007
My components.xml is in ear/war/WEB-INF. The debug="true" doesn't help because the componenet has not been read. I have changed the source of seam MailSender.java
private String sessionJndiName = "java:/Mail";
|
| @Create
| public void create() throws NamingException
| {
| if ( getSessionJndiName()==null )
| {
| createSession();
| } else {
| session = (Session) Naming.getInitialContext().lookup( getSessionJndiName() );
| }
| }
and now the email is send.
This is quite Hack, but I have run out of correct ideas.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080457#4080457
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080457
More information about the jboss-user
mailing list