Re: where to put java classes/jars for bean invocation via camel?

2010-10-05 Thread Illtud Daniel
Illtud Daniel wrote: $ cd /usr/local/activemq/lib $ mkdir -p uk/org/llgc/testing $ cp /tmp/HelloWorld.class uk/org/llgc/testing OK, my friendly java programmer tells me you can't put class files in lib directories, you have to package them as jars, and that does indeed appear to work. -- Illt

Re: where to put java classes/jars for bean invocation via camel?

2010-10-04 Thread Illtud Daniel
Hi Timothy, try it this way: Makes sense to me! However: 2010-10-04 21:46:36,751 | WARN | Nested in org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [uk.org.llgc.testing.HelloWorld] for bean with name 'hello' defined in URL [file:/usr/local/activemq/

Re: where to put java classes/jars for bean invocation via camel?

2010-10-04 Thread Timothy Bish
On Mon, 2010-10-04 at 21:20 +0100, Illtud Daniel wrote: > Stan, thank you very much for the prompt reply > > On 04/10/10 20:38, Stan Lewis wrote: > > activemq's lib directory is the right place for it, make sure you > > either put the class in a directory hierarchy that matches the class's > > pac

Re: where to put java classes/jars for bean invocation via camel?

2010-10-04 Thread Illtud Daniel
Stan, thank you very much for the prompt reply On 04/10/10 20:38, Stan Lewis wrote: activemq's lib directory is the right place for it, make sure you either put the class in a directory hierarchy that matches the class's package name or build it into a Jar file. Ah, see, now you have already f

Re: where to put java classes/jars for bean invocation via camel?

2010-10-04 Thread Stan Lewis
activemq's lib directory is the right place for it, make sure you either put the class in a directory hierarchy that matches the class's package name or build it into a Jar file. On Mon, Oct 4, 2010 at 3:32 PM, Illtud Daniel wrote: > I hope you don't mind me posting this to the activemq, rather t

where to put java classes/jars for bean invocation via camel?

2010-10-04 Thread Illtud Daniel
I hope you don't mind me posting this to the activemq, rather than camel, but I'm using the camel that comes with activemq, so the answer I'm looking for is activemq-specific. Where should I be putting my (eg) HelloWorld.class so that I can invoke the code via a bean, declared in camel.xml: