Re: camel elasticsearch component

2015-04-03 Thread Jakub Kotowski
Hi Akram, I've started to work with the Elasticsearch component recently so I had a look at it for you. It works correctly if you set the message headers. I've debugged it and there is a bug in the ElasticsearchProducer: https://github.com/apache/camel/blob/master/components/camel-elasticsearch/s

Re: Setting up CamelContext with Guice

2015-03-27 Thread Jakub Kotowski
are sure welcome to > > improve camel-guice in any way. Whether its code, docs, examples or > > whatnot. > > http://camel.apache.org/contributing.html > > > > On Fri, Mar 27, 2015 at 3:57 PM, Jakub Kotowski > wrote: > >> Thanks for the replies. > >

Re: Setting up CamelContext with Guice

2015-03-27 Thread Jakub Kotowski
Thanks for the replies. After studying the code, I solved it independently like Willem Jiang suggests: public class MyCamelContext extends GuiceCamelContext { @Inject public MyCamelContext(Injector injector) { super(injector); } @PostConstruct public void start() { setTracing(t

Setting up CamelContext with Guice

2015-03-24 Thread Jakub Kotowski
Hi, how do I setup CamelContext when I use Guice with the guiceyfruit JNDI provider? I followed this guide: http://blog.timmattison.com/archives/2014/10/27/building-apache-camel-applications-with-guice/ Doing for example this: InitialContext context = new InitialContext(); CamelContext camelCon