Hi You need to have the example compiled into .class files and have those packaged in a .jar. Then that .jar is to be deployed in AMQ so Spring/Camel can find that class at runtime.
On Mon, Jun 14, 2010 at 7:53 PM, fabian.alvarez <[email protected]> wrote: > > includes in the following routing applicationContext.xml: > <camelcontext id="camel" > xmlns="http://camel.apache.org/schema/spring"><route><from > uri="activemq:MQ_A_ACTIVEMQ"> > <bean ref="pruebaFabian"> > </bean> > </from> > </route> > > </camelcontext> > > the Bean definition is the following (inside the same xml): > <bean id="pruebaFabian" class="example.jmstofile.JmsToFileRoute"/> > and gives an error cannot find the class and not is where copy the class in > question which is: C:\activemq\example\jmstofile\JmsToFileRoute.java > > "ERROR | Context initialization failed" > "org.springframework.beans.factory.BeanCreationException: error creating > bean with name 'camel': Invocation of init method failed; nested exception > is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot > find class [example.jmstofile.JmsToFileRoute] for bean with name > 'pruebaFabian' defined in ServletContext [/WEB-INF/applicationContext.xml]; > nested exception is java.lang.ClassNotFoundException resource: > example.jmstofile.JmsToFileRoute" > > > > > fabian.alvarez wrote: >> >> OK! >> >> >> janstey wrote: >>> >>> Yeah, you need to use Java to program in Camel. No idea if anyone has >>> taken >>> on the grueling task of porting Camel to C# out there :) >>> >>> On Thu, Jun 3, 2010 at 3:25 PM, fabian.alvarez >>> <[email protected]>wrote: >>> >>>> >>>> Claus, >>>> >>>> so thank you very much by the quick response. >>>> >>>> I think it's just what I need. I'll try. >>>> I only one question remains: Just work with Java language? or I can >>>> program >>>> in c #? >>>> >>>> Thank you very much again for the answer >>>> >>>> regards >>>> >>>> Fabian >>>> >>>> >>>> Claus Ibsen-2 wrote: >>>> > >>>> > Hi >>>> > >>>> > The getting started example >>>> > http://camel.apache.org/walk-through-an-example.html >>>> > >>>> > May inspire you a bit. All you essentially need is a route >>>> > >>>> > from(jms).to(myBeanWhichProcessTheData); >>>> > >>>> > >>>> > >>>> > On Thu, Jun 3, 2010 at 5:20 PM, fabian.alvarez <[email protected]> >>>> > wrote: >>>> >> >>>> >> Hello! >>>> >> I'm working on a project in which we are using as a queue of >>>> messages: >>>> >> ActiveMQ. >>>> >> We need to do the following: the arrival of a message to the queue, >>>> at >>>> >> the >>>> >> endpoint, a service is triggered automatically >>>> >> that consumes the message and process the data. >>>> >> According to what I was investigating the EIP that we implement is >>>> the >>>> >> Message Endpoint, but we have no tutorial >>>> >> guide in the implementation. >>>> >> I appreciate if someone can guide me in this implementation. >>>> >> Fabian >>>> >> -- >>>> >> View this message in context: >>>> >> >>>> http://old.nabble.com/ActiveMQ-.-Message-Endpoint-tp28768956p28768956.html >>>> >> Sent from the Camel Development mailing list archive at Nabble.com. >>>> >> >>>> >> >>>> > >>>> > >>>> > >>>> > -- >>>> > Claus Ibsen >>>> > Apache Camel Committer >>>> > >>>> > Author of Camel in Action: http://www.manning.com/ibsen/ >>>> > Open Source Integration: http://fusesource.com >>>> > Blog: http://davsclaus.blogspot.com/ >>>> > Twitter: http://twitter.com/davsclaus >>>> > >>>> > >>>> >>>> -- >>>> View this message in context: >>>> http://old.nabble.com/ActiveMQ-.-Message-Endpoint-tp28768956p28770926.html >>>> Sent from the Camel Development mailing list archive at Nabble.com. >>>> >>>> >>> >>> >>> -- >>> Cheers, >>> Jon >>> >>> Camel in Action: http://manning.com/ibsen >>> Blog: http://janstey.blogspot.com >>> >>> >> >> > > -- > View this message in context: > http://old.nabble.com/ActiveMQ-.-Message-Endpoint-tp28768956p28882665.html > Sent from the Camel Development mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
