camel for "short" programs

2013-12-14 Thread Romain Manni-Bucau
surely not the best way to do. Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau

Re: camel for "short" programs

2013-12-14 Thread Romain Manni-Bucau
> <http://www.linkedin.com/pub/robert-simmons/40/852/a39>* > > > On Sat, Dec 14, 2013 at 9:09 AM, John D. Ament >wrote: > > > Why not use a polling consumer? > > > > On Sat, Dec 14, 2013 at 6:25 AM, Romain Manni-Bucau > > wrote: > > &g

Re: camel for "short" programs

2013-12-15 Thread Romain Manni-Bucau
s would set the same boolean on the consumers which would not wait to get data if nothing is available anymore and would stop the route. Once all routes are stopped the context would be stopped too. This way it would be easy to write cron-ned mains with camel without app hacks. Romain Mann

Re: camel for "short" programs

2013-12-15 Thread Romain Manni-Bucau
Not really true since it prevents from using camel consumers which doesn't support it so it makes camel not as useful as it could. Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmanni

Re: camel for "short" programs

2013-12-16 Thread Romain Manni-Bucau
ratix.net> wrote: > > > Why not keep the context+routes running? > > If nothing´s there nothing gets processed. > > We transfer a gazillion files and poll like crazy (5 sec) even when > > nothing is expected. Who cares on a corporate network? > > > > Am

Re: camel for "short" programs

2013-12-16 Thread Romain Manni-Bucau
ent job it will even not be studied cause of it. Compare to spring integration (which you woudn't use if you used camel) it seems a missing "feature". It is ok to close this thread is camel doesn't aim to solve it. Thks btw Romain Manni-Bucau Twitter: @rmannibucau Blog: ht

Re: camel for "short" programs

2013-12-16 Thread Romain Manni-Bucau
ning ;) or to reuse a camel component in a batch to avoid to reinvent the wheel (useful in some cases). Hope it is clearer Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau

Re: Stack trace after upgrading to Camel 3.0

2020-01-10 Thread Romain Manni-Bucau
Hi Did you check you classpath for an older camel dependency somewhere? Le ven. 10 janv. 2020 à 15:01, Tom Coudyzer a écrit : > Hi, > > Thanks for the reply. Switched to Java 11 (and as told earlier) checked the > migration guide, but still not working... > > Any other ideas? > > Thanks a lot!!

Re: Stack trace after upgrading to Camel 3.0

2020-01-10 Thread Romain Manni-Bucau
Maybe override setUp method with System.out.println("java.class.path"); super.setUp(); To ensure you run what you think and that eclipse uses an up to date dependencies model. Le ven. 10 janv. 2020 à 17:31, Francois Papon a écrit : > Any chances to share your project? > > I can try to reprodu

Re: Stack trace after upgrading to Camel 3.0

2020-01-10 Thread Romain Manni-Bucau
a-validator\0.1.1\json-schema-validator-0.1.1.jar > > C:\Users\johndoe\.m2\repository\org\slf4j\slf4j-ext\1.7.21\slf4j-ext-1.7.21.jar > > C:\Users\johndoe\.m2\repository\ch\qos\cal10n\cal10n-api\0.8.1\cal10n-api-0.8.1.jar > > C:\Users\johndoe\.m2\repository\com\jayway\jsonpath\json-path\

Re: Stack trace after upgrading to Camel 3.0

2020-01-10 Thread Romain Manni-Bucau
ontext.java:560) > > ... 56 more > > Caused by: java.lang.reflect.InvocationTargetException > > at > > > java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native > > Method) > > at > > > java.base/jdk.internal.reflect.NativeConstr

Re: Disable karaf remote repositories for Karaf as Camel runtime

2020-02-02 Thread Romain Manni-Bucau
Hi Gerald, Did you setup pax url to be offline (worse case through a settings.xml or *etc/org.ops4j.pax.url.mvn.cfg*)? Maybe also share your logs to ensure it comes from that. Le dim. 2 févr. 2020 à 14:03, Gerald Kallas a écrit : > Dear community, > > I did setup a docker container for Camel/

Re: CDI + SJMS + transacted

