If you load up the Spring context files using a
ClassPathXmlApplicationContext, you should be able to access all your
beans.
Matt
On Feb 11, 2008, at 4:49 AM, adriel manalansan wrote:
Hello to everyone,
I am using appfuse 1.9.4 and webwork.
I am making a utility module for importing/exporting object using
only
command-line interface. I am having a problem in spring to wire my
Managers and Dao-Hibernate using the applicationContext-service.xml
and
applicationContext-hibernate.xml. I found out that StartupListener and
ContextLoaderlistener are the classes that made them to interact/wired
to each other.
public class StartupListener extends ContextLoaderListener
implements ServletContextListener {
public void contextInitialized(ServletContextEvent event) {
if (log.isDebugEnabled()) {
log.debug("initializing context...");
}
// call Spring's context ContextLoaderListener to initialize
// all the context files specified in web.xml
super.contextInitialized(event);
If I am not mistaken, StartupListener will only run using web(tomcat)
but not on CLI.
The questions is how can I mimic the interaction of both my spring
xml
using only CLI just like the StartupListener do? I want to use my
managers for importing serialized objects.
Thank you in advance.
Adriel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]