StandaloneBootstrap iocHook = new StandaloneBootstrap(ar); iocHook.main(ar); //icoHook.run(); Kernel kernel = iocHook.getKernel(); System.out.println("Kernel is "+kernel);
Well I got this working; I need to make the following call
iocHook.bootstrap(); rathar than the iocHook.main(ar);
I think I need to go through the code details to understand why this is happening....
Why I was making the main() call was because it was documented
Vicky