Re: Registry not able to find Bean at run time

2013-04-10 Thread Claus Ibsen
Hi Its very likely OSGi. You application with the Camel app needs to have OSGi imports for those packages with the bean code, eg such as "com.airtel.money.volt.adapter" and the others. On Wed, Apr 10, 2013 at 9:41 AM, lmanchanda75 wrote: > Hi, > > I am using spring camel-context.xml to put cer

Re: Registry not able to find Bean at run time

2013-04-10 Thread lmanchanda75
Hi Claus, Thanks for your quick response. I order to try this out I made one more sample application, with following context http://camel.apache.org/schema/spring";> com.fusesource.fusebyexample http://0.0.0.0:1010/volt?sessionSupport=true"; id="ussd-1"> This endpoint

Re: Registry not able to find Bean at run time

2013-04-10 Thread Claus Ibsen
Hi I suggest to look at the 2 pom.xml files for the different projects and see if there is any difference. On Wed, Apr 10, 2013 at 11:21 AM, lmanchanda75 wrote: > Hi Claus, > > Thanks for your quick response. I order to try this out I made one more > sample application, with following context

Re: Facebook Component

2013-04-10 Thread Claus Ibsen
Hi Yeah we dont have a camel-facebook component. Would love to have one. I guess someone who has a facebook account would probably be better to develop and test it :) There is also an Apache project for social. Can't remember its name. You may also check if that is useable as an alternative to sp

Re: Facebook Component

2013-04-10 Thread Matthieu Vincent
Maybe you can have a look at https://code.google.com/p/camel-social/. Not an official camel component but seems interesting Mat 2013/4/10 Claus Ibsen > Hi > > Yeah we dont have a camel-facebook component. Would love to have one. > I guess someone who has a facebook account would probably be be

Re: Facebook Component

2013-04-10 Thread Jason Chaffee
There is Facebook4j as well. On Apr 10, 2013, at 2:55 AM, Matthieu Vincent wrote: > Maybe you can have a look at https://code.google.com/p/camel-social/. > Not an official camel component but seems interesting > > Mat > > > 2013/4/10 Claus Ibsen > >> Hi >> >> Yeah we dont have a camel-fac

Re: Registry not able to find Bean at run time

2013-04-10 Thread lmanchanda75
Hi, Following are the two files, pom_jetty is from code which is working, pom_volt is not working. The only difference which I could see was difference in version of camel. I will try changing the version, but if you can meanwhile suggest anything else by looking at the files. Regds Lalit po

Re: Registry not able to find Bean at run time

2013-04-10 Thread Claus Ibsen
Hi There is a big difference in using Camel 2.8.0 and 2.10.fuse If you use Fuse ESB then use the Camel version that it ships. This is the supported and tested version. On Wed, Apr 10, 2013 at 12:42 PM, lmanchanda75 wrote: > Hi, > > Following are the two files, pom_jetty is from code which is w

Re: servlet event based file consuming using file component

2013-04-10 Thread praveenbillampati
Found the reason behind the above error. Route is ending with a push to archive directory but internally exchange body is sent as the servlet response too. For sending the response camel is again trying to read the file from consumed location. Modified the route as shown below.

Re: Registry not able to find Bean at run time

2013-04-10 Thread lmanchanda75
Hi, Changing to Camel version 2.8.0 has not helped even. Please see if you can help further. Regds Lalit -- View this message in context: http://camel.465427.n5.nabble.com/Registry-not-able-to-find-Bean-at-run-time-tp5730630p5730649.html Sent from the Camel - Users mailing list archive at Na

Re: Registry not able to find Bean at run time

2013-04-10 Thread lmanchanda75
I further tried doing explicit registry search using ComvivaUssdAdapter handler = (ComvivaUssdAdapter) exchange.getContext().getRegistry().lookup("ComvivaUssdAdapter"); But I got null in the handler. Regds Lalit -- View this message in context: http://camel.465427.n5.nabble.com/Registry-not

Re: Enable to use default scope beans

2013-04-10 Thread Claus Ibsen
Hi The problem is that you use "default" scope for your bean. And then Camel cannot introspect the bean to figure out which method it has, and find the "foo" method to call. You can possible google about "default" package visibility in Java, etc such as: http://stackoverflow.com/questions/714791/

Re: 2.11: NPE with replaceFirst()

2013-04-10 Thread Claus Ibsen
Hi I logged a ticket https://issues.apache.org/jira/browse/CAMEL-6261 On Thu, Apr 4, 2013 at 4:23 PM, Claus Ibsen wrote: > Hi > > Yeah the NPE would be a bug. Feel free to log a JIRA ticket > > On Thu, Apr 4, 2013 at 12:04 PM, mdo wrote: >> Hello, >> >> I have a simple language expression like

How return a file to user?

2013-04-10 Thread horyna
I am trying return a file like response for a http request. How to do it? Everything i to is trying to save the file i need to load him :) Some me (bad) idea was: from("jetty:http://localhost:8085/someurl";).enrich("file://somefile.txt", agregator).?; -- View this message in context: http://ca

Re: Enable to use default scope beans