2020-09-02 Thread Romain Manni-Bucau
AFAIK the transaction manager jndi name is not standard (user transaction one is) and current one is not zven the "common" one which is in comp/ for webapps so IMHO: - camel-cdi must not have any ee feature (deployment should theorically fail if validated since injection must not work in standalon

Re: CDI + SJMS + transacted

2020-09-09 Thread Romain Manni-Bucau
a very old hibernate version (manager_lookup_class), then use org.apache.openejb.hibernate.TransactionManagerLookup) Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <

Re: CDI + SJMS + transacted

2020-09-09 Thread Romain Manni-Bucau
module cause cdi module seems inaccurate (in terms of dependencies and usage and it already created troubles by the past even if the openjpa code could mitigate it). Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Ol

Re: CDI + SJMS + transacted

2020-09-09 Thread Romain Manni-Bucau
Works too, i was thinking about something similar but programmatic but at the end it does the same (veto the default impl and replace it by a custom one which injects the txmgr), your solution is even less verbose ;). Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> |

Re: Stream Huge JSON File

2020-10-23 Thread Romain Manni-Bucau
the route could look like something like: from("jsonstreaming:/path/file.json?pointer=/items") .to("bean:processUser"); Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rman

Re: Stream Huge JSON File

2020-10-23 Thread Romain Manni-Bucau
Doing the same than sax/jaxb with jsonp sounds very feasible too - that's the impl i had in mind. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <http

Re: Introducing K-car: a microservice framework for Camel

2021-01-12 Thread Romain Manni-Bucau
ng to native mode with graalvm). Any highlights on that? Is the value the python script to help to bootstrap? (if so it would be great to not require pythong for java dev but maybe java?). Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawe

Re: Are you using binary distribution?

2021-01-14 Thread Romain Manni-Bucau
level you just need to point to the src distro so while there is the required download link it is more than fine (and you can make the "m2 download" page looking better than the mirror download page to let users keep doing what they do for all java projects: not use mirror download ;)).

Re: Future of Camel

2021-01-19 Thread Romain Manni-Bucau
Isnt the future of servicemix karaf and karaf+camel project which is still maintained? It is the only viable option to keep smix dynamism IMHO. Le mar. 19 janv. 2021 à 05:42, Tadayoshi Sato a écrit : > On Sun, Jan 17, 2021 at 6:28 PM ski n wrote: > > > Hi all, > > > > In 2020 there was a clear

Re: Adding Global scoped exception handler in DefaultCamelContext

2021-03-01 Thread Romain Manni-Bucau
ch (final Exception e) { throw new IllegalStateException(e); } } Hope it helps. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |

Re: Use of lombok in camel codebase?

2021-11-02 Thread Romain Manni-Bucau
Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <htt

Re: Question about camel metrics IDs

2021-12-01 Thread Romain Manni-Bucau
all release so can need some tuning). The side note is that all the metrics are available elsewhere (generally from the management module or camel context) so it can be faster to just read them from where they are instead of using JMX as a bridge. Hope it helps. Romain Manni-Bucau @rmannibucau

Re: Camel runtime

2022-01-09 Thread Romain Manni-Bucau
t" answer ;) Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau>

Re: Web socket client

2022-03-30 Thread Romain Manni-Bucau
existing component or write your own right now. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.

Re: Integrating Apache Beam and Apache Camel

2022-11-16 Thread Romain Manni-Bucau
get the consumer instance and set a custom "beam processor" which just forwards the exchange in the PCollection (unbounded source or a plain DoFn works). Hope it helps. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net

Re: tag contains a version range in features.xml

2023-01-23 Thread Romain Manni-Bucau
particular when it becomes a compat matrix crossing some features ;). Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <

Re: Camel 4 and Weld CDI

2024-02-14 Thread Romain Manni-Bucau
programming model you want, you can use @Inject @Any Instance routes; and register them all on the context you created or just do it programmatically depending if you need a generic solution, injections etc... Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog

Re: Will camel-websocket work in producer mode from a web app?

2013-05-04 Thread Romain Manni-Bucau
Hi Would be great to use the new websocket jsr by default, no? Le 4 mai 2013 10:29, "Claus Ibsen" a écrit : > Hi > > No the current camel-websocket is Jetty based. > There is a ticket to create a new component using the Atmosphere > framework which is container agnostic. > > On Sat, May 4, 2013

