cxf webservice over https

2015-08-28 Thread amit3880
Hello All, I am developing a cxf webservice and want to expose that over https, but I am not using spring and I am using directly java dsl and google guice to inject routes. I I am not sure how should I configure the https webservice consumer endpoint in camel. I have tried lot by searching around

Re: JSON to XML Conversion

2015-08-28 Thread anish.somadevan
Am using Spring, but i don't have any bean with the name "XmljsonWithOptions". I typically want to do the JSON to XML conversion within the DSL XML. Is there a way to do it? Thanks, Anish -- View this message in context: http://camel.465427.n5.nabble.com/JSON-to-XML-Conversion-tp5771032p577107

SOAP 1.2 and cxf end point

2015-08-28 Thread atg roxx
Hi All, I am facing a issue in which in which my route is not able to accept the soap 1.2 msg. Cxf endpoint definition : --- http://localhost:8080/test"; serviceClass="org.apache.camel.wsdl_first.Person" wsdlURL="my_test.wsdl" >

Re: Camel Velocity pass ArrayList

2015-08-28 Thread Raul Kripalani
I assume you mean a JMS queue. Is your class Serializable? If not, it'll not get passed on. Try making it Serializable and let us know. Thanks, *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterprise Architect, Open Source Integration specialist http://about.me/raulkripalani | http://w

Re: Camel Velocity pass ArrayList

2015-08-28 Thread Copernico
OK. It's working now. I had to change my routerbuilder class. Before, i had a bean to query the items in the database, put the headers and send it to a queue. In another route, after consumed this, passed it to velocity component producer and send it with smtp. Now i pass the query items to the ve

Re: getting exception for appending option providers=#cors-filter in camel cxfrs

2015-08-28 Thread Sergey Beryozkin
Right, I checked this test: https://github.com/apache/camel/blob/master/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsSpringConsumerTest.java which uses this resource: https://github.com/apache/camel/blob/master/components/camel-cxf/src/test/resources/org/apache/c

Re: Send Message to a queue before start & end of a route starts prcoessing

2015-08-28 Thread fxthomas
sorry it works , but not the way i want it to be. the Start message comes in the end of the queue just before the end message entry, ideally i thought it would be the first message in the queue , but its the second last . any workarounds ? -- View this message in context: http://camel.46

Re: Send Message to a queue before start & end of a route starts prcoessing

2015-08-28 Thread fxthomas
Sorry my BAD, I forgot the SetBody Tag in the onCompletion, it works fine now -- View this message in context: http://camel.465427.n5.nabble.com/Send-Message-to-a-queue-before-start-end-of-a-route-starts-prcoessing-tp5771056p5771060.html Sent from the Camel - Users mailing list archive at Nabb

Re: Camel Velocity pass ArrayList

2015-08-28 Thread Copernico
The camel version is 2.15.2 I'm doing now a simple test to see if camel replaces de variables public class Item{ private String description; public Item(){} public String getDescription(){return this.description;} public void setDescription(String description){this.description = descr

Testing REST DSL routes

2015-08-28 Thread MimerPlusPlus
Hi I've been having trouble testing my REST DSL routes in jUnit. It seems that my camelContext does nok have a HttpSession, which probably is due to some missing components in my pom. What id like to do is something like the following test case, which i added to the example project found her: ht

Send Message to a queue before start & end of a route starts prcoessing

2015-08-28 Thread Felix Thomas
Hello, I have set a Timer componet pointing to a DB, which is triggered at some interval. I want to send a message to a queue with some value set in the Header before the processing starts & after its ends . Like Message -STARTED Message - DATA1 Message - DATA2 Message - END I tried

Re: Camel Velocity pass ArrayList

2015-08-28 Thread Raul Kripalani
Ah, of course, I missed that. Sifting through emails too quickly ;-) What version of Camel are you on? Could JPA lazy loading be the culprit here? Can you switch to eager loading? *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterprise Architect, Open Source Integration specialist http

Re: Camel Velocity pass ArrayList

2015-08-28 Thread Copernico
Yes. I'm sure. The code is working. All this code is inside a bean not in my route builder class. From the route builder, i generate the email, pass the template to velocity and send email. The code is working because i send the email to myself and i can see the body of the email as i said before

Re: Camel Velocity pass ArrayList

2015-08-28 Thread Raul Kripalani
The signature of .setHeader() is .setHeader(String headerName, Expression expression). Your itemList() method returns a List, so I'm pretty sure something's missing here. Are you sure that's the code you're running? *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterprise Architect, Ope

Re: Camel Velocity pass ArrayList

2015-08-28 Thread Copernico
private List itemList(){ Query query = em.createNamedQuery("Items.findByDescription", Items.class); query.setParameter("description", "something"); if(query.getResultList() != null && !query.getResultList().isEmpty()){ return query.getResultList(); } return new ArrayList(); } Th

Cannot connect to sftp betweenwhiles

2015-08-28 Thread ekz
Hi all, i have a simple route that is uploading to ftp, and sometimes i have the following error while trying to upload file to ftp, the strange thing is that it does not fail always, approximately 1 of 5 trial fails. Any help will be appreciated. Route: from("file://folder?move=done&delay=2000&m

Re: Camel CXF Transport works within Blueprint only when XSD validation is disabled

2015-08-28 Thread metatech
Hello, After some more thinking, I found another solution : defining an alternate wildcard in the CXF blueprint support. I created a ticket in the CXF with the patch : https://issues.apache.org/jira/browse/CXF-6567 Best regards, metatech -- View this message in context: http://camel.465427.