Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: javaee6
    • Fix Version/s: milestone 1
    • Component/s: connectors
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      25

      Description

      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.

        Activity

        Hide
        Jagadish added a comment -

        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

        5) Refer the server.log after 5-10 seconds.
        -----------------------------------------------------------------------------
        [#|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;|<MDB>
        ---- Got a message |#]

        [#|2009-11-09T23:42:24.288+0530|INFO|glassfishv3.0|samples.connectors.mailconnector.ejb.mdb|_ThreadID=25;_ThreadName=Thread-1;|<MDB>
        SUBJECT: What's up|#]

        [#|2009-11-09T23:42:24.290+0530|INFO|glassfishv3.0|samples.connectors.mailconnector.ejb.mdb|_ThreadID=25;_ThreadName=Thread-1;|<MDB>
        SENDER : tom@localhost|#]

        [#|2009-11-09T23:42:24.290+0530|INFO|glassfishv3.0|samples.connectors.mailconnector.ejb.mdb|_ThreadID=25;_ThreadName=Thread-1;|<MDB>
        getCallerPrincipal() : tom|#]
        -----------------------------------------------------------------------------

        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)"

        Show
        Jagadish added a comment - 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 5) Refer the server.log after 5-10 seconds. ----------------------------------------------------------------------------- [#|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;|<MDB> ---- Got a message |#] [#|2009-11-09T23:42:24.288+0530|INFO|glassfishv3.0|samples.connectors.mailconnector.ejb.mdb|_ThreadID=25;_ThreadName=Thread-1;|<MDB> SUBJECT: What's up|#] [#|2009-11-09T23:42:24.290+0530|INFO|glassfishv3.0|samples.connectors.mailconnector.ejb.mdb|_ThreadID=25;_ThreadName=Thread-1;|<MDB> SENDER : tom@localhost|#] [#|2009-11-09T23:42:24.290+0530|INFO|glassfishv3.0|samples.connectors.mailconnector.ejb.mdb|_ThreadID=25;_ThreadName=Thread-1;|<MDB> getCallerPrincipal() : tom|#] ----------------------------------------------------------------------------- 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)"
        Hide
        Jagadish added a comment -

        documentation for the above steps at :
        javaee6/connectors/apps/mailconnector/docs/index.html

        Show
        Jagadish added a comment - documentation for the above steps at : javaee6/connectors/apps/mailconnector/docs/index.html

          People

          • Assignee:
            Jagadish
            Reporter:
            msreddy
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: