Announcement Announcement Module
Collapse
No announcement yet.
ContextSingletonBeanFactoryLocator & destroy-method issu Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ContextSingletonBeanFactoryLocator & destroy-method issu

    I am loading the Spring context from my EJBs using a ContextSingletonBeanFactoryLocator:
    Code:
        public void setSessionContext(SessionContext sessionContext) {
            super.setSessionContext(sessionContext);
            setBeanFactoryLocator(ContextSingletonBeanFactoryLocator.getInstance());
            setBeanFactoryLocatorKey(EJB_CONTEXT_ID);
        }
    in the Spring XML file, I have something like that:
    Code:
        <bean id="serviceConfiguration" class="com.blahblah.ServiceConfiguration" init-method="init" destroy-method="destroy" >
            <property name="listener">
                <ref local="listenerImpl"/>
            </property>
        </bean>
    Everything works fine (the init method is called when the application is loaded), but the destroy method is never called by Spring.
    I checked that the onEjbRemove() method is called properly when the application is undeployed, but the framework do not call the destroy method.
    I am using Weblogic 8.1.3.

    Any idea or workaround?

    Thanks,

    Aymeric.
Working...
X