THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Wiki Markup |
---|
{snippet:id=example|lang=java|url=activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/TransformTest.java} |
Or you could use a named bean from your Registry such as your Spring XML configuration file as follows
Code Block |
---|
from("activemq:SomeQueue").
beanRef("myTransformerBean").
to("mqseries:AnotherQueue");
|
Where the "myTransformerBean" would be defined in a Spring XML file or defined in JNDI etc.
For further examples of this pattern in use you could look at one of the JUnit tests
...