Hi, is there some complete example? because my *producer *variable null (I reproduced exactly what You wrote here, with camelContext defined in beans.xml Thanks, Zsolt
On Tue, Jul 5, 2011 at 12:15 PM, Charles Moulliard <[email protected]>wrote: > Hi, > > It depends if you camel Spring DSL or Java DSL > > With Spring DSL you can use the following syntax : > > <camelContext xmlns="http://camel.apache.org/schema/spring"> > <!-- define a producer template --> > <template id="producer"/> > > and @Autowired in your PoJo > > @Autowired > private ProducerTemplate producer; > > Regards, > > Charles Moulliard > > Apache Committer > > Blog : http://cmoulliard.blogspot.com > Twitter : http://twitter.com/cmoulliard > Linkedin : http://www.linkedin.com/in/charlesmoulliard > Skype: cmoulliard > > > > On Tue, Jul 5, 2011 at 12:05 PM, Kovacs Zsolt <[email protected]> > wrote: > > Hi, > > I tried to send some message to Camel endpoint from a bundle containing > > only a POJO as described in > > http://camel.apache.org/pojo-producing.html but the producer template > is > > null, how I can initialize? > > Regards, > > Zsolt > > >
