Re: Get Socket Status of Netty4 Route

2015-11-18 Thread Leomar
Hi there, may there be any chance to get the netty Channel if i have an instance of the route ? Thanks, Leomar -- View this message in context: http://camel.465427.n5.nabble.com/Get-Socket-Status-of-Netty4-Route-tp5773807p5774096.html Sent from the Camel - Users mailing list archive at Nab

Re: OSGi CamelHttpTransportServlet error

2015-11-18 Thread Claus Ibsen
Configure it on the camel servlet component, and give it a new name like servlet2 if you need to use different names On Thu, Nov 19, 2015 at 8:34 AM, alexey-s wrote: > From route builder > > component("servlet") use ServletComponent. > > How to specify the correct servletName? > > > > -- > View t

Re: OSGi CamelHttpTransportServlet error

2015-11-18 Thread alexey-s
>From route builder component("servlet") use ServletComponent. How to specify the correct servletName? -- View this message in context: http://camel.465427.n5.nabble.com/OSGi-CamelHttpTransportServlet-error-tp5774062p5774094.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: OSGi CamelHttpTransportServlet error

2015-11-18 Thread alexey-s
One OSGi bundle can be regarded as a WAR or EAR module in the JavaEE server. I'm talking about the fact that in different modules can not use servlets with the same name. The fact that the component camel-servlet comprises a static cache And he's one for all the modules. Something similar can be c

Re: OSGi CamelHttpTransportServlet error

2015-11-18 Thread yogu13
Hello! >From what I understand the code written to register servlets registers servlet with the OSGI's Web container at runtime. Since there is only one instance of the webcontainer available within the container you are ending up wiring different servlet instances against the same servlet name wh

Exception Handling in camel onWhen

2015-11-18 Thread Ishada
I am using Camel in the integration Project to connect it to the Http Endpoint. Now I am trying to implement a scenario such as when ever there is an exception while connecting to the HTTP endpoint , I should use the status code to decide whether to try re-delivery or else continue the route. Here

Deploying Camel Route

2015-11-18 Thread pavi...@healthedge.com
I have camel route defined in a spring context file. It works fine when the spring context file is inside a KAR. Now I am trying to deploy the same KAR but with configuration to place the spring context file outside KAR in Karaf server at, KARAF_HOME/deploy-route, now I get the following error dur

Re: How to improve throughput by grouping messages in a Transaction (in JMS)

2015-11-18 Thread Antonin Stefanutti
It should be in spring-batch-integration. > On 18 Nov 2015, at 18:52, deepak_a wrote: > > Hi, > > I have made a thorough search but unable to find > docs.spring.io/spring-batch/apidocs/org/springframework/batch/container/jms/BatchMessageListenerContainer.html > > in the spring-batch/spring-ba

Re: How to improve throughput by grouping messages in a Transaction (in JMS)

2015-11-18 Thread deepak_a
Hi, I have made a thorough search but unable to find docs.spring.io/spring-batch/apidocs/org/springframework/batch/container/jms/BatchMessageListenerContainer.html in the spring-batch/spring-batch-core library. (although the javadocs says its available) I don't see the package org/springframewo

How to implement a peek ahead / skip processing in queue

2015-11-18 Thread apara
I need to process events from thousands of logical streams (discriminated by request.body.partitionKey) in order by stream. In other words, events from a particular stream need to be processed in strict order, however, events between the streams can be processed asynchronously. To accomplish this

Re: Camel Restlet component not using property placeholder resolver and not support classpath resource type

2015-11-18 Thread Andreas Siepert
Hi, if running your app in OSGi and the Stack-Trace comes from a test using CamelBlueprintTestSupport, this is a know bug. Please provide some more details like camel context XML. Greetz Andreas 2015-11-18 8:51 GMT+01:00 ehsiung : > It seems that Camel Restlet component is not resolving sslCon

Re: How to improve throughput by grouping messages in a Transaction (in JMS)

2015-11-18 Thread Antonin Stefanutti
I don't know of any public / shareable example of setting a custom MessageListenerContainer unfortunately. That being said, from the Camel route standpoint, you should write something like: from://jms?consumerType=Custom&messageListenerContainerFactoryRef=… This is documented in http://camel.a

Re: How to improve throughput by grouping messages in a Transaction (in JMS)

2015-11-18 Thread deepak_a
Hi, Thanks for the reply, the XA connection factory is in place, Can you pls point to an example on how to override the default messageListener? (I have checked in forum - I am not able to see anyone done this in the past) regards D -- View this message in context: http://camel.465427.n5.nab

OSGi CamelHttpTransportServlet error

2015-11-18 Thread alexey-s
I use two different OSGi component. Each writing I see an error It turns out that the two OSGi components must not only be different version of the component, but also the name of the servlet. This is clearly a mistake. The second error I give unique names to each servlet. I see an error

