Re: Null Pointer Exception and servicemix-karaf problems

2012-04-17 Thread Claus Ibsen
Hi What JDK, Camel and Karaf versions are you using? The NPE may be an issue on JDK1.7 i think. On Tue, Apr 17, 2012 at 9:32 AM, Subhanjan wrote: > Hi, >   I am very new to Apache-camel. Hence, plz pardon me if I ask very basic > things. I am using this for converting csv files to xml file wh

Re: [Bindy] Having trouble with the "required" field

2012-04-17 Thread Claus Ibsen
Hi Thanks for the test cases. I found some time this morning. So I have committed the tests to trunk and 2.9 branch. And backported that CAMEL-5018 to 2.9 as well. So this should be fixed in Camel 2.9.3. (missed the 2.9.2 release). On Mon, Apr 16, 2012 at 3:36 PM, Claus Ibsen wrote: > Hi > > D

Re: File2 endpoint issue

2012-04-17 Thread Filippo Balicchia
You can you interceptFrom().when(simple("${file:length} == 0")) --filippo Il 16 aprile 2012 21:27, brbornia ha scritto: > Hello guys, > > I am working on a route like this to handle files that should arrive every > day: > > >   >  <... do_stuff_here/> > > > If the file does not arrive, the d

Re: OSGI Transaction Propagation to Camel Route

2012-04-17 Thread Raul Kripalani
Hi Chris! Transaction Managers bind transactions to threads, and a possible cause for your transaction getting lost is that your route is being called asynchronously from another thread. This is because you are using ProducerTemplate.send...(). Can you replace this with ProducerTemplate.requestB

SoapFaultClientException: The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher.

2012-04-17 Thread atg roxx
Hi Team, I am trying to pass soap msg to the soap end point and get the result for this I am using camel spring-ws component. My Route flow is like this: Take a xml file from input queue. unmarshal and marshall the file (using JaxbDataFormat) to get the xml with all namespace etc. to send to s

Re: [Bindy] Having trouble with the "required" field

