1 Reply Latest reply on Jan 20, 2010 5:29 AM by Daniel Bevenius

    EmailRouter using localhost instead of host value

    Robert Usey Newbie

      I am using the EmailRouter within a CBR provider and I am getting a MessagingException because the localhost and port is being used instead of the values set in EmailRouter properties.  Any ideas?

       

      jboss-esb.xml:

       

      <?xml version="1.0" encoding="UTF-8"?>

      <jbossesb xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.1.0.xsd" parameterReloadSecs="5">

      <providers>

      <jbr-provider name="JBossRemoting" protocol="http" host="localhost">

      <jbr-bus busid="Proxy_CBR-GwChannel" port="9666"/>

      </jbr-provider>

      <jms-provider name="JBossMQ" connection-factory="ConnectionFactory">

      <jms-bus busid="Proxy_CBR-EsbChannel">

      <jms-message-filter

      dest-type="QUEUE"

      dest-name="queue/quickstart_webservice_proxy_routed_cbr_esb"

      />

      </jms-bus>

      <jms-bus busid="Proxy_Hello-EsbChannel">

      <jms-message-filter

      dest-type="QUEUE"

      dest-name="queue/quickstart_webservice_proxy_routed_hello_esb"

      />

      </jms-bus>

      </jms-provider>

      </providers>

      <services>

      <service category="Proxy_Routed" name="Proxy_CBR"

      description="Routed WebService Proxy: CBR">

      <listeners>

      <jbr-listener

      name="Proxy_CBR-GwListener"

      busidref="Proxy_CBR-GwChannel"

      is-gateway="true"

      />

      <jms-listener

      name="Proxy_CBR-EsbListener"

      busidref="Proxy_CBR-EsbChannel"

      />

      </listeners>

      <actions>

      <action name="proxy_cbr_echo_request"

      class="org.jboss.soa.esb.actions.SystemPrintln">

      <property name="message" value="Message before ContentBasedRouter" />

      </action>

      <action name="send-email"

      class="org.jboss.soa.esb.actions.routing.email.EmailRouter">

      <property name="host" value="external.email.host" />

      <property name="port" value="25" />

      <property name="from" value=jboss@jboss.org />

      <property name="sendTo" value=robertuseyr@jboss.org />

      <property name="subject" value="important message" />

      <property name="auth" value="false" />

      </action>

      </actions>

      </service>

      </services>

      </jbossesb>

       

      exception:

       

      ...

      Caused by: javax.mail.MessagingException: Unknown SMTP host: 127.0.0.1:9666;
        nested exception is:
      java.net.UnknownHostException: 127.0.0.1:9666
      at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1280)
      ...