Closed glassfishrobot closed 15 years ago
Reported by msreddy
@h2002044 said: hi Sreeni, It works fine for me out of the box.
Assuming that mock-javamail.jar is available in lib directory of GF (restart needed after copying the .jar)
javaee6/connectors/apps/mailconnector/mailconnector-ear/> ant all will build, deploy .rar and the application that uses the .rar, create necessary javamail resources.
1) access : http://localhost:8080/mailconnector-war/index.html
2) Click : "Send an email message" 3) Provide the following input : From : tom@localhost To : joe@localhost Subject : What's up Message : Hi Joe !
Press send
4) click : Return to main Page
[#|2009-11-09T23:42:24.240+0530|INFO|glassfishv3.0|samples.connectors.mailconnector.ra.inbound|_ThreadID=19;_ThreadName=Thread-1;|[PT] scheduling a delivery FROM: joe::INBOX@localhost|#]
[#|2009-11-09T23:42:24.286+0530|INFO|glassfishv3.0|samples.connectors.mailconnector.ra.inbound|_ThreadID=25;_ThreadName=Thread-1;|[SC] Password validation callback succeded for user : tom|#]
[#|2009-11-09T23:42:24.287+0530|INFO|glassfishv3.0|samples.connectors.mailconnector.ejb.mdb|_ThreadID=25;_ThreadName=Thread-1;|
[#|2009-11-09T23:42:24.288+0530|INFO|glassfishv3.0|samples.connectors.mailconnector.ejb.mdb|_ThreadID=25;_ThreadName=Thread-1;|
[#|2009-11-09T23:42:24.290+0530|INFO|glassfishv3.0|samples.connectors.mailconnector.ejb.mdb|_ThreadID=25;_ThreadName=Thread-1;|
Please follow the steps under the sections : "Mail Server" "Configuration" "Building, Deploying, and Running the Application" "Exercising the Outbound Resource Adapter" "Exercising the Inbound Resource Adapter (SecurityContext)"
@h2002044 said: documentation for the above steps at : javaee6/connectors/apps/mailconnector/docs/index.html
Was assigned to h2002044
This issue was imported from java.net JIRA GLASSFISH_SAMPLES-25
Marked as cannot reproduce on Monday, November 9th 2009, 2:20:37 am
Perhaps it is not evident from the doc., after doing 'ant all', creating outbound message unable to access inbound message. I get the following error.
Mailbox: joe-Inbox@localhost ERROR when attempting to open this mailbox: joe-Inbox@localhost Error in allocating a connection. Cause: Connection refused Review the values you entered and try again.
I tried giving all forms of values for host name, still it fails.
Environment
Operating System: All Platform: All
Affected Versions
[javaee6]