Re: JDBC Connection object in Camel Processor

2014-02-28 Thread Christian Posta
also consider using an osgi service for your pooling facotry and blueprint (or declarative services) to grab the connection/pool On Fri, Feb 28, 2014 at 2:18 PM, Christian Müller wrote: > This is an example how to configure a pooled data source which is injected > into a transaction manager. You

Re: JDBC Connection object in Camel Processor

2014-02-28 Thread Christian Müller
This is an example how to configure a pooled data source which is injected into a transaction manager. You have to inject it into a processor instead. [1] https://github.com/muellerc/camel-in-transaction/blob/master/src/test/resources/META-INF/spring/JdbcTransactionSampleTest-context.xml Best, C

Re: JDBC Connection object in Camel Processor

2014-02-26 Thread contactreji
Hi Christian Can you give me the link of an example which illustrated injection of the connection pool? It will be helpful for me to understand in a better way. Regards Reji Mathews -- View this message in context: http://camel.465427.n5.nabble.com/JDBC-Connection-object-in-Camel-Processor-t

Re: JDBC Connection object in Camel Processor

2014-02-26 Thread contactreji
Hi Claus I have installed the driver from the link http://dev.mysql.com/downloads/connector/j/5.1.html I am using windows platform. hence I used the driver available at the above link. I am still getting the same error. The driver doesn't seem to load. Do we have anything else to check in the c

Re: JDBC Connection object in Camel Processor

2014-02-26 Thread Claus Ibsen
You need to install the JDBC driver first. Then afterwards your own application. On Wed, Feb 26, 2014 at 9:49 AM, contactreji wrote: > Hi Claus > > I have modified my POM to look like > > > org.apache.felix > maven-bundle-p

Re: JDBC Connection object in Camel Processor

2014-02-26 Thread contactreji
Hi Claus I have modified my POM to look like org.apache.felix maven-bundle-plugin 2.3.4 true

Re: JDBC Connection object in Camel Processor

2014-02-25 Thread Claus Ibsen
Hi Try with * On Wed, Feb 26, 2014 at 7:26 AM, contactreji wrote: > Hi Clause > > Thanks for your prompt help! :-) > > I followed your advice and did following changes in the POM file. > > * > org.apache.felix > maven-bundle

Re: JDBC Connection object in Camel Processor

2014-02-25 Thread contactreji
Hi Clause Thanks for your prompt help! :-) I followed your advice and did following changes in the POM file. * org.apache.felix maven-bundle-plugin 2.3.4 true

Re: JDBC Connection object in Camel Processor

2014-02-25 Thread Christian Müller
Create/Configure a connection pool in Spring and inject this into your Processor, which you should also create/configure in Spring. Best, Christian Am 25.02.2014 07:48 schrieb "contactreji" : > Hi > > I am trying to do a database operation inside a Processor class. > > I have a code > > *private

Re: JDBC Connection object in Camel Processor

2014-02-24 Thread Claus Ibsen
Hi You can lookup a bean in the registry from exchange Object myBean = exchange.getContext().getRegistry().lookup("someName"); When you use Class.forName("com.mysql.jdbc.Driver"); in OSGi then you need to have com.mysql.jdbc in your import package in the MANIFEST.MF file, for it to work in OS