How to call a method after bean initialization is complete?

I have a use case where I need to call a (non-static) method in the bean only-once at the ApplicationContext load up. Is it ok, if I use MethodInvokingFactoryBean for this? Or we have a some better solution? As a side note, I use ConfigContextLoaderListener to load the Application Context in web application. And want, … Read more

Cannot run Eclipse; JVM terminated. Exit code=13

I just append -vm C:\Program Files\Java\jre6\bin\javaw.exe in eclipse.ini then I try to start eclipse again and got this error. Give me how to solve or link that actually solve it. this is my eclipse.ini -startup plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar –launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810 -showsplash org.eclipse.platform –launcher.XXMaxPermSize 256m –launcher.defaultAction openFile -vm C:\Program Files\Java\jre6\bin\javaw.exe -vmargs -Xms40m -Xmx384m Thank you 34 Answers 34 … Read more