2009/7/9 Claus Ibsen <claus.ib...@gmail.com>: > Hi > > I think it would be confusing if there is a setFault but no getFault? > But I understand the reason when you want to use OUT for both regular > OUT and FAULT. Where a header determine the type. > > As its uncommon to set a fault we could as James suggested have a > factory method on Exchange to create a new one: > > Message msg = exchange.createFault(); > msg.setBody("Unknown order id " + id); > exchange.setOut(msg);
I wonder if this latter line is required? i.e. should exchange.createFault() internally set the OUT? -- James ------- http://macstrac.blogspot.com/ Open Source Integration http://fusesource.com/