2012-04-17 Thread Aida
Hi, Thank you very much. I have seen that there is already a 2.9.3-SNAPSHOT in the repository, but I suppose that until the "final" release will be 1-2months, isn´t it? (my apologies in advance for being asking about releases all the time, we are using camel in a big project and the policy is try

Re: [Bindy] Having trouble with the "required" field

2012-04-17 Thread Claus Ibsen
On Tue, Apr 17, 2012 at 11:25 AM, Aida wrote: > Hi, > > Thank you very much. I have seen that there is already a 2.9.3-SNAPSHOT in > the repository, but I suppose that until the "final" release will be > 1-2months, isn´t it? > (my apologies in advance for being asking about releases all the time,

Re: File2 endpoint issue

2012-04-17 Thread Claus Ibsen
Hi You can use a custom PollingConsumerPollStrategy where there commit method will have the number of files processed. So if this number is 0, then you know there was no files to poll. See details at: http://camel.apache.org/polling-consumer.html On Mon, Apr 16, 2012 at 9:27 PM, brbornia wrot

Re: Null Pointer Exception and servicemix-karaf problems

2012-04-17 Thread Subhanjan
I am using *jdk 1.6.0_23 camel 2.7.3-fuse-00-53 servicemix 4.4.1-fuse-02-05* I have just restarted servicemix after refreshing the log & when I again run the program from main mathod by 'run as' (which I should not.. I have to use Servicemix for running this) the NPE problem seems to have gone

Re: SoapFaultClientException: The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher.

2012-04-17 Thread atg roxx
Hi Team, I got the solution, So thought to share with all. If you look at the error msg: " org.springframework.ws.soap.client.SoapFaultClientException: The message with Action '' cannot be processed at the receiver" It says about Action. Since I am new to soap service I did not realized what do

Re: SoapFaultClientException: The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher.

2012-04-17 Thread Claus Ibsen
Hi Thanks for sharing your solution. On Tue, Apr 17, 2012 at 1:00 PM, atg roxx wrote: > Hi Team, > > I got the solution, So thought to share with all. > > If you look at the error msg: > > " org.springframework.ws.soap.client.SoapFaultClientException: The message > with Action '' cannot be proce

Re: camel xslt 2.0 support

2012-04-17 Thread Claus Ibsen
Hi You need to install camel-saxon feature as it has saxon xml library which offers xslt 2.0 I think. http://saxon.sourceforge.net/ You most likely also need to restart the ESB. The old xalan that is shipped with the JVM is only support XSLT 1.x I think. http://xml.apache.org/xalan-j/ On Tue,

Re: Null Pointer Exception and servicemix-karaf problems

2012-04-17 Thread Claus Ibsen
Hi You could also try the new release Fuse ESB 4.4.1-fuse-03-06, March 08, 2012 On Tue, Apr 17, 2012 at 12:59 PM, Subhanjan wrote: > I am using *jdk 1.6.0_23 > > camel 2.7.3-fuse-00-53 > > servicemix 4.4.1-fuse-02-05* > > > I have just restarted servicemix after refreshing the log > & when I a

Re: camel xslt 2.0 support

2012-04-17 Thread sigmund.lundgren
That's correct use saxon HE 9 for XSLT 2.0 Skickat från Samsung TabletClaus Ibsen skrev:Hi You need to install camel-saxon feature as it has saxon xml library which offers xslt 2.0 I think. http://saxon.sourceforge.net/ You most likely also need to restart the ESB. The old xalan that is shi

Re: WireTap - Defining custom ThreadPoolProfile

2012-04-17 Thread mccabejj
Thanks Claus. Switching to ThreadPool instead of ThreadPoolProfile worked. Another quick (hopefully) question on Thread Pools in Camel. I think I've observed that there are multiple ThreadPoolExecutor's created for each route. It seems to be 1 for every WireTap present on the route. So if I

Re: WireTap - Defining custom ThreadPoolProfile

2012-04-17 Thread Claus Ibsen
On Tue, Apr 17, 2012 at 2:57 PM, mccabejj wrote: > Thanks Claus.  Switching to ThreadPool instead of ThreadPoolProfile worked. > > Another quick (hopefully) question on Thread Pools in Camel.  I think I've > observed that there are multiple ThreadPoolExecutor's created for each > route.  It seems

Monitoring Camel with JMX

2012-04-17 Thread hodgesz
Hi, We are attempting to monitor various components in our Camel web application deployed in Tomcat. We are using spring so we enabled JMX by adding the following element to the camelContext. We are able to connect using JConsole and browse the components without an issue. However when we try

Re: camel xslt 2.0 support

2012-04-17 Thread Henrique Viecili
I could use XSLT 2.0 by adding installing servicemix-saxon and defining the route with . If you are running camel standalone you should just need the saxon libs in your classpath (or as endorsed lib - recommended). You can also try setting the jvm system property javax.xml.transform.TransformerFac

Apache >> Camel >> Netty --> How to Know Client Disconnection

2012-04-17 Thread sambardar
I am using Camel netty component as a consumer binding to IP and port... Are there any callback methods to know when a client connects and disconnects ? -- View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-Netty-How-to-Know-Client-Disconnection-tp5646718p5646718.html

Re: Monitoring Camel with JMX

2012-04-17 Thread hodgesz
Just to add a little more detail about the JMX client. We are using the vanilla Open Source Nagios JMX Plugin called check_jmx (http://snippets.syabru.ch/nagios-jmx-plugin/). We are using it to monitor a number Tomcat web applications without issue. The full command that is executed from Nagios

Re: Monitoring Camel with JMX

2012-04-17 Thread Babak Vahdat
Hi The HEX value at the end of the FileConsumer you see on JConsole comes from [1] which includes System.identityHashCode() for the name of javax.management.ObjectName to avoid any name conflicts. And of course that value will change by each JVM run, so that I assume the best option you have is t

Re: SSL and CXF Consumers

2012-04-17 Thread Castyn
Hmm let me try to rephrase a bit. How would you go about securing a CXF consumer endpoint with an SSL cert that is open to the outside world? Do you need to route it through an http conduit or is there some way to have the SSL cert live on the CXF endpoint itself? -- View this message in context

RE: Receiving NodeDeleted event using Camel's ZooKeeper component

2012-04-17 Thread GLIMMERVEEN Arnoud
Hi, 1) Makes sense to do it this way. I am working on this and will attach a patch to the JIRA issue when finished. 2) Having the EventType from ZooKeeper's WatchedEvent attached to the Exchange in a header would I think be very useful. I was just wondering on how to deal with Exchanges from t

Re: OSGI Transaction Propagation to Camel Route

2012-04-17 Thread Chris Geer
Raul, I gave that a shot but it actually made the problem worse. ProducerTemplate.requestBodyAndHeader uses an InOut exchange pattern but since I'm not sending responses it always fails (regardless of transaction) with a timeout saying it didn't get a response. It also send the message to the topi

Re: Monitoring Camel with JMX

2012-04-17 Thread hodgesz
Thanks Babak. The wildcard allowed us to return the properties of the FileConsumer with the updated command. check_jmx -U service:jmx:rmi:///jndi/rmi://x.x.x.x:1099/jmxrmi/camel -O "*:type=consumers,*" -A State While this works well as we only have one FileConsumer in this particular applicatio

Re: OSGI Transaction Propagation to Camel Route

2012-04-17 Thread Raul Kripalani
I noticed several things in your config. 1) the JMS config should be inside the 'configuration' property of the ActiveMQComponent: 2) the 'transacted' property should be false as above, because you don't want the component to man

