Hi,

I'm using Spring to initialize an EJB. I have the following configuration setup

beanRefContext.xml - references additional spring configuration as follows


Code:
<bean id="earContextId" class="org.springframework.context.support.ClassPathXmlApplicationContext">
        <constructor-arg>
            <list>
                <value>classpath:serviceContext.xml</value>
            </list>
        </constructor-arg>
</bean>
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