Re: Why using camel routes (via activemq) in Apache karaf?

2015-11-18 Thread Matt Sicker
By separating your integration concerns into separate bundles, you can update each bundle separately without redeploying and restarting all the Camel routes. Your bundles can speak through JMS (separate machines), or they can even use the direct-vm endpoint (all in the same OSGi instance, just sepa

Re: Is There a way to treat a large file?

2015-11-18 Thread Claus Ibsen
In your java method readFileStream public void "readFileStream(FileInputStream is) { .. read the file in chunks as you wish } You can also look at the splitter eip in streaming mode, and provide some expression that reads X chunks of bytes or split the big file in X number of lines or something.

Re: Is There a way to treat a large file?

2015-11-18 Thread kikou1984
Thank you for the answer I didn't really understand, how i can i add a parameter to a bean ? ( Also should i keep the property CamelCachedOutputStreamBufferSize ? ) Can you give me an example please. Thank you. -- View this message in context: http://camel.465427.n5.nabble.com/Is-There-a

Re: Multicast

2015-11-18 Thread Claus Ibsen
If you want them to be indpendent you can use wire-tap EIP instead of multicast. As the multicast would need to wait for all 3 to complete before its fully done. Although you can use its timeout option to let the others continue, but it may get a bit complicated. If all you want is to send the mess

Re: Is There a way to treat a large file?

2015-11-18 Thread Claus Ibsen
You can just use FileInputStream or File etc as the parameter in your readBean then the file is not loaded into memory. Also there is the stream component but its not exactly the same as the file component http://camel.apache.org/stream On Wed, Nov 18, 2015 at 3:00 PM, kikou1984 wrote: > I m u

Is There a way to treat a large file?

2015-11-18 Thread kikou1984
I m using apache Camel to treat files. However, i m asking if i can split a file depending on the number of byte. For exemple , if i have a file with a size like 1 GO, is that possible to read it by block of 10 MO. (with a parameter that defines the size of a block) Is there a component Camel EI

Re: How to improve throughput by grouping messages in a Transaction (in JMS)

2015-11-18 Thread Antonin Stefanutti
You could use BatchMessageListenerContainer [1] instead of DefaultMessageListenerContainer. An option to provide a specific MessageListenerContainer is to used the 'consumerType' parameter from the JMS component and set it to 'Custom' and provide the option 'messageListenerContainerFactoryRef'

Re: How to improve throughput by grouping messages in a Transaction (in JMS)

2015-11-18 Thread deepak_a
Hi, As mentioned in my previous post - I am developing a bridge that will set b/w ActiveMQ and TIBCO EMS. My aim is to use a XATransactionManager (like Atomikos) that will be common for the JMS Session that will consume from ActiveMQ and the JMS Session that will be publish to TIBCO EMS. With th

Rest with basic auth

2015-11-18 Thread dermoritz
i created a little app that provides some services via rest. I am using rest dsl with restlet component (i hav no problem if i have to switch). No i want to secure it with basic auth so that i can provide the credentials in url: http://user:p...@myservice.com/getsome I tried it to set it up as de

Re: file component - file producer - setting file permissions

2015-11-18 Thread Claus Ibsen
You can try the exec command afterwards to run a chmod command that changes the permission. http://camel.apache.org/exec On Wed, Nov 18, 2015 at 11:58 AM, calyan.bandi wrote: > Hi, > > I have a requirement where in my route creates a file and writes some data > into it. The file is getting create

Multicast

2015-11-18 Thread R12
Hi everyone, Recently, I have created and tested the following flow on camel version 2.15 (i.e. sending msg to multiple remote ActiveMQ brokers): All works fine if all activemq bro

file component - file producer - setting file permissions

2015-11-18 Thread calyan.bandi
Hi, I have a requirement where in my route creates a file and writes some data into it. The file is getting created successfully with default permissions which is 0600. I want the file permissions to be changed to 0777 so that applications running for different users can also have their hands on t

Re: Ignore JMSReplyTo

2015-11-18 Thread renu
Hi, I am having two different consumers for single endpoint. One consumer needs the response back while other does'nt want the response to be sent back. Is there is any way that on runtime depending on the consumer I can make DisableReplyTo=true. Or any other way to achieve the same. Regards, Re

RE: Using BeanInvocation in camel cxf

2015-11-18 Thread Kasim Sert (Ibtech-Software Infrastructure)
Hi, I have following route, generating the BeanInvocation manually. I am still not sure if that was necessary for ws call. 1) from("direct:listCustomers") .bean(Handler.class,"handleForward") .bean(SOAPToBagTransformer.class) .bean(QoSHandler.clas