Re: Re: Follow on to configuring persistence with java not spring xml

2012-11-20 Thread Jay Walters
I'd like to have a java example > without spring if I can get such a thing working. > > Thanks > Jay -- View this message in context: http://camel.465427.n5.nabble.com/Follow-on-to-configuring-persistence-with-java-not-spring-xml-tp5722984p5723026.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Follow on to configuring persistence with java not spring xml

2012-11-20 Thread James Carman
atic for the application, and then define >> the routes dynamically with java DSL, but I'd like to have a java example >> without spring if I can get such a thing working. >> >> Thanks >> Jay > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Follow-on-to-configuring-persistence-with-java-not-spring-xml-tp5722984p5723026.html > Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Follow on to configuring persistence with java not spring xml

2012-11-20 Thread James Carman
On Tue, Nov 20, 2012 at 12:19 PM, Claus Ibsen wrote: > > I think LocalContainerEntityManagerFactoryBean is meant for people > using Spring XML style. > At least Spring has this concept for xxxFactoryBean to turn XML into a bean. > It is designed for that, but I've successfully used it in non-spri

Re: Follow on to configuring persistence with java not spring xml

2012-11-20 Thread Claus Ibsen
On Tue, Nov 20, 2012 at 4:27 AM, Jay Walters wrote: > My reading of the spring xml makes me think java such as shown below will > configure the EntityManagerFactory > > JpaVendorAdapter jpaAdapter = new HibernateJpaVendorAdapter(); > BasicDataSource dataSource = new BasicDataSource();