That is my super lame hack that lets the handler write to the servlet output stream. This is how I get the nested print statements showing the handler flow when you execute the servlet.

-dain


On Nov 9, 2007, at 5:15 PM, Dario Laverde wrote:

Thanks Dain. I think you meant the following link for:

Servlet with client handlers
http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/ejb- examples/src/main/java/org/apache/openejb/examples/servlet/ WebserviceServlet.java?view=markup

Also I'm not quite sure why you have the following try-finally in the code:

OUT = out;
try {
 out.println("Pojo Webservice");
out.println(" helloPojo.hello(\"Bob\")=" + helloPojo.hello ("Bob"));

...

} finally {
 OUT = out;
}


thanks,
Dario

Webservice Handlers are now working. See the examples:

EJB with handlers
http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/ejb-
examples/src/main/java/org/apache/openejb/examples/servlet/
HelloEjbService.java?view=markup

POJO with handlers
http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/ejb-
examples/src/main/java/org/apache/openejb/examples/servlet/
HelloPojoService.java?view=markup

Servlet with client handlers
http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/ejb-
examples/src/main/java/org/apache/openejb/examples/servlet/
HelloPojoService.java?view=markup

Handler code
http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/ejb-
examples/src/main/java/org/apache/openejb/examples/servlet/
ServerHandler.java?view=markup

-dain



Reply via email to