File upload

2013-07-03 Thread jamalissimo
Hello guys, I have working file upload route( http://camel.465427.n5.nabble.com/Send-file-via-POST-request-td5728674.html#a5729109 ). Only problem is that I can send only file which is located at the same server as Karaf. My workflow is like this: Server with upload form -> Upload to server with

Re: Sending object to a Dynamic Route

2013-07-03 Thread Willem jiang
You just need to make sure the message body is right, then you can route the request to the endpoint by return the URI string. It's hard to setup camel-cxf endpoint just by using some simple String, because you may need to configure the CXF endpoint through Spring or Blueprint. -- Willem Jian

Re: 【help】base64 no echo

2013-07-03 Thread xielei
Thanks! The commons-codec is wrong, it should be v1.8. -- View this message in context: http://camel.465427.n5.nabble.com/help-base64-no-echo-tp5735131p5735168.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Weblogic JMS Security Issues - A possible resolution

2013-07-03 Thread David MacDonald
Hi, Yeah I saw most of those pages but none were particularly satisfactory. I didn't spend too much time on the solution of publishing to JMS from Camel because I haven't needed to use it in any real environment. Publishing to two different environments certainly throws a spanner in the works for

Re: Custom logging of exceptions by file component

2013-07-03 Thread Christian Müller
Check out the following links: http://camel.apache.org/exception-clause.html http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/processor/RedeliveryPolicy.html Best, Christian - Software Integration Specialist Apache Camel committer: https://camel.apache.

Re: Entity Manager is null

2013-07-03 Thread abhi
Hi Willem, Thanks a lot for valuable help. You are right, class was not managed by Spring. When I made it to managed by Spring its working fine. Regards, Abhi -- View this message in context: http://camel.465427.n5.nabble.com/Entity-Manager-is-null-tp5735076p5735163.html Sent from the Camel -

Re: file language : how to retrieve a header whose key contains DOT

2013-07-03 Thread Christian Müller
If you read the documentation carefully, you will see the syntax ${header[foo]} is available for Camel 2.9.2 onwards and not for Camel 2.8.1 (which is by the way not supported anymore at Apache - we support 2.10. and 2.11. at this time). Any chance to upgrade? [1] http://camel.apache.org/simple.h

file language : how to retrieve a header whose key contains DOT

2013-07-03 Thread sekaijin
Hi. I have a header that contains the key '.' => "aphp.destination.site" I am trying to locate a filename in a url but I can not get my header I use camel 2.8.1 I found in the sample language syntax ${header[key]} I tried to ${header[breadcrumbId]} but it does not work I get an error telling me th

Re: Custom logging of exceptions by file component

2013-07-03 Thread Claus Ibsen
You can configure the logging level and verbosity on the error handler / onException. So you can just turn off stacktrace and change from ERROR to WARN or even OFF etc. On Wed, Jul 3, 2013 at 5:51 PM, Nuno Santos wrote: > Hello everyone, > > I'm using the Camel File component to monitor a direc

Re: logging to different (dynamic) appenders

2013-07-03 Thread gquintana
You could use the DynamicRouter EIP + dynamically built Log endpoints. -- View this message in context: http://camel.465427.n5.nabble.com/logging-to-different-dynamic-appenders-tp5735080p5735159.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: 【help】base64 no echo

2013-07-03 Thread Christian Posta
Still works... see my example from above On Wed, Jul 3, 2013 at 9:54 AM, xielei wrote: > Sorry, it is base(), not gzip() method. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/help-base64-no-echo-tp5735131p5735153.html > Sent from the Camel - Users mailing list a

Re: synchronization Camel and JFrame

2013-07-03 Thread gquintana
You shouldn't execute the Camel processing in Swing's Event DispatchThread. As the EDT is busy with processing it can't repaint the JFrame. Instead run Camel processing in background thread using a SEDA and then update the JFrame using SwingUtilities invokeLater. Or you could use a SwingWorker, rea

Re: logging to different (dynamic) appenders

2013-07-03 Thread aedwards
A cleaner approach might be to use something like the sifting appender from logback to send the logs to different files (or whatever your requirement is) based on MDC variables that Camel sets. http://logback.qos.ch/manual/appenders.html#SiftingAppender http://camel.apache.org/mdc-logging.html

synchronization Camel and JFrame

2013-07-03 Thread Bovas
Hi everybody I use Camel 2.11 and Swing. I treat big files and I would like to follow the treatment on my JFrame. I put some print in my program. I have succeed to display these print on my Jframe, but they display only at the end of the camel process and not during the process. If someone have s

Re: FileAsyncStressReadLockLockFileTest and maxMessagePerPoll. picking twice

2013-07-03 Thread saltnlight5
It works for me when I use "preMove" into a staging folder first. Try this: from("file:target/filestress?maxMessagesPerPoll=50&preMove=processing&move=archive") -- View this message in context: http://camel.465427.n5.nabble.com/FileAsyncStressReadLockLockFileTest-and-maxMessagePerPoll-tp5735

Re: Custom logging of exceptions by file component

2013-07-03 Thread ltsallas
Take a look at http://camel.apache.org/eventnotifier-to-log-details-about-all-sent-exchanges.html I think you can implement a custom event notifier and log everything you like when ExchangeFailedEvent occurs -- View this message in context: http://camel.465427.n5.nabble.com/Custom-loggin

Re: 【help】base64 no echo

2013-07-03 Thread xielei
Sorry, it is base(), not gzip() method. -- View this message in context: http://camel.465427.n5.nabble.com/help-base64-no-echo-tp5735131p5735153.html Sent from the Camel - Users mailing list archive at Nabble.com.

Custom logging of exceptions by file component

2013-07-03 Thread Nuno Santos
Hello everyone, I'm using the Camel File component to monitor a directory for any file written there and upload them to a server. Once a file is uploaded, it is moved to a different directory. If the upload attempt fails, the file is left in place and another attempt is made to upload it in the ne

Re: 【help】base64 no echo

2013-07-03 Thread Christian Posta
Not sure... I just tried it and works fine: https://github.com/christian-posta/camel-sandbox/blob/master/basic/src/main/java/posta/StreamTestMain.java On Wed, Jul 3, 2013 at 6:01 AM, xielei wrote: > The code: > > public static void main(String[] args) throws Exception { >

Custom HTTP binding

2013-07-03 Thread solimo
Hello. According to http://camel.apache.org/jetty.html it is possible to easily override http binding. Unfortunately, default constructor of DefaultHttpBinding is annotated as @Deprecated, so this tutorial is outdated I think. Any way, looks like there is only a single point of usage of new cons

Re: Weblogic JMS Security Issues - A possible resolution

2013-07-03 Thread gquintana
Hi, I struggled against this one as well (I am happy not to be alone!), it's more related to WebLogic and Spring's DefaultMessageListenerContainer than Camel. My understanding is that, in WebLogic, the security context (who is sending/receiving messages) is bound to the thread getting the Connecti

Re: java.net.BindException: Address already in use

2013-07-03 Thread kiranreddykasa
cxfloadtest.csv It is available ,because very few transactions (1 %) are failing . Please find the load test details in the attached file. - Regards kiran Reddy -- View this message in context: http://camel.465427.n5.na

Re: MongoDB endpoint created before beans are being registered when deployed on ServiceMix

2013-07-03 Thread akcameluser
Raul, you were spot on thinking I had an old version of mongo driver jar. Got rid of it and all seems to work fine now. Many thanks for your help. -- View this message in context: http://camel.465427.n5.nabble.com/MongoDB-endpoint-created-before-beans-are-being-registered-when-deployed-on-Ser

Re: Chunking issue with http producer

2013-07-03 Thread Bernard Ligny
Can you please explain why in "Bridge mode *only*" ? >From the doc: "bridgeEndpoint : HttpProducer will ignore the Exchange.HTTP_URI header, and use the endpoint's URI for request" Sorry, but I do the not understand the concrete consequences of using URI x instead of URI y on the opportunity to s

nike free 5.0 herren

2013-07-03 Thread kieor
Innerhalb von IT den nächsten und zusätzlich 3. Stufe Ballungsräumen, die kleinen Kunden von einem lokalen nike free 5.0 herren Marke um zusätzliche Personen identifiziert werden sich bestimmt, aber das Wagnis der Individualität sein we

Re: java.net.BindException: Address already in use

2013-07-03 Thread akcameluser
Hi Looks like you're running multiple test on parallel and each test is creating CFX endpoint. As a quick solution try to set port numbers dynamically. Ayache -- View this message in context: http://camel.465427.n5.nabble.com/java-net-BindException-Address-already-in-use-tp5735132p5735138.htm

Re: java.net.BindException: Address already in use

2013-07-03 Thread Christian Posta
Sounds like whatever you're trying to connect to isn't available here: 10.44.71.149:7003 On Wed, Jul 3, 2013 at 6:10 AM, kiranreddykasa wrote: > Hi > When performing load testing on the following route some of the requests > are failing with this exception > > Route : > from("cxf:bean:orderE

Re: java.net.BindException: Address already in use

2013-07-03 Thread kiranreddykasa
Hi I m running only one test instance. Anyway i got exception while processing request, i.e while sending to external tcp host . - Regards kiran Reddy -- View this message in context: http://camel.465427.n5.nabble.com/java-net-BindException-Address-already-in-use-tp5735132p5735141.html S

Re: MongoDB endpoint created before beans are being registered when deployed on ServiceMix

2013-07-03 Thread Raul Kripalani
Try using the mvn dependency:build-classpath goal and check if you have multiple versions of the MongoDB driver. What server environment are you running Camel on? ServiceMix, Tomcat, JBoss, etc.? If applicable, also check the lib/ directories everywhere (server, instance, WAR, etc.) to make sure n

Re: MongoDB endpoint created before beans are being registered when deployed on ServiceMix

2013-07-03 Thread Raul Kripalani
I wonder if maybe you have several versions of the Java MongoDB driver in your classpath? That could justify why you observe different behaviour on different environments. *Raúl Kripalani* Enterprise Architect, Open Source Integration specialist, Program Manager | Apache Camel Committer http://abo

Re: MongoDB endpoint created before beans are being registered when deployed on ServiceMix

2013-07-03 Thread akcameluser
Thanks Raul. I did tried that, but same issue I am afraid. Same code was running fine on my local smx though, but wasn't running earlier. -- View this message in context: http://camel.465427.n5.nabble.com/MongoDB-endpoint-created-before-beans-are-being-registered-when-deployed-on-ServiceMix-tp5

Re: Chunking issue with http producer

2013-07-03 Thread Willem jiang
Thanks for sharing the solution with us. I think we can enable this kind of feature when the http producer is working in the Bridge mode. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.co

【help】base64 no echo

2013-07-03 Thread xielei
The code: public static void main(String[] args) throws Exception { CamelContext context = new DefaultCamelContext(); context.addRoutes(new RouteBuilder() { public void configure() { from("stream:in?pro

Re: Chunking issue with http producer

2013-07-03 Thread Bernard Ligny
I finally found a solution that i am sharing here for the community. With that proposed patch, the streaming capability is preserved, and the latency is now much better: Here are the details of my patching of "*HttpProducer.java*

Re: MongoDB endpoint created before beans are being registered when deployed on ServiceMix

2013-07-03 Thread Raul Kripalani
Just out of curiosity, could you define the Mongo bean in the same Spring Application Context XML where the Camel Context is configured? (using the XML config style instead of the Java style). *Raúl Kripalani* Enterprise Architect, Open Source Integration specialist, Program Manager | Apache Camel

java.net.BindException: Address already in use

2013-07-03 Thread kiranreddykasa
Hi When performing load testing on the following route some of the requests are failing with this exception Route : from("cxf:bean:orderEndpoint").bean(CXFRequestProcessor.class) .to("netty:tcp://10.44.71.101:7001textline=true").to("netty:tcp://10.44.71.67:7004textline=true") .bean(MainDummyPro

Re: FileAsyncStressReadLockLockFileTest and maxMessagePerPoll. picking twice

2013-07-03 Thread ltsallas
I ran various org.apache.camel.component.file.stress.FileAsyncStressTest tests and when the initial files in the inbox folder are 2000 and maxMessagesPerPoll is 50, I always get files being processed twice with all readLock options, except rename.Mind that I am using an additional move option to m

MongoDB endpoint created before beans are being registered when deployed on ServiceMix

2013-07-03 Thread akcameluser
Hi I am getting this weird error stating that Bean can't be found in registry. Looks like the mongodb endpoint is being created before beans are registered. I can run it perfectly on IDE and experienced the same issues on my local ServiceMix but it seems to have gone away now. But the still fail

Re: Chunking issue with http producer

2013-07-03 Thread Bernard Ligny
Thanks for your response. Wouldn't it be interesting for next releases to have an option to (not cache and) *defer* the connection closing till the exchange (that is, behind the scene, the input stream of http response) is *effectively* (fully) read ? I am thinking for instance about using a compl

seda route triggering (Stop and Start) through JConsole

2013-07-03 Thread bharathramesh
Hi I am trying to trigger the following seda routes through JConsole * http://camel.apache.org/schema/spring";>