You should not use the spring context directly. Instead use the spring features to inject the beans you need.
- Define the routebuilder as a bean in the spring context and use a setter and to inject myBean.
- Keep the auto discovery and use annotations like @Autowired in the routebuilder to inject mybean.
A third option is to use getContext().getRegistry(). The registry allows to access all beans of the spring context by name or by type.
It would not be camel if we are already out of options :-)
So another options is to use the bean component of camel to access beans from the spring context: http://camel.apache.org/bean.html