Re: Messages seem to contain more than I expected...

2013-08-30 Thread Alex Paransky
Claus, This appears to be this issue which was resolved a while back: https://issues.apache.org/jira/browse/CAMEL-2325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel On Aug 30, 2013 3:45 PM, "Alex Paransky" wrote: > So, here is what I currently have as a route: > > >

Re: Netty and requestTimeout

2013-08-30 Thread Claus Ibsen
Hi What version of Camel do you use? And can you show us the netty uri you use that causes the reques timeout? On Sat, Aug 31, 2013 at 1:00 AM, fbarbat wrote: > Hi, > > I'm having problems with requestTimeout on a Netty component. A > NullPointerException raises when camel tries to get UnitOfWor

Re: Processor ref bind to header values

2013-08-30 Thread Claus Ibsen
Hi No you cannot. But see this FAQ: http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html On Fri, Aug 30, 2013 at 5:48 PM, wrote: > Hi, > Please advise if we can bind the processor reference to a header values of > the exchange? > > Something like this > > > > If I put this like that it

Camel, Netty, and IdleStateHandler

2013-08-30 Thread fbarbat
Hi, I want to send echo messages when channels are idle. However, I don't know how this feature fits nicely with Camel channel pool. How can I tell camel not to use some channels while I'm sending an echo message? Is it possible? I was thinking to implement a handler which locks the channel, but t

Re: Netty and requestTimeout

2013-08-30 Thread fbarbat
I forgot to mention I'm using persistent connections with this producer. -- View this message in context: http://camel.465427.n5.nabble.com/Netty-and-requestTimeout-tp5738341p5738342.html Sent from the Camel - Users mailing list archive at Nabble.com.

Netty and requestTimeout

2013-08-30 Thread fbarbat
Hi, I'm having problems with requestTimeout on a Netty component. A NullPointerException raises when camel tries to get UnitOfWork. It looks like the timeout is raising even though there is no current inflight exchange. Any ideas? Thanks. An exception was thrown by a user handler while handling a

Re: Messages seem to contain more than I expected...

2013-08-30 Thread Alex Paransky
So, here is what I currently have as a route: ${body.args[0].userId} stomp:topic:

Re: Inter-Route.Communication

2013-08-30 Thread Christian Müller
Why using a bean in your first route if you only call a direct endpoint? Why not: from() .split().streaming() .to("direct:sub"); Best, Christian Am 30.08.2013 02:28 schrieb "Christopher Gardner" : > I'm using stoponexception. My splitter route includes a bean processor > that uses produce

Re: How to Give any java application as a end point in from (....)

