f_kasper
Sep 17th, 2004, 04:39 AM
Hi
I am new to spring so this might be trivial, but I can't figure out how to get this working.
I have some business logic running on a application server (Jboss) where i uses spring as my bean manager. I have created a XmlBeanFactory, and bound it to jndi in the server. When i shall use the bean factory I first lookup the beanfactory from jndi and the lookup the bean (factory.getBean("mybean")). Is this the right way to do it?
Furthermore I will have to use some of the same beans in my frontend (servlets). I works fine creating it own beanfactory with the listener org.springframework.web.context.ContextLoaderListe ner. But I can't find a way to get the 2 beanfactorys to see eachother, looking backend/business beans up from the frontend. How could i do this?
Thougt abot making the backend/business factory parrent to the servlets factory but how?
Hope I just missing something obvious but what?
Thanks in advantage
/Kasper
I am new to spring so this might be trivial, but I can't figure out how to get this working.
I have some business logic running on a application server (Jboss) where i uses spring as my bean manager. I have created a XmlBeanFactory, and bound it to jndi in the server. When i shall use the bean factory I first lookup the beanfactory from jndi and the lookup the bean (factory.getBean("mybean")). Is this the right way to do it?
Furthermore I will have to use some of the same beans in my frontend (servlets). I works fine creating it own beanfactory with the listener org.springframework.web.context.ContextLoaderListe ner. But I can't find a way to get the 2 beanfactorys to see eachother, looking backend/business beans up from the frontend. How could i do this?
Thougt abot making the backend/business factory parrent to the servlets factory but how?
Hope I just missing something obvious but what?
Thanks in advantage
/Kasper