Re: Will camel-websocket work in producer mode from a web app?

2013-05-05 Thread Romain Manni-Bucau
be nice. > > On Sat, May 4, 2013 at 10:34 AM, Romain Manni-Bucau > wrote: > > Hi > > > > Would be great to use the new websocket jsr by default, no? > > Le 4 mai 2013 10:29, "Claus Ibsen" a écrit : > > > >> Hi > >> > >

Re: camel-stax use a custom bean handler not a class

2013-05-13 Thread Romain Manni-Bucau
Hi created https://issues.apache.org/jira/browse/CAMEL-6356 *Romain Manni-Bucau* *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *G

Re: camel-cdi and non containers

2013-07-28 Thread Romain Manni-Bucau
Hi If it didnt change since i looked it relies on DS so you just need to ensure cdi impl bundle started before Le 28 juil. 2013 21:01, "John D. Ament" a écrit : > Hi all > > I'm interested in using camel-cdi support, but not within an EE container; > instead I want to run it with Karaf and Servi

Re: camel-cdi and non containers

2013-07-28 Thread Romain Manni-Bucau
hi i used it (before any release so it maybe changed) with owb in KarafEE so just pick the container you want ;) *Romain Manni-Bucau* *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/> *Link

Re: camel-cdi and non containers

2013-07-28 Thread Romain Manni-Bucau
I > have is servicemix as a container. So it's not clear where I would put the > bootstrap class since I don't instantiate the camel context (servicemix > does). > > > On Sun, Jul 28, 2013 at 3:38 PM, Romain Manni-Bucau > wrote: > > > hi > > > > i

Re: camel-cdi status?

2013-09-16 Thread Romain Manni-Bucau
Basically when i looked the only useful stuff was the registry to reuse cdi beans. Doing an @ExchangeScoped was not easy since threading is not well handled by camel. Finally using camel injections in cdi beans was interesting to trigger routes. Creating a route from annotations is not that effi

Re: camel-hazelcast & Transactions

2013-02-04 Thread Romain Manni-Bucau
Hazelcast has a jca adaptor so it can work too Le 5 févr. 2013 08:28, "Claus Ibsen" a écrit : > You can only use transactions with JMS and JDBC. (and possible a few > other technologies). > > > On Tue, Feb 5, 2013 at 8:16 AM, xanko wrote: > > Hi, > > > > I want use hazelcast component to share d

Re: Can (S)JMS be safely used on Java EE?

2013-02-08 Thread Romain Manni-Bucau
Hi, your statements are globally correct for spring that's different since you let spring manages it (with the same issues) *Romain Manni-Bucau* *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.c

Re: Can (S)JMS be safely used on Java EE?

2013-02-08 Thread Romain Manni-Bucau
as no real sense in such a thread) Note: deltaspike has a kind of cdicontroller to allow to get scoped cdi beans in batches, maybe something to have a look on *Romain Manni-Bucau* *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* *Blog: **http://rmannibucau.wordpress

Re: Can (S)JMS be safely used on Java EE?

2013-02-08 Thread Romain Manni-Bucau
Ok got your point byt not sure it matches completely the need Le 8 févr. 2013 18:04, "Claus Ibsen" a écrit : > On Fri, Feb 8, 2013 at 6:01 PM, Romain Manni-Bucau > wrote: > > jWorkManager or WorkManager? > > > > the last one is part of JavaEE but does not have

Re: Can (S)JMS be safely used on Java EE?

2013-02-08 Thread Romain Manni-Bucau
You can inject it through @Resource Le 8 févr. 2013 22:45, "Harald Wellmann" a écrit : > AFAIK, WorkManager is only meant to be used in resource adapter/JCA > connector implementations. It should not be used by application code as an > Executor substitute. > > the best is to get resources from w

camel and business flows

2011-04-17 Thread Romain Manni-Bucau
Hi all, what do you think about using camel for business flows? Is it a good idea or other open source framework will do better (faster?)? I ask it because technically i see how to do but i don't know if it is a good idea because it is not the first goal of camel. - Romain

