<listener> <listener-class>com.opensymphony.webwork.lifecycle.PicoApplicationLifecycleListener</listener-class> </listener>
<listener> <listener-class>com.opensymphony.webwork.lifecycle.PicoSessionLifecycleListener</listener-class> </listener>
<filter> <filter-name>container</filter-name> <filter-class>com.opensymphony.webwork.lifecycle.PicoRequestLifecycleFilter</filter-class> </filter>
<filter-mapping> <filter-name>container</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
Save the class names, this is probably the same as what you already have. You'll need to remove the ComponentInterceptor from the interceptor stack as this isn't needed anymore.
Additionally, your components.xml file will need to be configured a little differently. Whereas before you would have:
<component> <scope>application</scope> <class>HibernatePersistenceManager</class> <enabler>PersistenceManagerAware</enabler> </component>
with a class that looked like:
public class Foo implements PersistenceManagerAware {
private PersistenceManager persistenceManager;
public void setPersistenceManager(PersistenceManager persistenceManager) {
this.persistenceManager = persistenceManager;
}
}
You'll now have:
<component> <scope>application</scope> <class>HibernatePersistenceManager</class> <enabler>PersistenceManager</enabler> </component>
with a class that looked like:
public class Foo { private PersistenceManager persistenceManager; public Foo(PersistenceManager persistenceManager) { this.persistenceManager = persistenceManager; } }
My intent is to put it out there for comment and then replace the existing IoC framework once this one is solid. As one small step backwards, the pico implementation does not yet support the Startable, Stoppable, or Disposable interfaces. I'll add that today or tomorrow.
Cheers!
M
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork