Hi

Yeah we should make this easier so you can do something similar to
what searchTerm can do. I have logged a ticket
https://issues.apache.org/jira/browse/CAMEL-8560

On Fri, Mar 27, 2015 at 12:06 AM, camelvev <ca...@vevang.no> wrote:
> 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.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Reply via email to