2 Replies Latest reply on Jun 7, 2008 12:05 PM by Jeff Yu

    Email configuration in 4.3.GA Trailblazer

    Sidney Zurch Novice

      Could someone please explain the email configuration for the Trailblazer?

      I'm trying to run the 4.3.GA ESB Trailblazer with the 4.2.2.GA App server (with jboss-remoting 2.2.2.SP2).

      I've configured my smtp server in TB_ROOT/esb/conf/jbossesb-properties.xml, but email fails because ProcessEmail insists on using localhost.

      It's not immediately obvious where the "transports" configuration information is used.

      Thanks.

      14:12:19,235 INFO [CreditAgencyActions] CreditAgency sending back a credit score of 1
      14:12:19,249 INFO [LoanBroker] received reply from creditAgency action: 1
      14:12:24,249 INFO [STDOUT] sending to JMS Bank...
      14:12:24,294 INFO [STDOUT] Connection Started
      14:12:25,017 INFO [STDOUT] Got the message from the JMS bank: <org.jboss.soa.esb.samples.loanbroker.banks.BankQuoteReply>
       <interestRate>8.60</interestRate>
       <quoteId>JMSBasedBank-0</quoteId>
       <errorCode>0</errorCode>
       <customerUID>1234567890</customerUID>
       <customerEmail>sz@mydomain.com</customerEmail>
      </org.jboss.soa.esb.samples.loanbroker.banks.BankQuoteReply>
      14:12:25,020 INFO [ProcessEmail] customer SSN 1234567890 - sending email to: sz@mydomain.net
      14:12:25,020 INFO [Email] Initialising mail server sesson. Properties: {mail.smtp.port=25, mail.smtp.auth=true, mail.smtp.host=localhost}
      14:12:25,020 INFO [ProcessEmail] loading StringTemplate from path: template
      14:12:25,020 INFO [ProcessEmail] loading StringTemplate from file: quote
      14:12:25,026 ERROR [ProcessEmail] error sending email - javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
       nested exception is:
       java.net.ConnectException: Connection refused
      14:12:25,026 ERROR [STDERR] javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
       nested exception is:
       java.net.ConnectException: Connection refused