Juan
2013-01-07 20:11:59 UTC
I have been playing with the Restlet examples, seems that the URI defined in the router.attach call (http://localhost:8111/hello) needs to called exactly like it from the clients, including the host name. If my local machine is named galaxy18 and i run the webservice and local client, I can only access it via localhost:8111/hello. If I change the router.attach to http://galaxy18:8111/hello then the client can access it with galaxy18 but not with localhost.
I don't like hardcording, especially machine names, if you can imagine this will be a pain if my webservice is running on different machines.
Is this an instance where I need to use read the hostname into a variable then use that in the router.attach or am i missing something basic here?
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=7458&dsMessageId=3041554
I don't like hardcording, especially machine names, if you can imagine this will be a pain if my webservice is running on different machines.
Is this an instance where I need to use read the hostname into a variable then use that in the router.attach or am i missing something basic here?
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=7458&dsMessageId=3041554