Re: camel and business flows

2011-04-17 Thread Romain Manni-Bucau
> > business flows, I think that pure player in this domain is more flexible > and > > provide more tooling for business analyst. > > > > By pure players, I mean BP engines such as Activiti, jBPM, etc. > > > > Regards > > JB > > > > > > O

Re: Routing based on exchange IN message body clas

2011-04-19 Thread Romain Manni-Bucau
Hi, you can do something like from(...)..choice().when(simple("${body.class == 'org.apache.MyClass'}")).to...otherwise().to()... - Romain 2011/4/19 Gert Villemos > Is there a a way to route an exchange based on the class hold in the IN > message body? > > I have a 'splitter' bean that cr

Re: Routing based on exchange IN message body clas

2011-04-19 Thread Romain Manni-Bucau
same solution: http://camel.apache.org/content-based-router.html 2011/4/19 Gert Villemos > ... and if I'm using the Spring annotation, i.e. XML? > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Routing-based-on-exchange-IN-message-body-clas-tp4313282p4313325.html > Sent

Re: Routing based on exchange IN message body clas

2011-04-19 Thread Romain Manni-Bucau
using another language like groovy for example can do the trick. I dont know if we can say the type to simple language. 2011/4/19 Gert Villemos > Its because the getClass() method doesnt return a String but a Class > object, i.e. creating an inheritance hierarchy and using accessor methods > ret

Re: camel and business flows

2011-04-22 Thread Romain Manni-Bucau
e, > you can recover messages and restart your camel route from where it > fails during a crash. You can also combine Camel Routes with a BPMN > engine like Activiti (camel-activiti) to leverage on the best of Camel > and Business Process Engine. > > Just my 2cents > > Regards,

camel hump?

2011-05-04 Thread Romain Manni-Bucau
Hi, just a stupid question but why the camel used for the camel logo has only one hump? - Romain

Re: camel hump?

2011-05-04 Thread Romain Manni-Bucau
nt remark: There should be 2 humps as a Camel is not a Dromedary ;-) >>> >>> On Wed, May 4, 2011 at 5:38 PM, Romain Manni-Bucau >>> wrote: >>>> Hi, >>>> >>>> just a stupid question but why the camel used for the camel logo has >>>> only one hump? >>>> >>>> - Romain >>>> >>> >> >

camel gui

2011-05-04 Thread Romain Manni-Bucau
Hi all, do you have any informations about a gui for camel or a route diagram generator? I know fuse did some work around the eclipse framework but will it be integrated into the community version? - Romain

Re: camel gui

2011-05-05 Thread Romain Manni-Bucau
r part of their application > http://code.google.com/p/caerusone/ > > > > On Wed, May 4, 2011 at 10:39 PM, Romain Manni-Bucau > wrote: >> Hi all, >> >> do you have any informations about a gui for camel or a route diagram >> generator? I know

Re: camel gui

2011-05-05 Thread Romain Manni-Bucau
. It's an integrated platform powered by Eclipse. > > Regards > JB > > On 05/05/2011 09:01 AM, Romain Manni-Bucau wrote: >> >> thanks for these answers, it was what i've found. >> >> i don't really like the maven plugin because it relies on dot

Re: Intercept send to beanRef endpoint

2011-05-05 Thread Romain Manni-Bucau
Hi, i think it should stay like it (KISS), if you want to intercept you have to use an endpoints otherwise you are free to use endpoint, processors etc... another solution could be to add an interceptProcessor(). - Romain 2011/5/5 Claus Ibsen : > On Thu, May 5, 2011 at 9:19 AM, Jean-Pierre Berg

Re: Intercept send to beanRef endpoint

2011-05-05 Thread Romain Manni-Bucau
in one case you send your exchange to an endpoint which sends it to a processor. In the other case (beanRef) you send it directly to the processor. - Romain 2011/5/5 Jean-Pierre Bergamin : > Am 05.05.2011 09:34, schrieb Claus Ibsen: >> >> On Thu, May 5, 2011 at 9:19 AM, Jean-Pierre Bergamin >>  w

Re: Intercept send to beanRef endpoint

