Hello!

This is probably stupidly simple, but: I'd like to use the new SortTerm[]
functionality with IMAP in Camel 2.15. 

I'm using spring xml to configure my bean bindings and want to refer to the
sort term (say, SortTerm.SUBJECT) by referring to a binding id in the
endpoint URI like this: sortTerm=#mySortTerm.

In the tests, you do this:

JndiRegistry jndi = super.createRegistry();
jndi.bind("sortAscendingDate", new SortTerm[]{SortTerm.DATE});

How do I create a simple binding to a SortTerm array using Spring XML? I've
tried creating a bean specifically for it, and using <util:list> and <array>
around the SortTerm, using value-type="com.sun.mail.imap.SortTerm" , but I
always get some sort of type conversion error, typically 

No type converter available to convert from type: java.lang.String to the
required type: com.sun.mail.imap.SortTerm[] .

So the question is - How can I create a simple array of SortTerms in the
spring registry using Spring XML?

Thanks,
ovvo



--
View this message in context: 
http://camel.465427.n5.nabble.com/SortTerm-in-Spring-XML-tp5764866.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to