
Originally Posted by
jim
Do you perhaps have a reference to an example/description of how to load the applicationContext.xml?
There is an example in the reference manual.
In your deplyoment-descriptor you will need an environment entry declaring your context file(s):
Code:
<env-entry>
<env-entry-name>ejb/BeanFactoryPath</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>applicationContext.xml</env-entry-value>
</env-entry>

Originally Posted by
jim
In the web tier the life-cycle of the spring context depends on the servletContext. What determines the life cycle in the business tier?
The context is being loaded from within ejbCreate(). So you will have one context per EJB instance.
If you need to share common instances you should have a look at ContextSingletonBeanFactoryLocator.
Hope that helps,
Andreas