2011-05-05 Thread Romain Manni-Bucau
ce to such a construct. > > > Thanks, > James > > Am 05.05.2011 09:48, schrieb Romain Manni-Bucau: >> >> Hi, >> >> i think it should stay like it (KISS), if you want to intercept you >> have to use an endpoints otherwise you are free to use en

Re: camel gui

2011-05-05 Thread Romain Manni-Bucau
yes but only in XML format, no? - Romain 2011/5/5 James Strachan : > On 4 May 2011 21:39, Romain Manni-Bucau wrote: >> Hi all, >> >> do you have any informations about a gui for camel or a route diagram >> generator? I know fuse did some work around the eclipse

diagram generator

2011-05-06 Thread Romain Manni-Bucau
Hi, what do you think to support more than only dot to generate a diagram from a route? i did fastly a poc using jung2 to modelise/generate the graph: http://www.mediafire.com/?z4uejanhc7rcak8 any thoughts? - Romain

Re: diagram generator

2011-05-06 Thread Romain Manni-Bucau
Then come back and we can take a look. > > > On Fri, May 6, 2011 at 12:41 PM, Romain Manni-Bucau > wrote: >> Hi, >> >> what do you think to support more than only dot to generate a diagram >> from a route? >> >> i did fastly a poc using jung2 to mod

bean, ejb etc... how to set parameters

2011-05-06 Thread Romain Manni-Bucau
Hi, i would like to do a route with a bit more bean invocations than usually and i realise the use of array body to specify parameters is not very nice, i always have something like: from(...).to().to("bean:...").to() do you think it could be improved specifying in the bean component input/

Re: diagram generator

2011-05-06 Thread Romain Manni-Bucau
at your current google project. And > if it matures over time. > You can consider donating it to camel-extra > http://camel-extra.googlecode.com/ > > > On Fri, May 6, 2011 at 1:37 PM, Romain Manni-Bucau > wrote: >> sorry, it was easy for me, i didn't think of this

Re: bean, ejb etc... how to set parameters

2011-05-08 Thread Romain Manni-Bucau
file like: - Romain 2011/5/6 Romain Manni-Bucau : > Hi, > > i would like to do a route with a bit more bean invocations than > usually and i realise the use of array body to specify parameters is > n

Re: bean, ejb etc... how to set parameters

2011-05-08 Thread Romain Manni-Bucau
://code.google.com/p/rmannibucau/ ) - Romain 2011/5/8 Romain Manni-Bucau : > Hi, > > maybe another solution to this problem could be to add a kind of > descriptor file: > > in camel a bean can extract parameters from headers or something else > with annotations, if there is a fi

Re: Append endpoint to route at test-time.

2011-05-08 Thread Romain Manni-Bucau
+1 2011/5/9 Claus Ibsen > On Sun, May 8, 2011 at 1:44 PM, Tarjei Huse wrote: > > Hi, > > > > I got a route like this: > > from(bookKeeperQueue).routeId("BookKeeperRoute") > >.process(new BookKeeperProcessor(bookKeeper)); > > > > That I would like to test by appending a mock endpoint

Re: diagram generator

2011-05-09 Thread Romain Manni-Bucau
Hi all, i updated the diagram generator, i still have a simple main to test it but can someone have a look? - Romain 2011/5/6 Claus Ibsen > On Fri, May 6, 2011 at 5:43 PM, Romain Manni-Bucau > wrote: > > it uses the bsd licence, i though it was ok, no? > > > > Ah even

Re: diagram generator

2011-05-09 Thread Romain Manni-Bucau
I added an example to show how to use the plugin. I tried to add a kind of java support (starting a spring context, in this case your must specify the package as input instead of a folder). - Romain 2011/5/9 Romain Manni-Bucau > Hi all, > > i updated the diagram generator, i sti

Re: bean, ejb etc... how to set parameters

2011-05-10 Thread Romain Manni-Bucau
er word how can i get the "myMethod(${header.myHeader}, ${body}" string from BeanInfo? I think BeanInfo should have another cached (method, expressions) list to manage it. - Romain 2011/5/8 Romain Manni-Bucau > i did a poc, > > i need a modification in camel-core, here is the

