Announcement Announcement Module
No announcement yet.
Tapestry 5 and Spring BlazeDS Integration (1.0.0.RELEASE) Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Tapestry 5 and Spring BlazeDS Integration (1.0.0.RELEASE)


    How can I use the Spring BlazeDS Integration with Tapestry 5? I tried many things, but I cannot get it up and running. I think there is a problem to tell the web application that /messagebroker/amf (I am using Remoting) should be handled by the MessageBroker instead of Tapestry.

    How do I have to configure the web.xml?
    Mine looks as follows:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app
            PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    	<display-name>Create Sales</display-name>
    Do I have to modify my (that comes with Tapestry)?

    My approach looks like that, with the result, that I get a 404-Error from Jetty in the Reply of the POST-Request (seeing this in Firebug):

    public RequestFilter buildTimingFilter(final Logger log) {
    		return new RequestFilter() {
    			public boolean service(Request request, Response response,
    					RequestHandler handler) throws IOException {
    				long startTime = System.currentTimeMillis();
    				try {
    					// The responsibility of a filter is to invoke the
    					// corresponding method
    					// in the handler. When you chain multiple filters together,
    					// each filter
    					// received a handler that is a bridge to the next filter.
    					"Path: " + request.getPath());
    					if (request.getPath().startsWith("/messagebroker")) {
    						return false;
    					return handler.service(request, response);
    				} finally {
    					long elapsed = System.currentTimeMillis() - startTime;
    "Request time: %d ms", elapsed));