This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem when Exception is thrown during EJB initialization

Pat Short
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic