Re: Setting up CamelContext with Guice

2015-03-27 Thread Jakub Kotowski
re() { > >> } > >> > >> @Provides > >> public MainArgs createMainArgs() { > >> return MainFlowGuice.mainArgs; > >> } > >> } > >> > >> jndi.properties: > >> > >> java.naming.factory.initial = > >&

Re: Setting up CamelContext with Guice

2015-03-27 Thread Claus Ibsen
;> >> >> I guess that really not many people use Guice with Camel when there are >> such basic issues using it? I am wondering how much more friction there >> will be and whether it wouldn't make more sense to simply use Spring as >> most do (even though Sp

Re: Setting up CamelContext with Guice

2015-03-27 Thread Claus Ibsen
sues using it? I am wondering how much more friction there > will be and whether it wouldn't make more sense to simply use Spring as > most do (even though Spring is not my first choice otherwise). > > Later I could of course write my own Main for Guice, etc. but I was >

Re: Setting up CamelContext with Guice

2015-03-27 Thread Jakub Kotowski
for Guice, etc. but I was hoping to get started rather quickly. Jakub On Thu, Mar 26, 2015 at 9:54 AM, dermoritz wrote: > i just created an ticket with a suggestion: > https://issues.apache.org/jira/browse/CAMEL-8555 > > > > -- > View this message in context: > http://

Re: Setting up CamelContext with Guice

2015-03-26 Thread dermoritz
i just created an ticket with a suggestion: https://issues.apache.org/jira/browse/CAMEL-8555 -- View this message in context: http://camel.465427.n5.nabble.com/Setting-up-CamelContext-with-Guice-tp5764709p5764818.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Setting up CamelContext with Guice

2015-03-26 Thread dermoritz
(CamelContext.class).to(DefaultCamelContext.class).in(Singleton.class); and my jndi.properties contains the default value: java.naming.factory.initial = org.apache.camel.util.jndi.CamelInitialContextFactory -- View this message in context: http://camel.465427.n5.nabble.com/Setting-up-CamelContext

Re: Setting up CamelContext with Guice

2015-03-26 Thread Willem Jiang
When you call the new InitialContext(); the camel context is started and it already loads the camel route, so it’s useless when setup the camel context after the camel context is started. You can extend the GuiceCamelContext to apply some setting on the CamelContext inside the start method. --

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