Announcement Announcement Module
Collapse
No announcement yet.
ContextSingletonBeanFactoryLocator does not conform with EJB spec? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ContextSingletonBeanFactoryLocator does not conform with EJB spec?

    Hi,

    The use of ContextSingletonBeanFactoryLocator does not seem conforming with the EJB specification in the following area:
    1. Static is not allowed in EJB, hence is Singleton.
    2. Synchronized is not allowed in EJB (Spring framework must have used mutex lock when initializing app context to avoid duplication when multiple EJB instances are created).

    The only logical use of IoC from EJB is using the default context locator, namely ContextJndiBeanFactoryLocator. However, this would create 1 app context per 1 EJB instance created, and it has its own issue particularly when dealing with initialization of complex beans and those having large memory footprints.

    Any comment on this?

    rgds,

    Alex

  • #2
    Comment anyone?

    Comment

    Working...
    X