Hi,

You can add a registry in the following way.

In the link below the CamelContextSupport class creates a
DefaultCamelContext using a registry. You can do the same. 
https://svn.apache.org/viewvc/camel/trunk/components/camel-test/src/main/java/org/apache/camel/test/CamelTestSupport.java?view=markup
https://svn.apache.org/viewvc/camel/trunk/components/camel-test/src/main/java/org/apache/camel/test/CamelTestSupport.java?view=markup
 

In order to add entries into the Registry, please check out the link below
oh how SSL details added to the registry by the NettySSLTest...

https://svn.apache.org/viewvc/camel/trunk/components/camel-netty/src/test/java/org/apache/camel/component/netty/NettySSLTest.java?view=markup
https://svn.apache.org/viewvc/camel/trunk/components/camel-netty/src/test/java/org/apache/camel/component/netty/NettySSLTest.java?view=markup
 

Hope this helps.

Cheers,

Ashwin...


-----
---------------------------------------------------------
Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary)
http://fusesource.com http://fusesource.com 

Blog: http://opensourceknowledge.blogspot.com
http://opensourceknowledge.blogspot.com 
---------------------------------------------------------
-- 
View this message in context: 
http://camel.465427.n5.nabble.com/Adding-bean-to-registry-when-using-the-Camel-test-framework-tp3208114p3208259.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to