On 2/15/07, Juergen Mayrbaeurl <[EMAIL PROTECTED]> wrote:
Use the TestSupport class and run ServiceMix in embedded mode. You won't be able to install and deploy SAs, but it's quite easy to unit test your components. We're doing this for LW components.
Juergen is correct. There are many tests in the ServiceMix codebase that do exactly this. Poke around in the tests and you're sure to find examples of this. Another option is to configure ServiceMix using a Spring or XBean XML configuration file. Here's an example of this: https://svn.apache.org/repos/asf/incubator/servicemix/trunk/core/servicemix-core/src/test/java/org/apache/servicemix/client/ServiceMixClientTest.java Bruce -- perl -e 'print unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*" );' Apache Geronimo - http://geronimo.apache.org/ Apache ActiveMQ - http://activemq.org/ Apache ServiceMix - http://servicemix.org/ Castor - http://castor.org/
