Hi All,

I need to put a list of object in memory when application start.
The object is quite simple so I generate the service by Generic
Manager and configured it in applicationContext.xml

<bean id="personManager"
class="org.appfuse.service.impl.GenericManagerImpl">
    <constructor-arg>
        <bean class="org.appfuse.dao.hibernate.GenericDaoHibernate"
autowire="byType">
            <constructor-arg
value="org.appfuse.tutorial.model.Person"/>
        </bean>
    </constructor-arg>
</bean>

The cod in StartupListener is like the following code

GenericManager<Person,Long> mgr = (GenericManager<Person,Long>)
ctx.getBean("personManager");

Unfortunately, It failed in the testing and the log says can't find
this bean when do StartupListenerTest. What shall I do now?

Regards
Tony Luo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net

Reply via email to