Re: using MessageConverter with Bean

2012-04-17 Thread Raul Kripalani
Hi Xuan, Sorry for the extremely late response. I hope you found your way, but in case you didn't, what's probably happening is that you are losing your initial message headers (amongst which is JMSReplyTo). In your beans which manipulate the message, you may be populating the OUT message and for

Stateful Dynamic Router

2012-04-17 Thread Markus Wolf
Hi, I'm looking for an example of a stateful dynamic router. The given example on the webpage notes that it is not thread safe. But when I try to set a property or header on the exchange it is thrown away, because I guess the exchanged is copied and not put in as reference. Any help is appreciate

Re: OSGI Transaction Propagation to Camel Route

2012-04-17 Thread Chris Geer
Raul, Thanks for the information. I tried what you said and I think it did have some success with rolling back the transaction but it causes significant errors to be thrown during a success case. As I've written a sample to debug this issue I wanted you to have my latest code so we can be referenc

Re: File2 endpoint issue

2012-04-17 Thread brbornia
Hi guys, Thanks for your replies, but none of them worked for me. Probably I am still doing somthing wrong, I just starting with camel. In my tests, the interceptor only worked when a file was actualy received, so looks like I cannot use it do do what I want. About the custom polling strategy I

Re: SSL and CXF Consumers

2012-04-17 Thread Christian Müller
You need a "http:conduit". You can find an example at [1] and the Apache CXF web site [2]. [1] https://svn.apache.org/repos/asf/camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/jaxrs/CxfRsProducerClientFactoryCacheTest2.xml [2] http://cxf.apache.org/docs/client-ht

Re: OSGI Transaction Propagation to Camel Route

2012-04-17 Thread Raul Kripalani
It looks like you may not be using an XA-aware Pooled Connection Factory :D See http://activemq.apache.org/maven/5.5.0/activemq-pool/apidocs/org/apache/activemq/pool/XaPooledConnectionFactory.html It may look catchy, but all the layers of the stack need to be XA-aware, as XA requires a different

Re: Stateful Dynamic Router