Re: bean, ejb etc... how to set parameters

2011-05-11 Thread Romain Manni-Bucau
done here https://issues.apache.org/jira/browse/CAMEL-3961 - Romain 2011/5/11 Claus Ibsen > On Tue, May 10, 2011 at 3:38 PM, Romain Manni-Bucau > wrote: > > after having talked with Claus on IRC i tried to look how to implement > his > > idea: > > > > fr

a bit of stax

2011-05-12 Thread Romain Manni-Bucau
Hi all, i worked a bit around stax (thanks to claus for its advices). You can find what i've done here: http://code.google.com/p/rmannibucau/source/browse/camel/camel-stax/ The test show what can be done with it: http://code.google.com/p/rmannibucau/source/browse/camel/camel-stax/src/test/java/o

Re: a bit of stax

2011-05-12 Thread Romain Manni-Bucau
st replace it with > > org.apache.camel.spi.ClassResolver().resolveClass(). > > > > - Avoid catching the NullPointException in the > StAXJAXBIteratorExpression. > > > > - Do you plan to add a DSL method for the StAXJAXBIteratorExpression > > (requires patching ca

camel & groovy dsl?

2011-05-13 Thread Romain Manni-Bucau
Hi, is there any development around a dynamic groovy DSL? something which could detect automatically components in the route even if the existing DSL doesn't know it: from("whatever").myComponent(header("foo")).file("target/").cxf("...)... where i'm not sure it could be easy is for expression (

Re: XML Splitting with streaming (Was: a bit of stax)

2011-05-18 Thread Romain Manni-Bucau
ATOR)); > } else { > return pattern.equals(location); > } > } > } > -------- > > In the code, here is how he use it: > > public class MyRouteBuilder > extends RouteBuilder { > >@Override > public void configure() { >

expression and spring dsl

2011-05-19 Thread Romain Manni-Bucau
Hi all, is there any simple way to specify a custom expression in the spring dsl? i didn't find a simple way to do it. I did an iterator implementing expression and the iterator api is used in a split EIP but not the expression one. the expression api should be used to be fully working. here i

Re: expression and spring dsl

2011-05-21 Thread Romain Manni-Bucau
n Sat, May 21, 2011 at 1:56 PM, Claus Ibsen > wrote: > > Hi > > > > Can you create a JIRA ticket. Then we can look into it. I suspect > > there may be gap there in the XML DSL. > > > > On Thu, May 19, 2011 at 11:26 PM, Romain Manni-Bucau > > wrote: >

assert & hashes

2011-05-23 Thread Romain Manni-Bucau
Hi, i wrote 2 camel components, - the first one is very simple and could be a language: camel-assert ( http://code.google.com/p/rmannibucau/source/browse/camel/camel-assert/): it just allow to check values in a route, i know i could have used simple but i wanted something more close to junit Asse

Re: XML Splitting with streaming (Was: a bit of stax)

2011-05-23 Thread Romain Manni-Bucau
ng pattern) { > > String firstSegments = StringUtils.substringBefore(pattern, > > DOUBLE_NODE_SEPARATOR) + NODE_SEPARATOR; > > String lastSegments = NODE_SEPARATOR > > + StringUtils.substringAfter(pattern, DOUBLE_NODE_SEPARATOR); > > > > return location.contai

Re: assert & hashes

2011-05-23 Thread Romain Manni-Bucau
rce > Apache Committer > > Blog : http://cmoulliard.blogspot.com > Twitter : http://twitter.com/cmoulliard > Linkedin : http://www.linkedin.com/in/charlesmoulliard > Skype: cmoulliard > > > > On Mon, May 23, 2011 at 5:27 PM, Romain Manni-Bucau > wrote: >> Hi, >&

Re: EJB Component

2011-05-23 Thread Romain Manni-Bucau
Hi, This could be an enhancement using interceptors no? However IMHO ejb component is useless if you add your ejbs in your camel context or if you use your jee jndi context as camel context. - Romain Le 23 mai 2011 21:59, "Richard Kettelerij" a écrit : > No, the EJB component only allows you t

Re: EJB Component

2011-05-23 Thread Romain Manni-Bucau
t;, can you elaborate that a bit? The only function of the EJB > component is to call a EJB inside a route (e.g. to initiate some business > logic). > > Regards, > Richard > > On Mon, May 23, 2011 at 10:03 PM, Romain Manni-Bucau > wrote: > >> Hi, >> >> This

Re: EJB Component

2011-05-23 Thread Romain Manni-Bucau
I thought of something like: new DefaulyCamelContext(new JndiRegistry(new InitialContext(properties))); Le 23 mai 2011 22:55, "Richard Kettelerij" a écrit : > I'm of aware of the Spring way (using the 'jee' namespace), that works great > indeed. But I'm under the impression that arda7474 (topic s

Re: assert & hashes

2011-05-23 Thread Romain Manni-Bucau
nstead of > creating a new one ? > I just think about rationality to maintain so much expression > languages in camel and avoid having too much. By the way, this > question should also be raised for some existing and question too > their pertinence. > > Regards, > > Charl

Re: assert & hashes

2011-05-25 Thread Romain Manni-Bucau
you also put in the jira ticket the link to nabble web site > containing this discussion please ? > > On Tue, May 24, 2011 at 8:58 AM, Romain Manni-Bucau > wrote: > > Hi Chatres, > > > > i don't want to use simple because the cost (in time) of the evaluation >

setHeaders & processors

2011-05-25 Thread Romain Manni-Bucau
Hi, i have a route with a splitter with parallel processing + streaming. just after the split i run a processor in in-out mode setting some headers. Sometimes (i don't really know when) at the next step the headers i set in the processor are not in current exchange headers. If i replace my proc

Re: setHeaders & processors

2011-05-25 Thread Romain Manni-Bucau
oops, i posted too fast, i missed the splitter int he route: from("file:...).split(...)..streaming().parallelProcessing().inOut("bean:myProcessor").to("bean:checkHeaders").end().to("log:done"); - Romain 2011/5/25 Romain Manni-Bucau > Hi, > >

Re: setHeaders & processors

2011-05-25 Thread Romain Manni-Bucau
my mistake, i needed a thread local to store the exchange before using it in my singleton. sorry for the spam. - Romain 2011/5/25 Romain Manni-Bucau > oops, i posted too fast, > > i missed the splitter int he route: > > > from("file:...).split(...)..streaming().par

Re: Alan: batch database insert

2011-06-04 Thread Romain Manni-Bucau
Hi, i had something close to do and playing with an aggregator to do a kind of commit interval is possible but doesn't exist out of the box, it could be a good enhancement. - Romain 2011/6/4 Alan Camillo > I get hundreds of messages by a queue and I have to insert those messages > in > 2 datab

Re: Error with camel-ejb

2011-06-15 Thread Romain Manni-Bucau
Hi, creating a list with spring should work but i think the problem is the context creation here. personnaly i use the bean component and i ask to me (with java dsl) or spring to do the lookup to put it in the camel registry. - Romain 2011/6/15 Charles Moulliard > Hi, > > I try to use openejb

Re: Error with camel-ejb

2011-06-16 Thread Romain Manni-Bucau
;Processor processor = answer.getProcessor(); >setProperties(processor, parameters); >return answer; > } > > > On Wed, Jun 15, 2011 at 11:33 PM, Romain Manni-Bucau > wrote: > > Hi, > > > > creating a list with spring should work but i think the pr

Re: Error with camel-ejb

2011-06-16 Thread Romain Manni-Bucau
eployed using deploy dir of servicemix and > DynamicImport package is enable. I have also installed the openEJB > client jar and wrapped it. So everything is in place > > On Thu, Jun 16, 2011 at 4:50 PM, Romain Manni-Bucau > wrote: > > oh you are in an OSGi container? >

Re: Error with camel-ejb

2011-06-16 Thread Romain Manni-Bucau
text with the properties provided in my first email. So the > project + remote EJB is in order. This is the camel + jndi in OSGI > container where we have a problem. > > On Thu, Jun 16, 2011 at 8:18 PM, Romain Manni-Bucau > wrote: > > Charles, which part of code do you think i

Re: Error with camel-ejb

2011-06-16 Thread Romain Manni-Bucau
l-core:2.8.0.SNAPSHOT] >at > org.apache.camel.component.bean.MethodInfo$1.proceed(MethodInfo.java:230)[55:org.apache.camel.camel-core:2.8.0.SNAPSHOT] >at > org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:161)[55:org.apache.camel.camel-core:2.8.0.SNAPSHOT] > >

Re: Error with camel-ejb

2011-06-16 Thread Romain Manni-Bucau
cool :). - Romain 2011/6/16 Charles Moulliard > yep. That works now using camel-ejb component on osgi. > > > On Thu, Jun 16, 2011 at 10:12 PM, Romain Manni-Bucau > wrote: > > looks like what i've said ;) > > > > maybe try to specify manually imports. >

Re: How to get Exchange from a within a POJO without changing the interface?

2011-07-25 Thread Romain Manni-Bucau
I use the occasion to thank you Claus, this improvement is really useful :) it will save a lot of wrapper files. - Romain 2011/7/26 Claus Ibsen > On Tue, Jul 26, 2011 at 7:39 AM, Jim Talbut > wrote: > > Hi, > > > > I have a POJO that benefits from having a non-Camel interface (it means I > >

Re: variables

2011-09-09 Thread Romain Manni-Bucau
Hi, headers or properties are a good solutions. Just take care headers can be lost between 2 components. - Romain 2011/9/9 Sadanand Kusma > Hi, > > I am wondering if there is a way to declare/use request scoped variables in > camel 2.x which runs on jdk1.5. This is the case where we want to cr

Re: Monitoring Routes/Messages

2011-10-24 Thread Romain Manni-Bucau
Hi, maybe a little project i started few mounth ago could help you http://code.google.com/p/rmannibucau/wiki/CamelDiagramGenerator it still needs soem work to be fully functionnal but it is a starting point. Otherwise camel already provides a plugin to do it with graphviz - Romain 2011/10/24

Re: Persisting a variable over different exchanges

2011-10-28 Thread Romain Manni-Bucau
Hi, Try properties instead pf headers. It is the main diffrence between both. - Romain Le 28 oct. 2011 17:25, "ychawla" a écrit : > Hello All, > I frequently set headers on an exchange so I can access them at different > points on a route. Is there a way to persist a variable between differen

Re: CSV to database

2011-11-22 Thread Romain Manni-Bucau
Hi, Do you create an entitymanager factory for each message? - Romain Le 23 nov. 2011 00:40, "Idriss" a écrit : > Hi, > > I mean with long that is slow. > I'm using this : > > from("jpa://XXX") > .process(new MyProcess()) > > and in the class MyProcess I'm using EntityManagerFactory, EntityMa

Re: CSV to database

2011-11-23 Thread Romain Manni-Bucau
you should at least create the emf only once and put it in your context i think. - Romain 2011/11/23 Idriss > Hi Romain, > > Yes, in my processor I create EntityManagerFactory, EntityManager and > EntityTransaction for each message. > > > Idriss > > -- > View this message in context: > http://

Re: CSV to database

2011-11-23 Thread Romain Manni-Bucau
try to convert your body from org.apache.camel.example.etl.BOPDEV.PccCommoncard to org.apache.camel.example.etl.IWIBO.OcPccCommoncard before the jpa endpoint. - Romain 2011/11/23 Idriss > I tried with this : > to("jpa:org.apache.camel.example.etl.IWIBO.OcPccCommoncard") > > But I have the foll

Re: CSV to database

2011-11-23 Thread Romain Manni-Bucau
hmm, you can do it in you processor. The problem is the body the jpa endpoint retreives is not the class you specify in the endpoint itself. Either you mispelled it or you have to convert it. - Romain 2011/11/23 Idriss > I don't know how I will do that. > Can you explain that to me, please?

Re: CSV to database

2011-11-23 Thread Romain Manni-Bucau
can you provide the qualified name of classes please? (or a unit test to reproduce the error) - Romain 2011/11/23 Idriss > What I do in my processor is : > > I get the message using this: > Message message = exchange.getIn(); > PccCommoncard pcc = message.getBody(PccCommoncard.class)

  1   2   >