Hi, I'm fairly new to restlets and would appreciate some help understanding what's happening with my usage of 'router.attach()'.
Below, 'MyClass' is called correctly following the attach, but only when the browser issuing the request, http://myHost:8096/trace, is running on the same server as the restlet code below. That is, when client and server are on the same physical box. But if I try to issue the client HTTP request from any other browser (PC) the attach does not work (unless I use attachDefault(MyClass.class) and then it works fine.) It seems like some kind of 'localhost' issue but I've tried a number of things and just can't get it to attach properly when using remote HTTP clients. Any help much appreciated! import org.restlet.*; import org.restlet.routing.*; import org.restlet.data.*; public class Test extends Application { public static void main(String[] args) throws Exception { Server myServer = new Server(Protocol.HTTP, 8096) ; myServer.setNext(new Test()); myServer.start(); } @Override public Restlet createInboundRoot() { Router router = new Router(getContext()); router.attach("/trace", MyClass.class); return router; } } ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2685119