2013-04-10 Thread Gardella juan
Thanks for answer Claus! Yes I know why Camel cannot introspect the bean, but for example Spring Framework can introspect the bean with the package visibilty scope. Use beans with package visibilty improves encapsulation, so I created a jira ticket as an improvement to enable Camel introspect bean

Why do all Camel components have the same version number?

2013-04-10 Thread pmcb55
I'm intrigued by the versioning strategy used for Camel components. I'm wondering why all 80 (or whatever) Camel component JARs share the same version number. I assume very few of these components have code changes between releases (since Camel is very stable), so why not only bump up their version

messages dropped/ignored - consumers take an age to become free

2013-04-10 Thread xuloo
I have ActiveMQ setup via a camel route and i'm consuming messages from a queue. My problem is, if i only have 1 consumer that consumer will only consume 1 message every 30 seconds to a minute or so. If i setup up more concurrent consumers then each consumer will consume a message until each cons

Re: Simple case of multithreading with camel and wildcard.

2013-04-10 Thread lleclerc
Here is more details of what I am trying to do. In an osgi framework, I resolve everything that implements IMyService. Which have the method putDocuments(String path) I want to call this method for those X services and then transfer the files from hard drive. context.addRoutes(new RouteBu

Dynamically built URLs and URL encoding

2013-04-10 Thread Steppacher Ralf
Hi, this is about Camel 2.10.3... I need to dynamically build the URL/query string to be passed to the http component. As far as I can see there are two ways of achieving this: - Set header CamelHttpQuery fields=${headers[field.list]}&instrument=${headers[instrument.list]} - Use the recip

Re: Camel routing issue

2013-04-10 Thread Chris Wolf
You're asking about a problem with "CARD_EVENT_PREDICATE" without including the definition of that? On Tue, Apr 9, 2013 at 8:31 AM, prabumc...@gmail.com wrote: > Hi Chris, > > from(CARD_TYPE_SPECIFIC_QNAME).choice() > .when(SCHEDULE_PREDICATE).multicast().to(CARD_QNAME,SCHEDULE_QNAME); > .when(C

Re: messages dropped/ignored - consumers take an age to become free

2013-04-10 Thread xuloo
I thought this might be an issue with the way i had the config set up - so tried setting up a web application (based on the camel-example-activemq-tomcat) pointing at my message producer and i see the same thing. So, does nobody use activemq for high-speed messaging? Nobody sends messages more tha

Re: Callback after startup from org.apache.camel.main.Main afterStart()

2013-04-10 Thread Chris Wolf
What I did was extend Main, overriding: protected AbstractApplicationContext createDefaultApplicationContext(); The overridden method looks like: @Override public AbstractApplicationContext createDefaultApplicationContext() { AbstractApplicationContext appctx = super.createDefaultApplicationC

org.apache.cxf.binding.corba.CorbaBindingException: Unable to activate CORBA servant

2013-04-10 Thread ab
Hi, I am using idl2wsdl conversion and trying to host the Corba NameService. While defining the Camel Endpoint, I am providing corba address URI as mentioned below: address="corbaname::{{localServiceHost}}:{{localServicePort}}#{{localContextName}}" This is working fine if the "localContextName" d

Route failure on startup for SMPP consumer if SMSC down

2013-04-10 Thread Ray Slater
Hi , I'm trying to set up a route to process incoming SMS. Everything works fine if the SMSC is available and accepts the ESME connection on startup, and it can handle connection failures, etc. However if the initial connection attempt fails (eg if the SMSC is not accessible) then the route fails (

Re: Route failure on startup for SMPP consumer if SMSC down

2013-04-10 Thread Ray Slater
Ah. I've just seen the following Jira which suggests that "lazySessionCreation" was only implemented for the producer. https://issues.apache.org/jira/browse/CAMEL-3853 -- View this message in context: http://camel.465427.n5.nabble.com/Route-failure-on-startup-for-SMPP-consumer-if-SMSC-down-tp5

Re: How return a file to user?

2013-04-10 Thread Claus Ibsen
Hi You mean that from the user its like downloading a file? For that you would need to set the content-type to be file based (google to figure out the mime type for that). And you can just transform the message to a java.io.File and it will be returned sa file content Something a like: from("jet

How to use a cxf consumer in camel

2013-04-10 Thread valerian.merkling
Hi ! I'm currently unable to win against this error : /The PayLoad elements cannot fit with the message parts of the BindingOperation. Please check the BindingOperation and PayLoadMessage/ which come with this warning : / Cannot set right payload parameters. Please check the BindingOperation and P

Re: Why do all Camel components have the same version number?

2013-04-10 Thread Donald Whytock
I assume a part of each significant release is testing all the components against the core. So even if the component itself hasn't changed, it can be said to be compatible with the current core, and thus gets the same version number as the core. Don On Wed, Apr 10, 2013 at 8:57 AM, pmcb55 wrot

Google Drive Component

2013-04-10 Thread Jorge Davison
Hi All! I'm starting the development of Google Drive component to produce and consume files to/from a Drive. The current working part is the producer, that uploads files to the enpoint. Also, this component doesn't support authentication, it only access to the google service via a Access token pas

Enable mtom in camel cxf endoint

2013-04-10 Thread Sushmita chandra
I have created a soap based webservice using camel cxf endpoint. I have defined a property in my context Problem is when i create a SoapUI project using wsdl, i cannot see as enable mtom as true. Also when i forcibly change it to true it is not working -- View this message in context

Re: Why do all Camel components have the same version number?

2013-04-10 Thread pmcb55
Yep - I get that Don, and I agree that that is certainly a benefit. I'm just wondering if it's worth the cost of re-releasing a new version of 'everything' if I only want to make a small (but maybe critical) change to one small isolated component that no other part of the system depends on...? May

Re: Why do all Camel components have the same version number?

2013-04-10 Thread Chris Geer
See this thread: http://camel.465427.n5.nabble.com/Camel-3-discussion-Components-releases-td5727764.html On Wed, Apr 10, 2013 at 11:00 AM, pmcb55 wrote: > Yep - I get that Don, and I agree that that is certainly a benefit. I'm > just > wondering if it's worth the cost of re-releasing a new vers

How, exactly, to get the vm component to work

2013-04-10 Thread jdmturbomr2
Hi, I've created a simple test scenario with two classes (separate camel contexts) and a few very simple routes for the purposes of testing the "vm" component. The routes are as follows: Class1: tcp (via mina) -> vm:test Class2: vm:test -> file:outbox Upon running the two classes and sending a

Re: messages dropped/ignored - consumers take an age to become free

2013-04-10 Thread Christian Müller
There must be something wrong with your configuration. We process more than thousand messages per seconds with ActiveMQ. Have a look at [1] (go to the end of this page) where I attached a benchmark (comparison with Spring Integration). Hope this will help you. [1] http://forum.springsource.org/sho

Re: Route failure on startup for SMPP consumer if SMSC down

2013-04-10 Thread Christian Müller
I don't think it's a good feature for the consumer site. If you miss configured your SMPP consumer, it will try and try and ... and try to connect to the SMSC and you will never receive a message (and you will may not recognize this problem for a long time). A SMSC (for production) should be high

Re: Dynamically built URLs and URL encoding

2013-04-10 Thread Christian Müller
To be correct, you have a few more options. Also have a look at [1], [2] and [3]. I'm not sure whether I understood what you want to do. With the recipient list, you can provide a comma (or whatever you want) separated list of endpoint which should receive the message. Like: http://www.google.de/s

How to use quartz to schedule a file transfer ?

2013-04-10 Thread lleclerc
Hi, How to use quartz to schedule a file transfer ? from(quartzUri).to(fileUri1).to(fileUri2); doesn't seems to work. Thanks, -- View this message in context: http://camel.465427.n5.nabble.com/How-to-use-quartz-to-schedule-a-file-transfer-tp5730696.html Sent from the Camel - Users mailing lis

org.springframework.jms.InvalidDestinationException while trying placing a message on queue

2013-04-10 Thread praveenbillampati
Hi All, We are seeing un-handled exception from JMS producer which is causing infinite retries. Below is the scenario we have. 1. We are using camel JMS request reply. 2. Client places a request in a queue 'A' along with JMSReplyTo queue 'B' set in the request JMS header. 3. The queue 'A' is con

Re: How to use a cxf consumer in camel

2013-04-10 Thread Willem Jiang
Did you try to set the operationName header? 发自我的 iPhone 在 2013-4-10,下午11:41,"valerian.merkling" 写道: > Hi ! > > I'm currently unable to win against this error : /The PayLoad elements > cannot fit with the message parts of the BindingOperation. Please check the > BindingOperation and PayLoadMes

Re: How to use quartz to schedule a file transfer ?

2013-04-10 Thread Chris Wolf
You don't directly use the Quartz Component - you use a RoutePolicy, of which two concrete implementations will setup the Quartz Component and register it in the context for you. Here's an example from: http://camel.apache.org/simplescheduledroutepolicy.html ...which I changed a little to match y

Turn off the stack trace for EndpointMessageListener

2013-04-10 Thread salemi
Hi, If hit an error the EndpointMessageListener print out the full stack trace as followed below. How can I turn that off? Thank you, Ali 2013-04-10 12:12:25,648 [dads1.adminDLC]] WARN EndpointMessageListener - Execution of JMS message listener failed. Caused by: [org.apache.camel.Runtim

Re: Turn off the stack trace for EndpointMessageListener

2013-04-10 Thread Claus Ibsen
See the errorHandlerLoggingLevel and errorHandlerLogStackTrace option on the jms component http://camel.apache.org/jms On Wed, Apr 10, 2013 at 10:47 PM, salemi wrote: > Hi, > > If hit an error the EndpointMessageListener print out the full stack trace > as followed below. How can I turn that off?

Re: messages dropped/ignored - consumers take an age to become free

2013-04-10 Thread xuloo
Christian, I've no doubt there's something wrong with my configuration - i'm wondering if anyone can make suggestions about what might be the right configuration - or at least a better one? T -- View this message in context: http://camel.465427.n5.nabble.com/messages-dropped-ignored-consumers