Re: camel and several implementations of an interface

2013-03-01 Thread Claus Ibsen
On Thu, Feb 28, 2013 at 3:42 PM, Smith-John wrote: > Having a bundle with an interface and several implementations of it (all in > their own bundle), how can I decide which bundle to call? > > Details: > Bundle 1 just defines an interface. (packageName.InterfaceName) > Bundle 2, 3 & 4 implement th

ErrorHandling support for asynchronous JMS producers

2013-03-01 Thread shindito
Hi all, Does Camel provide error handling support for MessageProducer.send invocations that behave *asynchronously*? For example, lets have a look at the the following route: *from(endpoint).errorHandler(errorHandlerFactory).to(jms:topic:myTopicName)* We assume that the topic myTopicName does not

Re: cxf response

2013-03-01 Thread Smith-John
Hi, I got it to work. I still use the .unmarshal(jaxb) part, but for the moment it is ok. Maybe I will change this sometime later. "example.ExampleResponse" is a generated jaxb-class. Thx for helping. -- View this message in context: http://camel.465427.n5.nabble.com/cxf-response-tp5728106p57

smpp datacoding - alphabet at endpoint level not taken into account

2013-03-01 Thread fclose
Hello, This, week I have been struggling with the sending of sms with special (french) characters. On the initial tests I did I was setting the dataCoding / alphabet (= 8 UCS2) as URI options of the endpoint. This didn't work. When I set the alphabet to UCS2 as a Producer Message Header and en

direct-vm and CamelBlueprintTestSupport

2013-03-01 Thread cheekychops
Hi, I've just split a camel context in two and connected them using direct-vm like this: http://camel.apache.org/schema/blueprint"; trace="false"> http://camel.apache.org/schema/blueprint"; trace="false"> ... Now my unit tests on blueprintContext fail randomly (sometimes they pass), w

Re: direct-vm and CamelBlueprintTestSupport

2013-03-01 Thread Claus Ibsen
Hi What version of Camel do you use? And what / how do you run your unit test? On Fri, Mar 1, 2013 at 12:07 PM, cheekychops wrote: > Hi, > > I've just split a camel context in two and connected them using direct-vm > like this: > > xmlns="http://camel.apache.org/schema/blueprint"; trace="false

Re: camel and several implementations of an interface

2013-03-01 Thread Claus Ibsen
On Fri, Mar 1, 2013 at 1:52 PM, Smith-John wrote: > In one of the plugin bundles (that implements the interface) I added in > OSGI-INF/blueprint a xml file with > > http://www.osgi.org/xmlns/blueprint/v1.0.0";> > interface="pluginInterface.PluginInterface" /> > > > > and to the bundle

Re: direct-vm and CamelBlueprintTestSupport

2013-03-01 Thread cheekychops
This is part of a FUSE ESB deployment, so its version 2.10.0.fuse-71-047 of Camel. My test class extends CamelBlueprintTestSupport. I use a producerTemplate to send to the endpoint, like this: @Produce(uri = "direct-vm:validator") protected ProducerTemplate validatorProducer; ...

Reply messages from aggregator

2013-03-01 Thread Sven Bauhan
Hi, I'm quite new to Camel and I have a problem to understand the basic principle of sending replys back to a sender. I try to implement a protocol that aggregates segments to a complete message. For each segment a reply message is expected by the sender. My route is now: JaxbDataForm

Re: camel and several implementations of an interface

2013-03-01 Thread Smith-John
Camel ist started with OsgiServiceRegistry reg = new OsgiServiceRegistry(bundleContext); OsgiDefaultCamelContext camelContext = new OsgiDefaultCamelContext(bundleContext, reg); camelContext.addRoutes(new Route()); camelContext.start(); -- View this message in context: http://camel.465427.n5.na

How to pass decrypted value in from tag

2013-03-01 Thread sarfaraj
Hi, I am using sftp component in "from" tag. In that, I want to pass decrypted value using our custom utility(Java Code). (i.e. EncryptionUtil.decrypt(password); ) I am reading/getting password value from .cfg file, which is encrypted. ftp://root@10.0.0.1//temp?password={{server.password}}&local

Re: How to pass decrypted value in from tag

2013-03-01 Thread Raul Kripalani
We support Jasypt [1] for encrypting/decrypting parameters out-of-the-box. Is that something you could use? Otherwise, if you absolutely have to stick with your custom library and utility class, could you build your route using Java DSL? In that case you could do something like: String decrypted

Re: How to pass decrypted value in from tag

2013-03-01 Thread Christian Müller
We do this also with the Spring DSL by using Springs expression language. Sent from a mobile device Am 01.03.2013 10:58 schrieb "Raul Kripalani" : > We support Jasypt [1] for encrypting/decrypting parameters out-of-the-box. > Is that something you could use? > Otherwise, if you absolutely have to

How to schedule FTP with quartz?

2013-03-01 Thread Chris Wolf
I have a requirement to download files via FTP during a certain time window and according to a schedule. e.g. Only on trading days between 6:30AM and 7:00AM. The FTP component, alone, seems to just do indefinite polling according to delay/initialDelay. >From the "Camel In Action" book, chapter 7,

RE: example using HazelcastIdempotentRepository in Spring DSL

2013-03-01 Thread davebarker
Thanks Claus. After looking through some of the unit tests using HazelcastIdempotentRepository with Java DSL, I was able to figure out how to get an instance of HazelcastIdempotentRepository created in Spring: Now I just need to explo

Re: How to schedule FTP with quartz?

2013-03-01 Thread Claus Ibsen
Hi See about route policy http://camel.apache.org/routepolicy And the scheduled route policy http://camel.apache.org/scheduledroutepolicy.html On Sat, Mar 2, 2013 at 12:15 AM, Chris Wolf wrote: > I have a requirement to download files via FTP during a certain time > window and according to a sc