infinispan/infinispan — pull request #939 by danberindei (2012-02-09 11:42:03+00:00)
Title: ISPN-1852 - If a global component fails to start during cache startup, f...

...uture getCache calls for that cache will never return
https://issues.jboss.org/browse/ISPN-1852

Also t_1852_51 for the 5.1.x branch.

Start the global components registry before wiring the cache.
If the cache needs extra global components, they will start when they are registered in the global registry.

If one of the startup methods fails, don't register the component (don't call the stop methods either).