7 Replies Latest reply on May 3, 2006 6:11 PM by gohip

    How to get JBMS to post to asp.net webservice

    gohip

      Hi kids,

      I have a new task, yeeeaah!

      on incoming mail, post the data to a ASP.net webservice

      any ideas where to start, i was thinking it was maillistener, as I kept seeing mention of it, but upon looking at source, I cannot really see that the mail listener has anything to do with receiving

      What I would like to do
      JBMS Receives email
      Just before dumping data in dbase, it calls either another class, that posts to webservice

      or it, itself posts to webservice

      any hints pppllleeeaasssee as to where to begin looking?

      Any help really appreciated!

      Jason Glass

        • 1. Re: How to get JBMS to post to asp.net webservice
          acoliver

          yes. mail listener. pick the incoming or delivery chain. you can even replace the jms mail listener with one your web service and not deliver to a real user.

          • 2. Re: How to get JBMS to post to asp.net webservice
            gohip

            thanks acoliver, but....

            I searched visually, and in the maillisteners package, dont see exactly what you are speaking of

            i then searched, for delivery chain, the search returned nothing, including a search for deliverychain

            i then search for incoming, and got these results, but again, visually, they dont appealing

            any specific java classes I could look at, off top of your head, or something more definitve to search for? I finally got the dang thing to build with netbeans, and am ready to begin, but am at a loss where

            seems like the maillistener package classes just deal with sending and not receiving

            sorry for hastle, i apologize!

            utmost sincerity,

            jay glass

            • 3. Re: How to get JBMS to post to asp.net webservice
              gohip

              oops, forgot the search results

              [JMSSink.class at line 38, column 1227] Exceptions
              
              [Protocol.java at line 49, column 14] * parse an incoming request by pulling the "command" off of the input stream and constructing
              
              [SizeLimitedInputStream.java at line 64, column 8] * of incoming data. The size limit is configured in the conf file,
              
              [DeliveryMDB.java at line 61, column 28] // Convert the incoming message to a Mail message.
              
              [LocalDeliveryMessageDrivenBean.java at line 62, column 16] * Handles incoming email messages from the queue and delivers them
              
              [LocalDeliveryMessageDrivenBean.java at line 65, column 30] * @param jmsMessage the incoming JMS Message
              
              [LocalDeliveryMessageDrivenBean.java at line 71, column 28] // Convert the incoming message to a Mail message.
              
              [MailListMessageDrivenBean.java at line 64, column 16] * Handles incoming email messages from the queue and delivers them
              
              [MailListMessageDrivenBean.java at line 67, column 30] * @param jmsMessage the incoming JMS Message
              
              [MailListMessageDrivenBean.java at line 73, column 28] // Convert the incoming message to a Mail message.
              
              [NukesPosterMessageDrivenBean.java at line 59, column 16] * Handles incoming email messages from the queue and delivers them
              
              [NukesPosterMessageDrivenBean.java at line 62, column 30] * @param jmsMessage the incoming JMS Message
              
              [RemoteDeliveryMessageDrivenBean.java at line 68, column 16] * Handles incoming email messages from the queue and delivers them to the
              
              [RemoteDeliveryMessageDrivenBean.java at line 72, column 23] * the incoming JMS Message
              
              [RemoteDeliveryMessageDrivenBean.java at line 84, column 28] // Convert the incoming message to a Mail message.
              
              [StandardMailHeaders.java at line 66, column 22] * processing of incoming mail.
              
              [TSIG.java at line 285, column 33] * Verifies a TSIG record on an incoming message. Since this is only called
              
              [TSIG.java at line 365, column 33] * Verifies a TSIG record on an incoming message. Since this is only called
              
              [TSIG.java at line 416, column 34] * Verifies a TSIG record on an incoming message that is part of a
              
              [Zone.java at line 184, column 21] * @param xfrin The incoming zone transfer to execute.
              
              [ZoneTransferIn.java at line 29, column 7] * An incoming DNS Zone Transfer. To use this class, first initialize an



              • 4. Re: How to get JBMS to post to asp.net webservice
                acoliver

                Start in your jboss-service.xml in server/default/deploy/mail.ear/mail.sar

                Find the JMS Mail Listener. See how it is wired in. USe it as an emample for creating your own. And in fact it will sit next to the JMS mail listener in the chain.

                • 5. Re: How to get JBMS to post to asp.net webservice
                  acoliver

                  for what you're doing you could even just add a second JMSMailListener to the mail listener chain. The JMS Mail Listener could be configured for another queue and use an MDB.

                  -Adny

                  • 6. Re: How to get JBMS to post to asp.net webservice
                    gohip

                    Thanks Andrew, you make it sound so simple

                    I'll go in with the assumption that it is as simple as you say, and maybe my mind wont make it so difficult as it tends to do

                    Let yeah know how it works out!

                    Have a good one.

                    Jay Glass
                    http://IChiBanComputers.Com

                    • 7. Re: How to get JBMS to post to asp.net webservice
                      gohip

                      Yes, Andrew and all, Just FYI, it was as simple as stated, thanks again!

                      Sincerely,

                      Jason Glass
                      http://ichibancomputers.com