Re: Using Message Headers & Body into Camel SQL Insert statement

2015-12-18 Thread Shiv
Thanks for the reply. Headers are getting accessible with :#HeaderName format. Any idea how we can access the body? -- View this message in context: http://camel.465427.n5.nabble.com/Using-Message-Headers-Body-into-Camel-SQL-Insert-statement-tp5775107p5775269.html Sent from the Camel - Users

Using Message Headers & Body into Camel SQL Insert statement

2015-12-15 Thread Shiv
in properties file - this is also not working SQLInsertQuery=insert into Message (messageId, messageBody) values(:#${header.JMSMessageID}, :#${body}') My route calls below but insert is failing in call cases. Am I missing anything in expression? Thanks for input. Shiv -- View this message

Problem with FileConsumer and Poll Enrich - .lock file not getting deleted

2015-12-02 Thread Shiv
.465427.n5.nabble.com/Problem-with-FileConsumer-and-pollEnrich-td476466.html and https://issues.apache.org/jira/browse/CAMEL-1895 which indicate that there were some issue when both starting point and poll enrich are file based. If the issue is still there? Shiv -- View this message

XmlJsonDataFormat - Camel 2.16.0 - xom.jar

2015-10-16 Thread Shiv Kandavelu
. When I added camel-xmljson in my project in NetBeans, it added the dependent jars, but it never complained about the xom dependency. why it didn't complain? Please help me understand. Thanks, -Shiv -- View this message in context: http://camel.465427.n5.nabble.com/XmlJsonDataFormat-Camel-2

Validator component in camel route not starting up and failing with strange error message

2015-02-01 Thread Shiv
. Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog. Thanks Shiv -- View this message in context: http://camel.465427.n5.nabble.com/Validator-component-in-camel-route-not-starting-up-and-failing-with-strange-error-message-tp5762310.html Sent from the Camel

Re: Using Timer in Camel

2014-09-02 Thread Shiv
Hi Charles, Thanks for your detailed reply. It resolves my query and confusion. -Shiv -- View this message in context: http://camel.465427.n5.nabble.com/Using-Timer-in-Camel-tp5755951p5755990.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: ClassCastException in XML Parsing - JBoss Fuse ESB 6.0

2014-05-16 Thread Shiv
In order to fix the issue, I have changed the logic of bean which parses the XML and it is working fine. But it will be nice to know the root cause of such exception. Thanks Shiv -- View this message in context: http://camel.465427.n5.nabble.com/ClassCastException-in-XML-Parsing-JBoss-Fuse

Re: Camel Route Start-up Failure due to OSGi Dependency Resolution Error in JBoss Fuse ESB 6.0

2014-05-16 Thread Shiv
I asked the question in JBoss Fuse forum as suggested and issue is fixed. It was coming due to the fact that Commons Collections jar is not part of default start up. We need to install it separately. Once I did that, issue is resolved. Thanks Shiv -- View this message in context: http

Re: java.lang.NullPointerException in Camel JDBC component for Select statement

2014-05-16 Thread Shiv
Finally i got the root cause of issue and fixed it. It was not actually related to classpath but it was caused due to wrong DB connection string. It was defined as property name=quot;urlquot; value=quot;jdbc:microsoft:sqlserver://lt;hostname:1433;DatabaseName=testdb/ as per info from Fuse ESB

Re: ClassCastException in XML Parsing - JBoss Fuse ESB 6.0

2014-05-15 Thread Shiv
Route details - whenever any message is sent to test.* queue, it is intercepted and xslt transformation is done. --- bean id=messageTransformer class=com.test.MessageTransformer /

Camel Route Start-up Failure due to OSGi Dependency Resolution Error in JBoss Fuse ESB 6.0

2014-05-14 Thread Shiv
),org.apache.commons.lang;ve rsion=[2.6,3),org.w3c.dom,org.xml.sax commons-collections and commons-lang jars are available in system folder of JBoss Fuse HOME. Import of org.apache.commons.lang is resolved but import of org.apache.commons.collections.map is failing. Any idea what is missing? Thanks Shiv

Multiple DB inserts due to org.apache.camel.impl.DefaultMessage cannot be cast to org.apache.camel.component.jms.JmsMessage exception while using local JMS transaction

