Re: File streaming using the Stream component in Camel 2.7 - changes

2012-04-25 Thread Claus Ibsen
On Thu, Apr 26, 2012 at 8:42 AM, Gnanaguru S wrote: > > Claus, > > How do i enable DEBUG mode. ? :( > DEBUG logging. For example if you use log4j then configure its log4j.properties to enable logging at DEBUG level for the given package name. For example there is a log4j.properties file with the

Re: File streaming using the Stream component in Camel 2.7 - changes

2012-04-25 Thread Gnanaguru S
Claus, How do i enable DEBUG mode. ? :( Regards Guru -- View this message in context: http://camel.465427.n5.nabble.com/File-streaming-using-the-Stream-component-in-Camel-2-7-changes-tp4375640p5666843.html Sent from the Camel - Users mailing list archive at Nabble.com.

Suitable scenario for Camel?

2012-04-25 Thread Fitzcaraldo
Hello We have the need to pull changes from Salesforce to an internal system using the web services API. For those that have not used it, the WS connection to salesforce has state in the sense that you must first login using a WS call, then query the relevant objects using one or more WS calls an

Suitable scenario for Camel?

2012-04-25 Thread Fitzcaraldo
Hello We have the need to pull changes from Salesforce to an internal system using the web services API. For those that have not used it, the WS connection to salesforce has state in the sense that you must first login using a WS call, then query the relevant objects using one or more WS calls an

Re: Gracefull shutdown timeouts due to NotifyBuilder blocks on context

2012-04-25 Thread Claus Ibsen
On Wed, Apr 25, 2012 at 1:29 PM, wrote: > Hi Claus, > > I've attached a Eclipse/Maven testcase which exposes the blocking thread > state every time. At least for me ;-) > > Could you give it a go? > Thanks for the test case. I will take a look when I get some time. > cheers, > > Matthias > > Ma

Re: [SOLVED]Re: Camel-Stream URI error

2012-04-25 Thread Claus Ibsen
Hi I am not sure why you get empty lines. The components is using the API from the JDK to read a line by line with code line = br.readLine(); If you can reproduce the issue, then I suggest to use a debugger in the readFromStream method in the StreamConsumer, and see what is going on. Also it

Re: File streaming using the Stream component in Camel 2.7 - changes

2012-04-25 Thread Claus Ibsen
Hi Can you enable DEBUG logging on org.apache.camel.component.stream And see in the logs. The exception may also be thrown due the file cannot be read (we should possible throw a better exception if thats the case). But the debug log will help us see what is going on. On Thu, Apr 26, 2012 at 7

Re: File streaming using the Stream component in Camel 2.7 - changes

2012-04-25 Thread Gnanaguru S
[ERROR] Failed to execute goal org.apache.camel:camel-maven-plugin:2.9.2:run (default-cli) on project camel-ex ample-osgi: null: MojoExecutionException: InvocationTargetException: java.lang.IllegalArgumentException: Inval id uri, valid form: 'stream:{in,file,url}' -> [Help 1] Why I was not able

Transacted test case with ActiveMQ not working

2012-04-25 Thread javaxmlsoapdev
Hello, I have a use case to pick up a message from source JMS queue and route it to bunch of other JMS destination queues. In order to test transaction I have followed Camel in Action, steps described in Chapter 9 (Using Transactions), with embedded ActiveMQ etc. I have an interceptor like below.

Sample Camel service for HTTP/HTTPS

2012-04-25 Thread goutham
Hi, we are trying to implement a camel service. Please help me out with few samples if you have. Requirement. Channel will make a call to particular Endpoint Via HTTP/HTTPS call and internally the camel should make a call to some other components like SERVLET or REST service etc. Please kind

Re: File streaming using the Stream component in Camel 2.7 - changes

2012-04-25 Thread Gnanaguru S
Hi We have got this tail feature now ? Regards Guru -- View this message in context: http://camel.465427.n5.nabble.com/File-streaming-using-the-Stream-component-in-Camel-2-7-changes-tp4375640p593.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Transform and multiply

2012-04-25 Thread Hynek Cihlar
Hynek Cihlar wrote > > > Claus Ibsen-2 wrote >> >> On Tue, Apr 24, 2012 at 6:03 PM, Hynek Cihlar >> wrote: >>> Hello all, >>> >>> what would be the best approach to solve the "transform and multiply" >>> behavior? That is, a message retrieved from an endpoint is transformed, >>>

Http Route with WireTap -- Question/Issue

2012-04-25 Thread mccabejj
Hello, I am experiencing an intermittent issue with WireTap on HTTP component based routes. I feel like I have exhausted my resources (both in the Camel documentation, and on the forum) so I thought to post what I'm seeing. I will try to keep it as succint as possible. Thanks in advance for rea

Re: Setting a soap action on SoapJaxbDataFormat

2012-04-25 Thread Willem Jiang
The soap action header is part of HTTP header not a part of soap envelop. And there are quit difference between the SOAP 1.1 and SOAP 1.2. On Wed Apr 25 23:03:29 2012, David Savage wrote: Hi, I'm experimenting using camel to call a soap service but failing to find the magic combination of ste

Re: how to improve concurrent performance use cxf in Camel?

2012-04-25 Thread Willem Jiang
It dependes how you define the address, in most case jetty transport will be use by default. Can you show me your camel route ? On Wed Apr 25 23:13:59 2012, xiangqiuzhao wrote: i use camel-cxf in apache ofbiz, so my services should be using the tomcat? -- View this message in context: http://

Re: Using JdbcDataSourceName with Quickfix component

2012-04-25 Thread Christian Müller
I opened the issue [1] and fixed it already. [1] https://issues.apache.org/jira/browse/CAMEL-5220 Best, Christian On Mon, Apr 23, 2012 at 6:31 PM, Claus Ibsen wrote: > On Mon, Apr 23, 2012 at 5:40 PM, maroos wrote: > > Hi, > > I want Quickfix/J to use JdbcDataSourceName rather than > JdbcDriv

Re: org.apache.camel.RuntimeCamelException: org.apache.camel.TypeConverterLoaderException: Failed to load type converters because of: Cannot find any type converter classes from the following packages

2012-04-25 Thread soumya_sd
As you can see in the attached screenshot. I'm getting the correct version of the jar file. There is no TypeConverter file in the META-INF/services/org/apache/camel/component/ directory. So looks the changes were reflected. But I'm not sure what else is broken now :(. http://camel.465427.n5.nabb

JMS Endpoint Reuse and sending to different destinations at runtime(Didn't make it to the list 1st time)

2012-04-25 Thread Gershaw, Geoffrey
age Processor] DEBUG org.apache.camel.impl.ProducerCache - >>>> Endpoint[jmsUS://topic] Exchange[Message: 8=FIXT.1.19=17835=S15=USD22=R48=2I65BYCO155=60200560=20120425-19:03:46.0 51117=15648175132=95134=5167=INDEX_CDS423=6537=1632=0647=06372=Y7100 =CX7101=UPD7102=156481757528=010=202] 15:

Re: org.apache.camel.RuntimeCamelException: org.apache.camel.TypeConverterLoaderException: Failed to load type converters because of: Cannot find any type converter classes from the following packages

2012-04-25 Thread soumya_sd
@Alexandre - I'm still get the same error even after I used this in my pom.xml ( 5.4.0.CR1) INFO: validateJarFile(/Users/ssimanta/Documents/apache-tomcat-7.0.26/webapps/emontage/WEB-INF/lib/geronimo-servlet_3.0_spec-1.0.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending

JMS Endpoint Reuse and sending to different destinations @ Runtime

2012-04-25 Thread Gershaw, Geoffrey
] 15:03:46,120 [QFJ Message Processor] DEBUG org.apache.camel.impl.ProducerCache - >>>> Endpoint[jmsUS://topic] Exchange[Message: 8=FIXT.1.19=17835=S15=USD22=R48=2I65BYCO155=60200560=20120425-19:03:46.0 51117=15648175132=95134=5167=INDEX_CDS423=6537=1632=0647=06372=Y7100 =CX7101=UPD7

Re: File Name through Aggregator

2012-04-25 Thread ebinsingh
You are awesome. Thanks a lot for the clue and it did the trick. Below is the updated Aggregator code public Exchange aggregate(Exchange exchange1, Exchange exchange2) { try{ StringBuilder builder = new StringBuilder(); if (exc

Configuring ShiroSecurityPolicy in XML

2012-04-25 Thread dms79
Hello, With Camel 2.9.2, how can I configure a route using a ShiroSecurityPolicy in Spring XML like the following Java sample? I have noticed a policy XML element, but this seems to do something else. List permissionsList = new ArrayList(); Permission permission = new WildcardPermission("dummy:

Re: File Name through Aggregator

2012-04-25 Thread Claus Ibsen
On Wed, Apr 25, 2012 at 7:41 PM, ebinsingh wrote: > Hi All, > > Is there a way to capture the file name after it passes throught the > Aggregator. > > I am aggregating contents of vaiour files. The output should go into another > file which has to  have the same file of one of the processed file.

File Name through Aggregator

2012-04-25 Thread ebinsingh
Hi All, Is there a way to capture the file name after it passes throught the Aggregator. I am aggregating contents of vaiour files. The output should go into another file which has to have the same file of one of the processed file. Looks like after passing through the aggregator, the file name

Re: New JMS connection being created for every message

2012-04-25 Thread David Karlsen
I would recommend using WMQ's internal pooling. Just set connectionPooling to true on the connectionfactory. 2012/4/25 weberj : > Hi, > > OK, as you suggested I configured the > org.springframework.jms.connection.CachingConnectionFactory. It deploys but > on initializing there is > > com.ibm.msg.c

Re: Merge XML files

2012-04-25 Thread ebinsingh
Thanks a lot Marco. It was what I was looking for. I had to pass the output from Aggregator to a bean to wrap the aggregator output insise the header and footer nodes. Best regards, Ebe -- View this message in context: http://camel.465427.n5.nabble.com/Merge-XML-files-tp5664818p5665474.html Sent

Re: Prevent done file deletion after file consumption

2012-04-25 Thread Claus Ibsen
On Wed, Apr 25, 2012 at 6:19 PM, edvicif wrote: > Hi > > I like to configure the camel file consumer, that it should leave done files > alone. > > We are consuming files from a shared area and if I delete the done file I > could damage other consumers behaviour. > > Is there a way to tell camel no

Newbie question: Topology for Camel: Servlet -> Quartz -> JMS

2012-04-25 Thread Reynald
Hi all, I'm reading through all the documentation of Camel. I'm really excited but due to the extent of the docs and my lack of experience on it, I'd appreciate if somebody give some guidelines on the following scenario. I want to keep things as simple as possible :) - I have to have a decoupled

Prevent done file deletion after file consumption

2012-04-25 Thread edvicif
Hi I like to configure the camel file consumer, that it should leave done files alone. We are consuming files from a shared area and if I delete the done file I could damage other consumers behaviour. Is there a way to tell camel not to that? noop=true seems uneffective. The duplicate consumpti

Re: Cannot find resource in classpath using OSGi blueprint

2012-04-25 Thread Claus Ibsen
On Wed, Apr 25, 2012 at 11:25 AM, Tobias Hofer wrote: > Hi all, > > I switched from Apache Camel version 2.8.4 (in ServiceMix 4.4.1) to the > most recent version 2.9.2. Resource loading in 2.8.4 worked well, but not > in the new release of camel. > > I've a blueprint XML that contains the camel ro

Re: JMS route changes the JMSMessageID

2012-04-25 Thread Claus Ibsen
On Wed, Apr 25, 2012 at 3:11 PM, Jason Queen wrote: > Yeah I found some docs that point to wmq ignoring what you set and assign its > own.  The main reason I was trying to set it was for tracking purposes > similar to this thread where you discuss keeping track of the jmsmessageid > here: > > http

Re: camel-test-spring

2012-04-25 Thread Christian Müller
I got it. If our user use camel-test-spring, he will likely do it by annotating it with CamelSpringJUnit4ClassRunner or by extending CamelSpringTestSupport. For the first case, he needs spring-test, but not for the second one. If we didn't had to use Spring 3.1.x for this (say Spring 3.0.x would a

RE: Receiving NodeDeleted event using Camel's ZooKeeper component

2012-04-25 Thread GLIMMERVEEN Arnoud
Hi Claus, I submitted a patch to JIRA-5170 you created for tracking this enhancement. Can you take a look at the patch and see if it can be committed? Regards, Arnoud. > -Original Message- > From: Claus Ibsen [mailto:claus.ib...@gmail.com] > Sent: Saturday, 21 April, 2012 11:07 > To: u

Re: New JMS connection being created for every message

2012-04-25 Thread Christian Schneider
Never saw that before how does your init code look like? Or do you do it in spring? Where do you run your application? Christian Am 25.04.2012 16:19, schrieb weberj: Hi, OK, as you suggested I configured the org.springframework.jms.connection.CachingConnectionFactory. It deploys but on initi

Re: how to improve concurrent performance use cxf in Camel?

2012-04-25 Thread xiangqiuzhao
i use camel-cxf in apache ofbiz, so my services should be using the tomcat? -- View this message in context: http://camel.465427.n5.nabble.com/how-to-improve-concurrent-performance-use-cxf-in-Camel-tp5131454p5665140.html Sent from the Camel - Users mailing list archive at Nabble.com.

Setting a soap action on SoapJaxbDataFormat

2012-04-25 Thread David Savage
Hi, I'm experimenting using camel to call a soap service but failing to find the magic combination of steps to get the soap action header set. The current approach I'm taking is to do something like the following: public void configure() { SoapJaxbDataFormat soapDF = new SoapJaxbDa

Re: Understanding Request-Reply EIP in Spring DSL

2012-04-25 Thread Willem Jiang
You use the wire-tap to send the message to other endpoint and set the response in the end of the route. [1]http://camel.apache.org/wire-tap.html On Wed Apr 25 17:08:09 2012, Eugeniu wrote: Is there a way to send back a reply to the client and continue processing the message in the same route a

Re: New JMS connection being created for every message

2012-04-25 Thread weberj
Hi, OK, as you suggested I configured the org.springframework.jms.connection.CachingConnectionFactory. It deploys but on initializing there is com.ibm.msg.client.jms.DetailedIllegalStateException: MQJCA1031: The method can only be called in the application client container. The application was n

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

2012-04-25 Thread Willem Jiang
The stack trace is thrown from the server side not from the camel-cxf producer. Can you double check it? On 3/29/12 8:00 PM, bhushand wrote: Hello I am trying to use cxfEndpoint to call external web service. http://remote:4100/domain/ExternalService/services/ExternalService"; wsdlUR

Re: Transform and multiply

2012-04-25 Thread Hynek Cihlar
Claus Ibsen-2 wrote > > On Tue, Apr 24, 2012 at 6:03 PM, Hynek Cihlar wrote: >> Hello all, >> >> what would be the best approach to solve the "transform and multiply" >> behavior? That is, a message retrieved from an endpoint is transformed, >> multiplied and sent down the route p

Re: Merge XML files

2012-04-25 Thread Marco Westermann
HI, if I understand you correct, you miss the IPDRDoc-Element in the output after you splitted the message by tokenizeXML("IPDR"), is that correct? if you split a message by an xml-Element you will loose the parent-elements of that element you split by. What you can do is to aggregate the m

Re: JMS route changes the JMSMessageID

2012-04-25 Thread Jason Queen
Yeah I found some docs that point to wmq ignoring what you set and assign its own. The main reason I was trying to set it was for tracking purposes similar to this thread where you discuss keeping track of the jmsmessageid here: http://camel.465427.n5.nabble.com/keep-track-of-JMSMessageID-with-In

Merge XML files

2012-04-25 Thread ebinsingh
Hi All, I am trying to merge two xml files of the same format (i.e they contain the same Node's but different data). I use the tokenizeXML and tokenizePair utilities. But not sure how to include the herder in the output xml file. E.g I have 2 xml files like the below ... http://www.ipdr.org/na

Re: Cannot find resource in classpath using OSGi blueprint

2012-04-25 Thread Willem Jiang
Hi, Can you submit a small test case into a JIRA[1]? I will have a look at this this week. [1]https://issues.apache.org/jira/browse/CAMEL On Wed Apr 25 17:25:04 2012, Tobias Hofer wrote: Hi all, I switched from Apache Camel version 2.8.4 (in ServiceMix 4.4.1) to the most recent version 2.9.2

Re: how to improve concurrent performance use cxf in Camel?

2012-04-25 Thread Willem Jiang
I just assume you are using the cxf-rt-transport-http-jetty. Jetty has a default thread pool which max-size is about 254 ,min-size is 8. If you are using camel-cxf component to provide the service, the jetty default thread pool will be used. Xmx is just the heap size, it is not the process m

Re: Gracefull shutdown timeouts due to NotifyBuilder blocks on context

2012-04-25 Thread m . schmidt
Hi Claus, I've attached a Eclipse/Maven testcase which exposes the blocking thread state every time. At least for me ;-) Could you give it a go? cheers, Matthias Matthias Schmidt | Senior Software Engineer | Development & Delivery InterComponentWare AG | Altrottstraße 31 | 69190 Walldorf (Bad

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

2012-04-25 Thread bhushand
Hi, Thanks for your reply, but didn't get it. Could you please suggest a way for calling an external web service . I am using Apache CXF with Camel. Thanks Bhushan -- View this message in context: http://camel.465427.n5.nabble.com/getting-error-while-calling-external-web-service-from-camel-r

Re: [SOLVED]Re: Camel-Stream URI error

2012-04-25 Thread Gnanaguru S
Yes. Claus.I am getting empty message. This is my scenario. 1. I have a log file( Txt file) it is getting updated from one system. I want to read every new line updated and write to a database. 2. Every time I should not read a file from first line, Hope you can understand. 3. Instead of a

Cannot find resource in classpath using OSGi blueprint

2012-04-25 Thread Tobias Hofer
Hi all, I switched from Apache Camel version 2.8.4 (in ServiceMix 4.4.1) to the most recent version 2.9.2. Resource loading in 2.8.4 worked well, but not in the new release of camel. I've a blueprint XML that contains the camel route deployed in the deploy folder as well as several osgi bundles t

Re: Understanding Request-Reply EIP in Spring DSL

2012-04-25 Thread Eugeniu
Is there a way to send back a reply to the client and continue processing the message in the same route afterwards? -- View this message in context: http://camel.465427.n5.nabble.com/Understanding-Request-Reply-EIP-in-Spring-DSL-tp5662809p5664277.html Sent from the Camel - Users mailing list arch

Re: After update from 2.5.0 -> 2.9.2 I got: org.xml.sax.SAXParseException: cos-all-limited.1.2

2012-04-25 Thread zzkozak
Just to make it complete, my problem was caused by apache fop 0.20.5, which we are using. Maybe we should update it and use a newer version :) -- View this message in context: http://camel.465427.n5.nabble.com/After-update-from-2-5-0-2-9-2-I-got-org-xml-sax-SAXParseException-cos-all-limited-1-2-t

Re: camel-test-spring

2012-04-25 Thread Magnus Palmér
I don't have an issue with it since I found the work-around. It is more that it took me a couple of hours to figure it out (probably some of it due to inexperience since I first thought I had a problem with my application-context). And is Willem says it is an intermediate problem that will go away

Re: how to improve concurrent performance use cxf in Camel?

2012-04-25 Thread xiangqiuzhao
i make a pressure test. the client send 50 threads with 5minutes using soapUI, and my application use camel recevie webservices request, application running on linux, use Xmx512m on jvm. but the top display RES column has 1400m memory, why? i wan't to know how the cxf manager the threads. and how