I didn't put it there because I don't really want a response unless it's a test. If possible, I'd like this to be configured dynamically but if that's not realistic, I understand. I thought there might be an API call I could use instead of passing it in the properties.
When I add the reply to address on the multicast router, the test eventually times out waiting on a response from the client request.
client.dispatch("jms://edi/832/inbox", new DefaultMuleMessage(input))
def result = client.request("jms://edi/832/reply", 10000)
<multicasting-router>
<!-- transform to edi flat file and send to gentran folder -->
<file:outbound-endpoint path="c:/temp/832/outbox" transformer-refs="PriceGuideToGentran">
<jms:transaction action="ALWAYS_JOIN"/>
<properties>
<spring:entry key="outputPattern" value="832_[SYSTIME].txt"/>
</properties>
</file:outbound-endpoint>
<!-- email excel document to contacts -->
<smtp:outbound-endpoint transformer-refs="PriceGuideToEmail" host="${smtp.host}">
<jms:transaction action="ALWAYS_JOIN"/>
</smtp:outbound-endpoint>
<reply-to address="jms://edi/832/reply"/>
</multicasting-router>
Now, what's really odd is that it does not seem to honor the timeout parameter sent with the request. The last thing I see is the result of the last transport and then a JVM exit from the watchdog thread:
**********************************************************************
* Mule ESB and Integration Platform *
* Version: 2.1.2 Build: 13558 *
* MuleSource, Inc. *
* For more information go to
http://mule.mulesource.org *
* *
* Server started: 1/12/09 4:01 PM *
* Server ID: 906bd15d-e0f4-11dd-8df7-c3dcccfdf5b4 *
* JDK: 1.5.0_14 (mixed mode, sharing) *
* Encoding: OS: windows-1252, Mule: UTF-8 *
* OS: Windows XP - Service Pack 3 (5.1, x86) *
* Host: LJ-1FVJ2B1 (172.16.4.109) *
* *
* Agents Running: None *
**********************************************************************
[01-12 16:01:33] INFO MuleClient [main]: Using existing MuleContext: org.mule.DefaultMuleContext@94af2f
[01-12 16:01:33] INFO FileConnector [ActiveMQ Session Task]: Writing file to: C:\temp\832\outbox\832_1231797693640.txt
[01-12 16:01:33] DEBUG PriceGuideToEmailTransformer [ActiveMQ Session Task]: Applying transformer PriceGuideToEmail (com.sonicdrivein.esb.scm.transformer.PriceGuideToEmailTransformer)
[01-12 16:01:33] DEBUG PriceGuideToEmailTransformer [ActiveMQ Session Task]: Object before transform: <?xml version="1.0" encoding="ISO-8859-1"?>
<priceGuide>
<id>527</id>
<effectiveDate>2008-12-01T00:00:00.000-06:00</effectiveDate>
<endDate>2008-12-31T00:00:00.000-06:00</endDate>
<popula...
[01-12 16:01:34] DEBUG PriceGuideToEmailTransformer [ActiveMQ Session Task]: Object after transform: javax.mail.internet.MimeMessage@146ad8b
[01-12 16:01:34] DEBUG PriceGuideToEmailTransformer [ActiveMQ Session Task]: The transformed object is of expected type. Type is: MimeMessage
[01-12 16:01:34] DEBUG ExchangeSmtpTransport [ActiveMQ Session Task]: Last Server Response: 250 OK
[01-12 16:02:28] ERROR PriceGuideTransformerIntegrationTest [WatchdogThread-0]: Timeout of 60000ms exceeded - exiting VM!