GeeCON Prague 2014*
The moose likes Other Application Frameworks and the fly likes Problem when Exception is thrown during EJB initialization Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Problem when Exception is thrown during EJB initialization" Watch "Problem when Exception is thrown during EJB initialization" New topic
Author

Problem when Exception is thrown during EJB initialization

Pat Short
Greenhorn

Joined: Mar 21, 2008
Posts: 22
I'm using Spring to initialize an MBD. I have the following configuration setup

beanRefContext.xml - references additional spring configuration as follows





The serviceContext.xml file then creates a simple bean which implements the InitializingBean interface. When the afterPropertiesSet() method throws an exception, Spring keeps trying to re-initialize in an never ending loop.

Can I set some property that tells Spring not retry initialization if an exception occurs? Or is there some property on the EJB that manages this?

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem when Exception is thrown during EJB initialization