Hi, Thanks a lot Claus. In addition, if someone else is wondering about this, I managed to solve the issue (with some help from a nice colleague) by creating a factoryBean that returns a SortTerm[]:
public class IMAPsearchTermFactory { public static SearchTerm create() { SearchTermBuilder builder = new SearchTermBuilder(); builder.unseen().subject(SearchTermBuilder.Op.or, "Some subject").subject(SearchTermBuilder.Op.or, "Some other subject"); return builder.build(); } } and then in the XML <bean id="searchTerm" class="no.ngt.tech.b2b.vulaparser.util.IMAPsearchTermFactory" factory-method="create"/> ...which can then be referenced in the URI as #searchTerm. BR, Øyvind -- View this message in context: http://camel.465427.n5.nabble.com/SortTerm-in-Spring-XML-tp5764866p5764904.html Sent from the Camel - Users mailing list archive at Nabble.com.