2013-08-30 Thread Pontus Ullgren
If you want to call the camel route synchronously then you can use a direct endpoint[1] and then in getMessage() use a producer template[2]. Other options are to use a seda[3] endpoint. So something like this: public class StandAloneCameClass implements MessageProducer { ProducerTemplate

Re: Logging into the bundle log file via to("log:...")

2013-08-30 Thread Raul Kripalani
If you use the logging API directly (e.g. slf4j) from within a Processor, it should. But that's not the Camel way of doing things ;-) *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterprise Architect, Open Source Integration specialist http://about.me/raulkripalani | http://www.linkedin.

Re: bundle stays in state creating

2013-08-30 Thread Marco Westermann
Hi Claus, thank you for that advises. But nevertheless I think it would be good ( not just for beginners ) if a warning is logged in servicemix.log for example after 10 attemps. In my case I double checked everythink except the firewall. That is way it took long time to see what causes the bu

Re: Waiting for Namespace Handlers, even though they're available.

2013-08-30 Thread Tom Ellis
Changed the blueprint.xml header to http://www.osgi.org/xmlns/blueprint/v1.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0"; xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org

Processor ref bind to header values

2013-08-30 Thread ganeshkumar.kanagavel
Hi, Please advise if we can bind the processor reference to a header values of the exchange? Something like this If I put this like that it's not substituting the value but looking for the bean id ${header.ServiceClassname} Thanks Ganesh ___ This

Re: Waiting for Namespace Handlers, even though they're available.

2013-08-30 Thread John D. Ament
Try this In your blueprint.xml, the xsi:schemaLocation add http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint-2.10.4.xsd and then in the body, http://camel.apache.org/schema/blueprint";> On Fri, Aug 30, 2013 at 2:32 PM, Tom Ellis wrote: > I asked

Waiting for Namespace Handlers, even though they're available.

2013-08-30 Thread Tom Ellis
I asked this on the JBoss Fuse forums, but I hope that maybe one of you have come against this: Can anyone tell me why my bundle is entering into GracePeriod here: camel-blueprint exposes the camel blueprint namespace: JBossFuse:karaf@root> list | grep 135 [ 135] [Active ] [Created ]

Re: How to Give any java application as a end point in from (....)

2013-08-30 Thread jhonny
getMessage() is called by the java application contiously , where it insert the messages coniniously -- View this message in context: http://camel.465427.n5.nabble.com/How-to-Give-any-java-application-as-a-end-point-in-from-tp5738327p5738328.html Sent from the Camel - Users mailing list archive

How to Give any java application as a end point in from (....)

2013-08-30 Thread jhonny
Hi, Am Novice to Camel. I had a java application which continuously produces the messages, i can get this messages by implementing the one of the method [getMEssages()] in my main class , my code looks like below public class StandAloneCameClass implements MessageProducer { pub

Re: Messages seem to contain more than I expected...

2013-08-30 Thread apara
I guess, I am not quite sure how the routes and expressions are working. The object which I am sending looks like this: public class UserEarningEvent { private int id; private int userId; ... public int getUserId() { return userId; } } On the other side

Messages seem to contain more than I expected...

2013-08-30 Thread Alex Paransky
Dear list members I have defined the following route in my application: stomp:topic:dm${body.userId} Here is how I am sending the

Re: How to called the processor

2013-08-30 Thread jhonny
thanks for the help.. -- View this message in context: http://camel.465427.n5.nabble.com/How-to-called-the-processor-tp5737769p5738324.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Logging into the bundle log file via to("log:...")

2013-08-30 Thread Hilderich
Hello Raul, as you can see below I am using the bundle name as the sifting key: As you have mentioned I have no hope that plain logging inside the route can appear in the proper bundle log file, isn't it? -- View this message in context: http://camel.465427.n5.nabble.com/Logging-into-the-bu

Re: @Handler has no effect

2013-08-30 Thread xdoo
Hi Hilderich, the @Handler annotation is somethinag that should work. Refers your "findOrdersWithOpenStatus" id to the CheckOrderExtractionForFinalMessage class? A complete error message would help... Best regards - Claus -- View this message in context: http://camel.465427.n5.nabble.com/Han

@Handler has no effect

2013-08-30 Thread Hilderich
Hello folks! In a Camel Route I use a node like this: The Bean looks as follows: But the appropriate bean method cannot be found: Actually the annotation @Handler should show the right method. In my opinion Camel's behaviour is not correct referring to its documentation. We are using Apache

Re: Which exception on a bad conversion in a TypeConverter?

2013-08-30 Thread Claus Ibsen
Hi You can throw any kind of exception you want. For example NumberFormatException, IllegalArgumentException Though there is a TypeConversionException which is maybe what you are looking for. But there is no rule that it must be TypeConversionException exception thrown. You can throw what you wan

Re: bundle stays in state creating

2013-08-30 Thread Claus Ibsen
Hi If you want the bundle to fail starting, then you can configure activeMQ to a max number of reconnect attempts on startup with startupMaxReconnectAttempts http://activemq.apache.org/failover-transport-reference.html Otherwise it keeps retrying to connect to the broker. Also the jms component

bundle stays in state creating

2013-08-30 Thread Marco Westermann
Hi, I just found an imperfection in camel 10.6 + smx452 + blueprint. I have some camel bundles each containing a route similar to this one: from("activemq:testqueue") .to("direct:process") Also I reconfigured broker.xml in smx so that it points to a broker on another maschine. If camel

Which exception on a bad conversion in a TypeConverter?

2013-08-30 Thread Cristiano Costantini
Hi all, Which Exception should I use when I can't convert something in a TypeConverter? I was throwing a org.apache.camel.NoTypeConversionAvailableException, but this is used when no type converter exists. Is there an appropriate exception recommended to be used? thank you! Cristiano

WSDL-error

2013-08-30 Thread mahii.in87
Hi When i replaced the wsdl i am getting the following error.I replaced the wsdl SI_ID52_MaterialConsumption_async_outService3 with SI_ID52_MaterialConsumption_async_outService.I changed the path in pom also.but error is thorwing. Can anyone help me in this. javax.wsdl.WSDLException: WSDLExcepti

Re: How to establish Telnet session in Camel 2.9

2013-08-30 Thread Marco Westermann
Hi, you can use camel-mina for that. http://camel.apache.org/mina2.html Am 30.08.2013 13:06, schrieb rnitin: Hi, Can any one guide me how to create telnet session in camel 2.9 -- View this message in context: http://camel.465427.n5.nabble.com/How-to-establish-Telnet-session-in-Camel-2-9-tp

Re: How to poll Google mail inbox for mails

2013-08-30 Thread Guillermo
Thanks for your reply. I have seen that the problem was not in my Java installation. The problem was that the application server (weblogic) did not have the imap.gmail.com certificate imported. I have followed the instructions that are explained in the link of stackoverflow to do that. Thanks.

Re: Cluster in camel using Quartz - ObjectAlreadyExistsException

2013-08-30 Thread Claus Ibsen
Hi Thanks for coming back with the stacktrace. This seems like a bug / room for improvement. I have logged a ticket https://issues.apache.org/jira/browse/CAMEL-6686 On Fri, Aug 30, 2013 at 12:54 PM, ravishankar.singaram wrote: > Am sorry, I didnt see your reply. Below is the complete stack trace

RE: How to establish Telnet session in Camel 2.9

2013-08-30 Thread Siano, Stephan
Hi, As telnet is just plain socket communication, you probably want something like camel-netty. Best regards Stephan -Original Message- From: rnitin [mailto:nitinrai1...@gmail.com] Sent: Freitag, 30. August 2013 13:07 To: users@camel.apache.org Subject: How to establish Telnet session

How to establish Telnet session in Camel 2.9

2013-08-30 Thread rnitin
Hi, Can any one guide me how to create telnet session in camel 2.9 -- View this message in context: http://camel.465427.n5.nabble.com/How-to-establish-Telnet-session-in-Camel-2-9-tp5738298.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Cluster in camel using Quartz - ObjectAlreadyExistsException

2013-08-30 Thread ravishankar.singaram
Am sorry, I didnt see your reply. Below is the complete stack trace. Exception: Unable to store Job with name: 'job-START-SSIM7Route11' and group: 'jobGroup-SSIM7Route11', because one already exists with this identification. at org.springframework.beans.factory.support.AbstractAutowireCapa

Re: Inter-Route.Communication

2013-08-30 Thread Christopher Gardner
So if I have the following: from("direct:a").split(...).streaming().bean(myBean) where myBean uses a producer template to send to direct:b when part of the stream is processed (we had to use this instead of an aggregator) from("direct:b).bean(myOtherBean) ... Say something went wrong in myOther

Re: Camel 2.11.1 - SedaComponent issues with Queue size

2013-08-30 Thread vcheruvu
Doh! It is an Integer object !! .. Allright, I will check out the source using Git and apply patch. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-2-11-1-SedaComponent-issues-with-Queue-size-tp5738258p5738265.html Sent from the Camel - Users mailing list archive at Na

Re: STOMP: Exception: The maximum command length was exceeded

2013-08-30 Thread apara
Claus, thanks for your help, your changes worked and helped. "Claus Ibsen-2 [via Camel]" wrote: > Hi > >You need to configure the stomp component with the id="stomp" so Camel >uses that, eg > >    class="org.apache.camel.component.stomp.StompComponent" >depends-on="jmsBroker"> >     

Re: Camel 2.11.1 - SedaComponent issues with Queue size

2013-08-30 Thread Claus Ibsen
Hi Yeah give that a try and as we love contributions. Feel free to log a JIRA and provide a patch. On Fri, Aug 30, 2013 at 8:26 AM, Alex Paransky wrote: > Looks like the values being compared are Objects, but != is being used > instead of !equals method. Since you have the src try the fix. > On