2014-05-14 Thread Shiv
, it works fine. Apart from upgrading to higher Camel version, anybody has faced this issue and figured the solution? All inputs are welcome. Thanks Shiv -- View this message in context: http://camel.465427.n5.nabble.com/Multiple-DB-inserts-due-to-org-apache-camel-impl-DefaultMessage-cannot

ClassCastException in XML Parsing - JBoss Fuse ESB 6.0

2014-05-13 Thread Shiv
)[132:org.springframework.osgi.extender:1.2.1] at java.lang.Thread.run(Thread.java:662)[:1.6.0_45] Thanks Shiv -- View this message in context: http://camel.465427.n5.nabble.com/ClassCastException-in-XML-Parsing-JBoss-Fuse-ESB-6-0-tp5751062.html Sent from the Camel - Users mailing list

Re: Camel Scripting questions - may some of you can help

2014-05-12 Thread Shiv
You might need to add camel-groovy jar to your POM to get rid of this exception. Thanks Shiv -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Scripting-questions-may-some-of-you-can-help-tp5750964p5750967.html Sent from the Camel - Users mailing list archive

Re: java.lang.NullPointerException in Camel JDBC component for Select statement

2014-05-11 Thread Shiv
type [java.lang.Class] for property 'driverClass'; nested exception is java.lang.IllegalArgumentException: Cannot find class [com.microsoft.sqlserver.jdbc.SQLServerDriver] I don't get this error when sqljdbc jar is present. Thanks Shiv -- View this message in context: http://camel.465427.n5

Re: java.lang.NullPointerException in Camel JDBC component for Select statement

2014-05-07 Thread Shiv
Since I am using Fuse ESB 5.3.0, I have copied sqljdbc.jar, org.springframework.jdbc-2.5.6.jar and camel-jdbc-2.2.0.jar to FUSE HOME/lib folder. Is this is not the right location or do we need more jars? Thanks Shiv -- View this message in context: http://camel.465427.n5.nabble.com/java-lang

Re: java.lang.NullPointerException in Camel JDBC component for Select statement

2014-05-05 Thread Shiv
compatibility issue? Thanks Shiv -- View this message in context: http://camel.465427.n5.nabble.com/java-lang-NullPointerException-in-Camel-JDBC-component-for-Select-statement-tp5750783p5750872.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: java.lang.NullPointerException in Camel JDBC component for Select statement

2014-05-05 Thread Shiv
I do not see any log statement from DriverManagerDataSource class in my log file :(. Thanks Shiv -- View this message in context: http://camel.465427.n5.nabble.com/java-lang-NullPointerException-in-Camel-JDBC-component-for-Select-statement-tp5750783p5750881.html Sent from the Camel - Users

Re: java.lang.NullPointerException in Camel JDBC component for Select statement

2014-05-04 Thread Shiv
it also expect to log successful connection message if connection is created successfully? Thanks Shiv -- View this message in context: http://camel.465427.n5.nabble.com/java-lang-NullPointerException-in-Camel-JDBC-component-for-Select-statement-tp5750783p5750852.html Sent from the Camel

java.lang.NullPointerException in Camel JDBC component for Select statement

2014-05-02 Thread Shiv
Hi all, I am using Camel JDBC component for first time and I need to query a table in MS SQL Server 2008 R2 and push the results to an ActiveMQ queue. I used the details on http://camel.apache.org/jdbc.html page and tried to get the setup. Once my route define in Spring configuration file is

Re: Mutlicasting to dymanic recipient list

2013-11-27 Thread Shiv
Camel 2.2 is part of one of the legacy system we have as of now. It could be upgraded to higher version in near future. -Shiv -- View this message in context: http://camel.465427.n5.nabble.com/Mutlicasting-to-dymanic-recipient-list-tp5743826p5743939.html Sent from the Camel - Users mailing

Re: Mutlicasting to dymanic recipient list

2013-11-26 Thread Shiv
However, if better solution is available, do let me know. I believe higher version of Camel allows creation of custom exchange in case of multicast/recipient list. Thanks Shiv -- View this message in context: http://camel.465427.n5.nabble.com/Mutlicasting-to-dymanic-recipient-list-tp5743826p5743851

Mutlicasting to dymanic recipient list

2013-11-25 Thread Shiv
which is typicall an Active MQ queue end point. recipientList delimiter=, simple${in.header.RecipientList}/simple /recipientList Thanks Shiv -- View this message in context: http://camel.465427.n5.nabble.com/Mutlicasting-to-dymanic-recipient-list-tp5743826.html Sent from the Camel