I think i found the problem.
I've fix it in 2.0.

Cheers,
Guillaume Nodet

Craig Walls wrote:

I've already raised this as an issue in JIRA (SM-122), but wanted to throw
it out to the mailing list to see if anyone can point out anything I may
be doing wrong:

In cluster flow, the message content doesn't seem to get delivered. The
properties of a message get delivered fine, but the content does not. In
other words, message.getContent() always returns null.

If it helps, here's how I'm sending the message:

   InOut exchange = serviceMixClient.createInOutExchange();
   NormalizedMessage message = exchange.getInMessage();
   exchange.setService(new QName("myService"));
   message.setProperty("word", word);
   message.setContent(new StringSource("<hello>world</hello>"));
   serviceMixClient.sendSync(exchange);

And here's how I'm receiving it:

   NormalizedMessage message = exchange.getMessage("in");
   Source source = message.getContent();
   System.out.println("SOURCE:  " + source);

Without fail, message.getContent() returns null when using cluster flow
and when the message crosses container boundaries (it works fine in ST and
SEDA and even in cluster flow when the message stays within the client's
container).







Reply via email to