2012-04-17 Thread Christian Müller
The message (header) or exchange (property) is the right place to "store state" which is related to this exchange/message. Not all protocols support the exchange properties during routing, E.G. for JMS, you have to use the "transferExchange" [1] to not lose your exchange properties (and they must s

Re: OSGI Transaction Propagation to Camel Route

2012-04-17 Thread Christian Müller
Could you try using only one transaction manager? Best, Christian On Tue, Apr 17, 2012 at 10:48 PM, Raul Kripalani wrote: > It looks like you may not be using an XA-aware Pooled Connection Factory :D > > See > http://activemq.apache.org/maven/5.5.0/activemq-pool/apidocs/org/apache/activemq/pool/

Re: OSGI Transaction Propagation to Camel Route

2012-04-17 Thread Chris Geer
The only place I'm not using an already XA aware connection factory is in the API side, which is working perfectly because I'm manually enlisting the Session. On the camel side, I used your example exactly as you can see in my blueprint file and everything depends on XA aware activemq objects. Jus

Re: OSGI Transaction Propagation to Camel Route

2012-04-17 Thread Chris Geer
Christian, I assume only have txMgr or jmsTransactionManager, not both? I would love to do that but camel only seems to support a Spring PlatformTransactionManager and ActiveMQ expects a javax.transaction.TransactionManager. Under the covers, as I understand Aries, it is a single object that imple

Re: OSGI Transaction Propagation to Camel Route

2012-04-17 Thread Christian Müller
Hi Chris! I will give it a try tomorrow. I have to work on my presentation for CamelOne [1] which will also cover transactions in Camel... [1] http://camelone.com Best, Christian On Tue, Apr 17, 2012 at 11:27 PM, Chris Geer wrote: > Christian, > > I assume only have txMgr or jmsTransactionMan

Re: File2 endpoint issue

2012-04-17 Thread brbornia
Hey guys, Forget my last post, I´m feeling stupid right now... The method begin must return true to continue with the polling. After I fixed that, the polling strategy started working as expected. Now, I have another question related to that. I have set in my context an error handler like this:

Re: OSGI Transaction Propagation to Camel Route

2012-04-17 Thread Raul Kripalani
I noticed you are using PROPAGATION_MANDATORY, which will throw an exception if a transaction doesn't already exist. Could that justify the exception you see when isolating only Camel? Can you try with PROPAGATION_REQUIRED instead? The sample I pointed you to works with no changes. In fact, you ma

Re: OSGI Transaction Propagation to Camel Route

2012-04-17 Thread Raul Kripalani
Also, see https://issues.apache.org/jira/browse/AMQ-3251. I think the fix was backported to a release of Fuse ESB 4.4.1, that's why we don't experience it in the example. You may want to try with a Fuse ESB release if using an AMQ snapshot is not an option for you. Regards, Raul. On 18 Apr 2012

Re: WireTap - Defining custom ThreadPoolProfile

2012-04-17 Thread mccabejj
OK, makes sense. Thanks a lot for the explanation. JM -- View this message in context: http://camel.465427.n5.nabble.com/WireTap-Defining-custom-ThreadPoolProfile-tp5645423p5647983.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: OSGI Transaction Propagation to Camel Route

2012-04-17 Thread Chris Geer
Thanks Raul, that issue does look like the problem I'm seeing on the success case. I'll try and upgrade to 5.6-SNAPSHOT tomorrow and see if that resolves the issue. I now see that I need to have a XA Connection Factory and XA Connection Pool for Camel to be able to integrate with a XA transaction.

Re: getting error while calling external web service from camel route

2012-04-17 Thread bhushand
No, reply from long time. Can any one help please. -- View this message in context: http://camel.465427.n5.nabble.com/getting-error-while-calling-external-web-service-from-camel-route-tp5603573p5648249.html Sent from the Camel - Users mailing list archive at Nabble.com.

is it require to keep datatype of inputParams same for all routes??

2012-04-17 Thread bhushand
I am using camel routes. method1() needs 5-6 different objects for processing so I have formed a Map & put required objects in this map. I am passing map using ProducerTemplate.sendBody("direct:startRoute",map). I am getting all objects in method1() properly, no issue. But method2() has sig

Re: File2 endpoint issue

2012-04-17 Thread Claus Ibsen
On Wed, Apr 18, 2012 at 12:02 AM, brbornia wrote: > Hey guys, > > Forget my last post, I´m feeling stupid right now... The method begin must > return true to continue with the polling. After I fixed that, the polling > strategy started working as expected. > Yes read the javadoc of the methods. A

Re: getting error while calling external web service from camel route

2012-04-17 Thread Claus Ibsen
On Wed, Apr 18, 2012 at 7:45 AM, bhushand wrote: > No, reply from long time. > Can any one help please. > I suggest to look at the payload being sent to the remote webservice, and what it returns back as payload. Also pay attention to the stacktrace logging level. If its WARN then it may just be

Re: Spring context and camel context in the same time

2012-04-17 Thread Claus Ibsen
The XML file is just a standard Spring XML file. So whatever Spring supports to use both its annotation and to load beans from a XML file, that is your answer. You can also create a SpringCamelContext yourself from Java code, to get Camel. Then you may not need the XML file. On Mon, Apr 16, 2012