[Resin-interest] How Resin/Ioc used for struts2/xwork2, need an ObjectFactory implementation

2007-12-21 Thread wesley
I'm using Struts2 in nearly every new projects these days, with Guice as the IoC injector. I want to switch to Resin's WebBeans implementation and Resin/IoC. One of the main concerns is that I could not figure out how to write a ObjectFactory implementation using Resin/IoC/WebBeans

Re: [Resin-interest] How Resin/Ioc used for struts2/xwork2, need an ObjectFactory implementation

2007-12-21 Thread wesley
To implement a com.opensymphony.xwork2.ObjectFactory, we should override method public Object buildBean(Class clazz, Map extraContext); and create/obtain a bean instance of specified bean class (provided by param clazz). I think I may get a WebBeansContainer instance as follow

Re: [Resin-interest] How Resin/Ioc used for struts2/xwork2, need an ObjectFactory implementation

2007-12-21 Thread Scott Ferguson
On Dec 21, 2007, at 7:15 AM, wesley wrote: To implement a com.opensymphony.xwork2.ObjectFactory, we should override method public Object buildBean(Class clazz, Map extraContext); and create/obtain a bean instance of specified bean class (provided by param clazz). I think I may

Re: [Resin-interest] Memory leak in mod_caucho.so

2007-12-21 Thread Sam
We are using Resin 3.1.4 with Apache 1.3.39. If mod_caucho.so is active in httpd.conf and Resin is running, httpd processes become utilizing more and more RAM (each one getting about and more than 100 Megs for Virtual and Resident memory values). When mod_causho is not active, Apache does not

Re: [Resin-interest] How Resin/Ioc used for struts2/xwork2, need an ObjectFactory implementation

2007-12-21 Thread wesley
Thanks Scott, I tried already, both in Servlet and JSP or in an ObjectFactory implemetation class, but got null ComponentFactory instance. My test JSP: %@ page contentType=text/html;charset=UTF-8 language=java %