1 2 Previous Next 27 Replies Latest reply on Sep 11, 2008 11:37 AM by stlecho Go to original post
      • 15. Re: SMTP/POP Provider

        I already configured and developed:
        1. schedule-provider

        2. AppMsgComposer action, to encode the list of mails (now I'm retrieving objects from a table)

        3. ExpandRequests action, to transform one provided message to N messages, each message invoked to a service (org.jboss.soa.esb.client.ServiceInvoker)

        4. EmailAction action, that send an email with each message, using org.jboss.soa.esb.helpers.Email.



        Now, I was beginning to review the mail-ra.rar (InboundJavaMail / MDB - Message Driven Bean), included in the seam distribution inside RHDS beta 1.

        So.... is mail-ra.rar not working ?


        Thanks
        Erik

        
        /*
         * ExpandRequests.java
         *
         * Created on 14 de septiembre de 2007, 16:47
         *
         */
        
        ...
        import org.jboss.soa.esb.message.Message; // jbossesb-rosetta.jar
        import org.jboss.soa.esb.message.format.MessageFactory; // jbossesb-rosetta.jar
        import org.jboss.soa.esb.message.format.MessageType; // jbossesb-rosetta.jar
        import org.jboss.soa.esb.client.ServiceInvoker;
        
        ...
        public class ExpandRequests extends AbstractActionLifecycle {
        ...
         int cnt = 1;
         for( Iterator iter = lComprofilers.iterator(); iter.hasNext();) {
         Serializable sObject = (Serializable)iter.next();
        
         invokeService(sObject);
        
         String msg = String.format("Expanded %s %02d", sId, cnt++);
         System.out.println(msg);
         }
        ...
         private void invokeService(Serializable sObject) throws org.jboss.soa.esb.listeners.message.MessageDeliverException, java.io.IOException {
        ...
         ServiceInvoker invoker;
        
         Message requestMessage;
        
         invoker = new ServiceInvoker("ProcessRequests", "InputRequest");
        
         requestMessage = MessageFactory.getInstance().getMessage(MessageType.JBOSS_XML);
        
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         ObjectOutputStream oos = new ObjectOutputStream(baos);
         oos.writeObject(sObject);
        
         requestMessage.getBody().setByteArray(baos.toByteArray());
         ...
        
         invoker.deliverAsync(requestMessage); // no waiting for a response
         }
        ....
        


        
        /*
         * EmailAction.java
         *
         * Created on 14 de septiembre de 2007, 18:20
         *
         */
        
        package .....esb.action;
        
        import org.jboss.soa.esb.actions.AbstractActionLifecycle;
        import org.jboss.soa.esb.helpers.ConfigTree;
        import org.jboss.soa.esb.message.Message;
        import org.jboss.soa.esb.actions.ActionProcessingException;
        import org.jboss.soa.esb.helpers.Email;
        
        /**
         *
         * @author eric
         */
        public class EmailAction extends AbstractActionLifecycle {
        
         protected ConfigTree _config;
        
         /** Creates a new instance of EmailAction */
         public EmailAction(ConfigTree config) { _config = config; }
        
        ...
         public Message process(Message message) {
        ...
         sendEmail("myemail@mydomain.com", message);
        
         System.out.println("Sent " + sId);
        
         return message;
         }
        
         public void exceptionHandler(Message message, Throwable exception) {
         System.out.println(exception.getMessage());
         }
        
         public void sendEmail(String emailTo, String message) {
         try {
         if (null==emailTo) {
         return;
         }
        
         Email emailMessage = new Email();
         emailMessage.setSendTo(emailTo);
         emailMessage.setSubject("Test Email " + message);
        
         String emailFrom = emailTo;
         emailMessage.setFrom(emailFrom);
        
         emailMessage.setMessage(message);
         emailMessage.sendMessage();
        
         } catch (Exception e) {
         e.printStackTrace();
         }
         }
        


        • 16. Re: SMTP/POP Provider
          kconner

          The issue is not with mail-ra but with jUDDI.

          We should have been able to bypass the jUDDI issue using a property of the JCA gateway but, unfortunately, this property is not passed through the configuration mapper.

          I'm about to register the relevant JIRA issues.

          • 17. Re: SMTP/POP Provider

             

            "burrsutter" wrote:
            Do you mean an POP gateway?

            SMTP is more for sending emails (out of the bus) while POP would be more for receiving emails. With that said, perhaps you want the ESB to itself be an email server which is not something I think we intend to do. Much like the FTP provider, you setup and configure another 3rd party FTP server and we poll it for new files.



            I meant an POP gateway for receiving mails (with files attachment). So that we could recieve files attached to mails that are send to the pop gateway.

            Meissa



            • 18. Re: SMTP/POP Provider


              I thinking to end my test, with a forward applicationj, that pops messages and forwards them to another mail server.

              Please, let me know if there's a workaround to the jUDDI issue.

              Thanks,
              Eric

              • 19. Re: SMTP/POP Provider

                1. I tested InboundJavaMail at AS-level, with mail-ra.rar. It's working OK. I'm going to end with this alternative my example (InboundJavaMail POP3-MDB-pooling, combined with ExpandRequests and EmailAction)

                2. After that, I tested the jca-gateway with mail-ra.rar at ESB level, with an JmsEndpoint (implements InflowGateway, MailListener). I found this blocking error. I think It's the same you already found:

                17:23:40,428 WARN [AbstractThreadedManagedLifecycle] Unexpected error from doRun()
                java.lang.RuntimeException: Endpoint activation failed ra=jboss.jca:service=RARDeployment,name='mail-ra.rar' activationSpec=null
                 at org.jboss.soa.esb.listeners.jca.JBoss42ActivationBridge.activate(JBoss42ActivationBridge.java:129)
                 at org.jboss.soa.esb.listeners.jca.JcaInflowGateway.doRun(JcaInflowGateway.java:239)
                 at org.jboss.soa.esb.listeners.lifecycle.AbstractThreadedManagedLifecycle.run(AbstractThreadedManagedLifecycle.java:115)
                 at java.lang.Thread.run(Thread.java:595)
                Caused by: org.jboss.deployment.DeploymentException: Error for ActivationSpec class org.jboss.resource.adapter.mail.inflow.MailActivationSpec as JavaBean; - nested throwable: (java.beans.IntrospectionException: No property found for: destinationType on JavaBean: MailActivationSpec(mailServer=mailhost, storeProtocol=imap, mailFolder=null, pollingInterval=60000, messageSelector=null, userName=null, maxMessages=1, debug=false))
                 at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53)
                 at org.jboss.resource.deployment.ActivationSpecFactory.createActivationSpec(ActivationSpecFactory.java:135)
                 at org.jboss.resource.deployment.RARDeployment.createActivationSpec(RARDeployment.java:254)
                 at org.jboss.resource.deployment.RARDeployment.internalInvoke(RARDeployment.java:218)
                 at org.jboss.system.ServiceDynamicMBeanSupport.invoke(ServiceDynamicMBeanSupport.java:156)
                 at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.soa.esb.listeners.jca.JBoss42ActivationBridge.activate(JBoss42ActivationBridge.java:124)
                 ... 3 more
                Caused by: java.beans.IntrospectionException: No property found for: destinationType on JavaBean: MailActivationSpec(mailServer=mailhost, storeProtocol=imap, mailFolder=null, pollingInterval=60000, messageSelector=null, userName=null, maxMessages=1, debug=false)
                 at org.jboss.util.propertyeditor.PropertyEditors.mapJavaBeanProperties(PropertyEditors.java:350)
                 at org.jboss.util.propertyeditor.PropertyEditors.mapJavaBeanProperties(PropertyEditors.java:281)
                 at org.jboss.resource.deployment.ActivationSpecFactory.createActivationSpec(ActivationSpecFactory.java:129)
                 ... 9 more
                


                Thanks,
                Erik



                • 20. Re: SMTP/POP Provider
                  kconner

                  Hiya Erik.

                  It looks like you have a configuration error in the activation spec of the jca-gateway.

                  The errors I discovered are logged here

                  http://jira.jboss.com/jira/browse/JBESB-1051 and http://jira.jboss.com/jira/browse/JBESB-1052

                  The second one is fixed in HEAD and this allows us to bypass the jUDDI issue by disabling the transactions.

                  I managed to get it working last Friday so I'll add a page to the wiki which describes the process.

                  • 21. Re: SMTP/POP Provider


                    Kevin,

                    To avoid the issue with context of a transaction inside MailListener (onMessage), I changed to send the emails as JMS Text Messages, and received them with a gateway listener.

                    About JCA-gateway, I'll review the configuration.

                    Thanks,
                    Erik

                    • 22. Re: SMTP/POP Provider
                      kconner

                      Hiya Erik.

                      I have put something up on the wiki which (hopefully) explains the steps.

                      It also contains a standalone quickstart which demonstrates mail inflow, although it is raw and needs tidying up. You will need to build from HEAD in order to use the JCA inflow.

                      The wiki page is located at the following http://wiki.jboss.org/wiki/Wiki.jsp?page=UsingMailInflowWithJBossESB.

                      • 23. Re: SMTP/POP Provider


                        Kevin,

                        I solved my problem with activation-config at JCA-gateway. It's like your example. But I'm using the mail-ra.rar version bundled with RHDS Beta 1. One difference, it has . So you can review the smtp dialog.

                        Now I'm checking why It's receiving the mails, but not callling the endpoint.

                        I downloaded helloworld_mail.zip. I tested at 4.2GA. It does nothing, no error or exception. Is this the jUDDI issue ?

                        Thanks,
                        Erik



                        • 24. Re: SMTP/POP Provider

                          I said:
                          One difference, it has \<property name="debug" value="true"\/\>

                          • 25. Re: SMTP/POP Provider


                            I reproduced the jUDDI error with helloworld_mail.zip and mail-ra.rar from RHDS beta1 with debug on true:

                            14:00:03,664 INFO [STDOUT] DEBUG: JavaMail version 1.4ea
                            14:00:03,665 INFO [STDOUT] DEBUG: java.io.FileNotFoundException: /usr/lib/j2sdk1.5-sun/jre/lib/javamail.providers (No such file or directory)
                            14:00:03,667 INFO [STDOUT] DEBUG: !anyLoaded
                            14:00:03,667 INFO [STDOUT] DEBUG: not loading resource: /META-INF/javamail.providers
                            14:00:03,669 INFO [STDOUT] DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
                            14:00:03,669 INFO [STDOUT] DEBUG: Tables of loaded providers
                            14:00:03,669 INFO [STDOUT] DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]}
                            14:00:03,669 INFO [STDOUT] DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]}
                            14:00:03,670 INFO [STDOUT] DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
                            14:00:03,674 INFO [STDOUT] DEBUG: !anyLoaded
                            14:00:03,675 INFO [STDOUT] DEBUG: not loading resource: /META-INF/javamail.address.map
                            14:00:03,675 INFO [STDOUT] DEBUG: java.io.FileNotFoundException: /usr/lib/j2sdk1.5-sun/jre/lib/javamail.address.map (No such file or directory)
                            14:00:03,675 INFO [STDOUT] DEBUG: setDebug: JavaMail version 1.4ea
                            14:00:03,675 INFO [STDOUT] DEBUG: getProvider() returning javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]
                            14:00:03,676 INFO [STDOUT] DEBUG POP3: connecting to host "pop3.myserver.com", port 110, isSSL false
                            14:00:03,714 INFO [STDOUT] S: +OK pop.myserver.com -- Server POP (MyServer - Argentina) (mta7)
                            14:00:03,714 INFO [STDOUT] C: USER esugar
                            14:00:03,751 INFO [STDOUT] S: +OK password required for user esugar@myserver.com
                            14:00:03,751 INFO [STDOUT] C: PASS q1w2e3r4
                            14:00:03,892 INFO [STDOUT] S: +OK Maildrop ready
                            14:00:03,892 INFO [STDOUT] C: STAT
                            14:00:03,933 INFO [STDOUT] S: +OK 1 1307
                            14:00:03,933 INFO [STDOUT] C: NOOP
                            14:00:03,967 INFO [STDOUT] S: +OK
                            14:00:04,068 INFO [STDOUT] C: TOP 1 0
                            14:00:04,218 INFO [STDOUT] S: +OK
                            Received: from avas-mx09.myserver.com ([24.232.0.192])
                             by mail.myserver.com (MyServer S.A. - Argentina)
                             with ESMTP id <0JOK00D1BPVZFW82@mta3.myserver.com> for
                             esugar@myserver.com; Tue, 18 Sep 2007 13:59:59 -0300 (ART)
                            Received: from avas-mr09.myserver.com
                             ([24.232.0.222]:50808 "EHLO avas-mr09.myserver.com"
                             rhost-flags-OK-OK-OK-OK) by avas-mx09.myserver.com with ESMTP id
                             S341229AbXIRQ7y; Tue, 18 Sep 2007 13:59:54 -0300
                            Received: from 213-162-89-200.myserver.com
                             ([200.89.162.213]:61782 "EHLO [192.168.234.101]" smtp-auth: "esugar"
                             rhost-flags-OK-OK-OK-FAIL) by avas-mr09.myserver.com with ESMTPA id
                             S976917AbXIRQ7g; Tue, 18 Sep 2007 13:59:36 -0300
                            Date: Tue, 18 Sep 2007 13:59:32 -0300
                            From: E Sugar <E.Sugar@myserver.com>
                            Subject: Test 1359
                            To: esugar@myserver.com
                            Message-id: <46F003F4.6090401@myserver.com>
                            MIME-version: 1.0
                            Content-type: text/plain; charset=ISO-8859-1; format=flowed
                            Content-transfer-encoding: 7bit
                            X-Fib-Al-MRId: 5b11626bb819fcf9fd765665675df23e
                            X-Fib-Al-SA: analyzed
                            X-Fib-Al-Info: Al
                            X-Fib-Al-MXId: a77a6cc271def2501550eac98fa62d5c
                            X-Fib-Al: lmp
                            X-Fib-Al-SA: analyzed
                            X-Fib-Al-From: E.Sugar@myserver.com
                            User-Agent: Thunderbird 1.5.0.13 (X11/20070824)
                            
                            .
                            14:00:04,390 INFO [STDOUT] C: RETR 1
                            14:00:04,408 INFO [STDOUT] S: +OK 1307 octets
                            Received: from avas-mx09.myserver.com ([24.232.0.192])
                             by mail.myserver.com (MyServer S.A. - Argentina)
                             with ESMTP id <0JOK00D1BPVZFW82@mta3.myserver.com> for
                             esugar@myserver.com; Tue, 18 Sep 2007 13:59:59 -0300 (ART)
                            Received: from avas-mr09.myserver.com
                             ([24.232.0.222]:50808 "EHLO avas-mr09.myserver.com"
                             rhost-flags-OK-OK-OK-OK) by avas-mx09.myserver.com with ESMTP id
                             S341229AbXIRQ7y; Tue, 18 Sep 2007 13:59:54 -0300
                            Received: from 213-162-89-200.myserver.com
                             ([200.89.162.213]:61782 "EHLO [192.168.234.101]" smtp-auth: "esugar"
                             rhost-flags-OK-OK-OK-FAIL) by avas-mr09.myserver.com with ESMTPA id
                             S976917AbXIRQ7g; Tue, 18 Sep 2007 13:59:36 -0300
                            Date: Tue, 18 Sep 2007 13:59:32 -0300
                            From: E Sugar <E.Sugar@myserver.com>
                            Subject: Test 1359
                            To: esugar@myserver.com
                            Message-id: <46F003F4.6090401@myserver.com>
                            MIME-version: 1.0
                            Content-type: text/plain; charset=ISO-8859-1; format=flowed
                            Content-transfer-encoding: 7bit
                            X-Fib-Al-MRId: 5b11626bb819fcf9fd765665675df23e
                            X-Fib-Al-SA: analyzed
                            X-Fib-Al-Info: Al
                            X-Fib-Al-MXId: a77a6cc271def2501550eac98fa62d5c
                            X-Fib-Al: lmp
                            X-Fib-Al-SA: analyzed
                            X-Fib-Al-From: E.Sugar@myserver.com
                            User-Agent: Thunderbird 1.5.0.13 (X11/20070824)
                            
                             Test 1359Test 1359Test 1359
                            .
                            14:00:04,459 ERROR [FindTModelFunction] java.sql.SQLException: You cannot commit during a managed transaction!
                            14:00:04,459 ERROR [AbstractService] java.sql.SQLException: You cannot commit during a managed transaction!
                            14:00:04,461 ERROR [STDERR] java.lang.reflect.InvocationTargetException
                            14:00:04,461 ERROR [STDERR] at org.apache.ws.scout.transport.LocalTransport.send(LocalTransport.java:67)
                            14:00:04,461 ERROR [STDERR] at org.apache.ws.scout.registry.RegistryImpl.execute(RegistryImpl.java:271)
                            14:00:04,461 ERROR [STDERR] at org.apache.ws.scout.registry.RegistryImpl.findTModel(RegistryImpl.java:793)
                            14:00:04,461 ERROR [STDERR] at org.apache.ws.scout.registry.BusinessQueryManagerImpl.findClassificationSchemeByName(BusinessQueryManagerImpl.java:440)
                            14:00:04,462 ERROR [STDERR] at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findService(JAXRRegistryImpl.java:444)
                            14:00:04,462 ERROR [STDERR] at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:316)
                            14:00:04,462 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                            14:00:04,462 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                            14:00:04,462 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                            14:00:04,462 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
                            14:00:04,462 ERROR [STDERR] at org.jboss.internal.soa.esb.services.registry.RegistryService$1.invoke(RegistryService.java:61)
                            14:00:04,462 ERROR [STDERR] at $Proxy35.findEPRs(Unknown Source)
                            14:00:04,462 ERROR [STDERR] at org.jboss.soa.esb.listeners.RegistryUtil.getEprs(RegistryUtil.java:216)
                            14:00:04,462 ERROR [STDERR] at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:412)
                            14:00:04,462 ERROR [STDERR] at org.jboss.soa.esb.client.ServiceInvoker.post(ServiceInvoker.java:243)
                            14:00:04,462 ERROR [STDERR] at org.jboss.soa.esb.client.ServiceInvoker.deliverAsync(ServiceInvoker.java:185)
                            14:00:04,462 ERROR [STDERR] at org.jboss.soa.esb.samples.quickstart.helloworld_mail.MailEndpoint.onMessage(MailEndpoint.java:64)
                            14:00:04,463 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                            14:00:04,463 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                            14:00:04,463 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                            14:00:04,463 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
                            14:00:04,463 ERROR [STDERR] at org.jboss.soa.esb.listeners.jca.JcaInflowGateway$1.invoke(JcaInflowGateway.java:202)
                            14:00:04,463 ERROR [STDERR] at org.jboss.soa.esb.listeners.jca.EndpointProxy.delivery(EndpointProxy.java:242)
                            14:00:04,463 ERROR [STDERR] at org.jboss.soa.esb.listeners.jca.EndpointProxy.invoke(EndpointProxy.java:145)
                            14:00:04,463 ERROR [STDERR] at $Proxy53.onMessage(Unknown Source)
                            14:00:04,463 ERROR [STDERR] at org.jboss.resource.adapter.mail.inflow.MailActivation.deliverMsg(MailActivation.java:149)
                            14:00:04,463 ERROR [STDERR] at org.jboss.resource.adapter.mail.inflow.MailActivation.run(MailActivation.java:125)
                            14:00:04,463 ERROR [STDERR] at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
                            14:00:04,463 ERROR [STDERR] at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
                            14:00:04,463 ERROR [STDERR] at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
                            14:00:04,463 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
                            14:00:04,464 ERROR [STDERR] Caused by: java.lang.reflect.InvocationTargetException
                            14:00:04,464 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                            14:00:04,464 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                            14:00:04,464 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                            14:00:04,464 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
                            14:00:04,464 ERROR [STDERR] at org.apache.ws.scout.transport.LocalTransport.send(LocalTransport.java:63)
                            14:00:04,464 ERROR [STDERR] ... 30 more
                            14:00:04,465 ERROR [STDERR] Caused by: java.lang.Exception: faultCode=null, faultString=You cannot commit during a managed transaction!, faultActor=null, errno=null, errCode=null, errText=null
                            14:00:04,465 ERROR [STDERR] at org.apache.juddi.registry.local.AbstractService.handleRequest(AbstractService.java:269)
                            14:00:04,465 ERROR [STDERR] at org.apache.juddi.registry.local.InquiryService.inquire(InquiryService.java:77)
                            14:00:04,465 ERROR [STDERR] ... 35 more
                            


                            Thanks,
                            Erik

                            • 26. Re: SMTP/POP Provider
                              randythomas

                              I configured an email JCA gateway based on your instructions from the following URL:

                              http://wiki.jboss.org/wiki/Wiki.jsp?page=UsingMailInflowWithJBossESB

                              I suspect that I have a subtle configuration issue.

                              I configured the gateway to pull messages from my personal account on yahoo.com. Since the yahoo server use POP, I initially set the the following:



                              This configuration gave me an "invalid store protocol" error message. I changed the vale from "pop" to "pop3" and I do not get any error messages using this value. However, after sending numerous test messages, It does not appear to be pulling any messages from my account. I setup my logging to look for errors in "org.apache.ws.scout". I don't see the transaction error message that was discussed in the forum. Any suggestions for what I am missing? My configuration, with account info changes, is given below:


                              <jca-gateway name="Mail-JCA-Gateway"
                              adapter="Quickstart_helloworld_mail.esb#mail-ra.rar"
                              endpointClass="org.jboss.soa.esb.samples.quickstart.helloworld_mail.MailEndpoint"
                              is-gateway="true" transacted="false">
                              <activation-config>

                              <!-- -->





                              </activation-config>
                              </jca-gateway>
                              <jms-listener name="JMS-ESBListener"
                              busidref="quickstartEsbChannel"
                              maxThreads="1"
                              />


                              Randy

                              • 27. Re: SMTP/POP Provider
                                stlecho
                                1 2 Previous Next