10 Replies Latest reply on Jul 2, 2013 10:12 AM by kieselhorst

    AS7.1 and Mail MDB

    sebcramer

      Hello.

       

      I am looking for a way to process incoming mails in a MDB. The "old fashioned" way was mail-ra.rar but it seems to me like that would be anachronistic. :-)

      Whilst browsing IronJacamar's repos I found the org.jboss.jca.adapters.mail.* package. That looks like it would do the trick but it doesn't seem to be included in the AS bundle. What would be the suggested way to implement such functionality?

       

      Can I simply deploy the mail-1.0.9.Final.rar to AS7.1?

       

      Thanks for any pointers.

       

      Cheers

       

      Sebastian

        • 1. Re: AS7.1 and Mail MDB
          jesper.pedersen

          You could, yes.

           

          But I think Tomaz is looking at a better integration in AS7 at the moment, so why not bring your use-cases to his attention over in the AS7 User Forum ?

          1 of 1 people found this helpful
          • 2. Re: AS7.1 and Mail MDB
            sebcramer

            I will scuffle over to the AS forum and ask Tomaz... 

            Thanks for the pointer.

             

            Edit: I moved the discussion over to the AS7 forum. Could anyone (Tomaz?) perhaps assist?

             

            Cheers

             

            Seb

             

            Nachricht geändert durch Sebastian Cramer

            • 3. Re: AS7.1 and Mail MDB
              sebcramer

              Completely forgot to add my use-case (duh!):

               

              I would like to poll a IMAP folder regularly. Upon receiving an email I would like to trigger some action through a MDB. Basically it's exactly the thing mail-ra.rar was doing in "the good ol' days".

               

              I was also thinking about perhaps integrating the whole thing with seam-mail (since I'm using seam already) but that's a different story entirely - and I would need to get in touch with Cody.

               

              Cheers

               

              Seb

              • 4. Re: AS7.1 and Mail MDB
                ctomc

                Helo,

                 

                As Jasper pointed out I am looking at implementing inflow support directly into AS7, implementation will be provided via mail subsystem.

                Implementation will be based on the code in JCA you found out.

                I have created jira so we can track implementation https://issues.jboss.org/browse/AS7-4245

                 

                --

                tomaz

                • 5. Re: AS7.1 and Mail MDB
                  sebcramer

                  Hello...

                   

                  Do you need any assistance implementing it?

                   

                  Seb

                  • 6. Re: AS7.1 and Mail MDB
                    ctomc

                    Sebastian,

                     

                    if you have time and will to implement this it would be great!

                    Best way to come to irc #jboss-as7 and we can disccuss this.

                    My nick there is ctomc

                     

                    --

                    tomaz

                    • 7. Re: AS7.1 and Mail MDB
                      brandon.l.myers

                      I have been working to deploy the IronJacamar mail resource adapter as described in the original post in order to get the inbound mail functionality in JBoss AS 7 along with the @ResourceAdapter and @MessageDriven annotations.  I have not met with much success with this approach, but I'm also somewhat new to these technologies.  Has anyone had any luck getting inbound mail functionality into JBoss 7 using IronJacamar Mail or any other approach?  Also, are there any updates on the mail subsystem inflow support?  Thanks for all the help I've received from many of you as a guest on this forum and for any other tips anyone could provide on this particular topic!

                       

                      Brandon

                      • 8. Re: AS7.1 and Mail MDB
                        sebcramer

                        Hello Brandon.

                         

                        I am still looking into the inflow support. Up to now my schedule (workwise) was very tight so I didn't get around to it. I think I can finish a first version in a couple of days.

                         

                        Cheers

                         

                        Sebastian

                        • 9. Re: AS7.1 and Mail MDB
                          brandon.l.myers

                          Thanks for the update Sebastian.  Based on what I have seen, there are a number of people that will be very appreciative of your efforts!

                           

                          Brandon

                          • 10. Re: AS7.1 and Mail MDB
                            kieselhorst

                            Which version of mail-ra.rar did you use? The latest stable (https://repository.jboss.org/nexus/content/groups/public/org/jboss/ironjacamar/mail/1.0.9.Final/mail-1.0.9.Final.rar)? Does anyone have a working sample configuration for AS7.2?