[ 
https://issues.jboss.org/browse/SEAMMAIL-27?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12636282#comment-12636282
 ] 

Cody Lerum commented on SEAMMAIL-27:
------------------------------------

it is possible to use 
{code}
@Inject
private transient Instance<Session> session;
{code}

However you do leave yourself exposed to an NPE if the bean is serialized and 
deserialized
                
> Exception when injected mail session in a converstion scoped statful session 
> bean
> ---------------------------------------------------------------------------------
>
>                 Key: SEAMMAIL-27
>                 URL: https://issues.jboss.org/browse/SEAMMAIL-27
>             Project: Seam Mail
>          Issue Type: Bug
>            Reporter: hantsy bai
>            Assignee: Cody Lerum
>
> I tried to inject mail session instance in my stateful session 
> bean(conversion scoped), and got the exception, please refer the info in 
> forum post.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
seam-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/seam-issues

Reply via email to