Re: IllegalStateException: Current exchange has not been set for ExpressionMapper while converting a CXF object

2016-11-07 Thread Tomohisa Igarashi
Hi, There're some testcases demonstrating expression mapping like this: https://github.com/apache/camel/blob/master/components/camel-dozer/src/test/resources/org/apache/camel/component/dozer/ExpressionMappingTest-context.xml

Camel-Maven-Plugin, Felix.Connect, and configAdminFileName

2016-11-07 Thread Ryan Colwell
I've written a few Camel routes in 2.15.2 using blueprint and property placeholders for configuration values. I'm targeting Karaf as my production environment and using the Camel-Maven-Plugin for running locally. For my example I'm using the route generated by (camel-archetype-blueprint) that logs

Re: netty4(-http) producer workerGroup and producerPool

2016-11-07 Thread Avnish Pundir
Found it from source code, the example for netty4 should be following: class="org.apache.camel.component.netty4.NettyWorkerPoolBuilder"> factory-bean="poolBuilder" factory-method="build" destroy-method="destroy"> Then in the Camel routes we can refer to this worker pools by

Re: Cache api call result

2016-11-07 Thread lsantos
Thanks, will try that. On 07/11/2016 12:25, taariq [via Camel] wrote: > Hi, > You can use camel-ehcache, something like this example from the old > camel-cache; > > from("direct:start") > // Prepare headers > .setHeader(CacheConstants.CACHE_OPERATION, >

Re: How to change came throttler constant value in MBean

2016-11-07 Thread ramchris
Any replies on this will be greatly appreciated... -- View this message in context: http://camel.465427.n5.nabble.com/How-to-change-came-throttler-constant-value-in-MBean-tp5789670p5789865.html Sent from the Camel - Users mailing list archive at Nabble.com.

IllegalStateException: Current exchange has not been set for ExpressionMapper while converting a CXF object

2016-11-07 Thread adie
Hi! I was trying to use camel-dozer component to translate a POJO generated by CXF. 1. First I started with simple mapping of two fields 1:1 and URI with targetModel and mappingFile. Which actually failed, because POJO was wrapped in some object. 2. Then I've added sourceModel and it worked

Re: Cache api call result

2016-11-07 Thread Taariq Levack
Hi, You can use camel-ehcache, something like this example from the old camel-cache; from("direct:start") // Prepare headers .setHeader(CacheConstants.CACHE_OPERATION, constant(CacheConstants.CACHE_OPERATION_GET)) .setHeader(CacheConstants.CACHE_KEY, constant("Ralph_Waldo_Emerson")).

camel-shiro and caching

2016-11-07 Thread AOladipupo
Hi Team, I use camel on jBoss Fuse ESB for integration/middleware projects. In addition to other security implementations on the esb, i have set up route security using camel-shiro and its iniRealm. However, due to the static nature of the iniRealm (bundle restart is needed for changes to

Re: camel-quartz failed camel route creation when database is unreachable

2016-11-07 Thread Rachid KRAIEM
Thanks Claus, Can you raise a JIRA that contain this solution ? -- View this message in context: http://camel.465427.n5.nabble.com/camel-quartz-failed-camel-route-creation-when-database-is-unreachable-tp5789552p5789852.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel - Hystrix

2016-11-07 Thread r_karthik1
Thanks...Sure will try it out. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Hystrix-tp5789751p5789848.html Sent from the Camel - Users mailing list archive at Nabble.com.

Cache api call result

2016-11-07 Thread lsantos
Hi there, I am working on a command-line camel application that polls a directory for a file, reads it, process each line, modifies a piece of information on the line and rewrites it in new file. I have to make 2 http calls as part of the msg enrichment process, the first call is as

Re: Large message handling

2016-11-07 Thread James Green
That's pretty much what we were describing. I see there is no DSL for this so beyond it being a known algorithm it remains a "write-your-own-implementation". I guess therefore it's a relatively narrow use-case... On 4 November 2016 at 16:50, Quinn Stevenson wrote:

Re: Aggregator + (LevelDB or HawtDB for persistency) incorrect behavior

2016-11-07 Thread onders
btw, i tried both leveldb and hawtdb as aggregationrepository. or -- View this message in context:

Re: Incorrect context path in camel-swagger-java swagger servlet?

2016-11-07 Thread Jonas Koperdraat
Hi Claus, Because of the environment our application is deployed to, we are stuck at JDK 7, and therefore at camel 2.17.x. I will test locally if this problem still exists in camel 2.18.0, though, and will let you know the result. Kind regards, Joans Op ma 7 nov. 2016 om 12:31 schreef Claus

Re: camel-quartz failed camel route creation when database is unreachable

2016-11-07 Thread Claus Ibsen
Yes there is no re-connection or the likes when starting a quartz route. You can do as you did with your own custom component. Its a bit tricky to do re-connection as it would entail a background thread keep running and trying to startup the route until its succesful, and then you need ways to

Re: Incorrect context path in camel-swagger-java swagger servlet?

2016-11-07 Thread Claus Ibsen
Hi Can you try with Camel 2.18.0 release. On Wed, Nov 2, 2016 at 1:37 PM, Jonas Koperdraat wrote: > Hi, > > I have an application deployed at > "http://server:port/some/context/path;, with a REST api at > "http://server:port/some/context/path/rest;. > > According to

Re: Camel archetype 2.17.0 onwards

2016-11-07 Thread Claus Ibsen
The logging should be on test scope if anything as running on karaf has its own osgi logging ,and you should not have those at compile scope. I guess its because you may run it outside osgi from a camel main or something. Then you need to change the scopes if you want to see logging there. On

Re: camel-quartz failed camel route creation when database is unreachable

2016-11-07 Thread souciance
I cannot comment on the code for starting the route when the database is unavailable but why not add some default properties to use when the database is not available. Then you catch the exception and use those properties instead. -- View this message in context:

Re: camel-quartz failed camel route creation when database is unreachable

2016-11-07 Thread Rachid KRAIEM
Hi Everyone, Can you validate this proposal -- View this message in context: http://camel.465427.n5.nabble.com/camel-quartz-failed-camel-route-creation-when-database-is-unreachable-tp5789552p5789822.html Sent from the Camel - Users mailing list archive at Nabble.com.

Camel archetype 2.17.0 onwards

2016-11-07 Thread souciance
Hello, I did not have this issue with Camel blueprint archetype 2.15.0 but in 2.17.0 it has appeared. I simply create a new project in intellij based on camel-blueprint archetype for version 2.17.0. Everything is created but when running the project it gives me the error: [INFO] ---

Re: netty4(-http) producer workerGroup and producerPool

2016-11-07 Thread Avnish Pundir
Hi Willem, I just tried sharing the workerpool as per docs of netty4 (http://camel.apache.org/netty4.html) however the class mentioned in example (org.jboss.netty.channel.socket.nio.WorkerPool) for sharing of worker pools doesn't exist in netty4. I have camel-netty4 as a dependency in maven

Re: Aggregator + (LevelDB or HawtDB for persistency) incorrect behavior

2016-11-07 Thread onders
Hi, I am usign all camel core and components as of 2.17.3. This issue seems to be still up. Under examples/camel-example-aggregator i can test it is working. as of route below; aggregation is not completed and not output file is getting generated. (btw, if i do aggregate without persistence, it