Issue Details (XML | Word | Printable)

Key: GLASSFISH-20771
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Bill Shannon
Reporter: arungupta
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

Properties not copied from @MailSessionDefinition to the injected session

Created: 20/Aug/13 05:01 PM   Updated: 26/Aug/13 09:38 PM   Resolved: 26/Aug/13 09:38 PM
Component/s: mail
Affects Version/s: 4.0_b89_RC5
Fix Version/s: 4.0

Time Tracking:
Not Specified

Participants: arungupta and Bill Shannon

 Description  « Hide

None of the properties from:

@MailSessionDefinition(name = "java:comp/myMailSession",
        properties = {

are copied over to the injected session as:

@Resource(lookup = "java:comp/myMailSession")
    Session session;

Runtime throws the following exception:

INFO: enterprise.deployment_mail_cfgexcp
at java.util.Hashtable.put(
at com.sun.enterprise.deployment.MailConfiguration.loadMailResources(
at com.sun.enterprise.deployment.MailConfiguration.<init>(
at org.glassfish.resources.javamail.deployer.MailResourceDeployer.installMailResource(
at org.glassfish.resources.javamail.deployer.MailResourceDeployer.installResource(
at org.glassfish.resources.javamail.deployer.MailResourceDeployer.deployResource(
at org.glassfish.resources.javamail.deployer.MailResourceDeployer.deployResource(
at com.sun.enterprise.resource.deployer.MailSessionDeployer.deployResource(

Bill Shannon added a comment - 26/Aug/13 09:38 PM

Checked in revision 62653 with fixes for this.