I have found lots of documentation on how to manipulate an array in simple
but none on how to create one.  Is this possible?  I have a bean with method
whose first parameter is an object second parameter is an array of strings.  

My method signature is like so:

myMethod(MyObjectType o, String ... values)

I was hoping to call it from the spring DSL like so:

<bean ref="myBean" method="myMethod(${body}, ['string literal 1', 'string
literal 2', 'string literal 3']" /> 

OR

<bean ref="myBean" method="myMethod(${body}, 'string literal 1', 'string
literal 2', 'string literal 3'" /> 


Neither seem to work and I get an exception like the following:
Caused by: org.apache.camel.NoTypeConversionAvailableException: No type
converter available to convert from type: java.lang.String to the required
type: java.lang.String[] with value [string literal 1]

Any help would be appreciated.



--
View this message in context: 
http://camel.465427.n5.nabble.com/Define-an-array-in-simple-tp5770637.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to