RE: Session, google app and sip
Hi Matthieu! 1+2) Yes, this is the case. The thread pool can be configured and its parameters vary depending on the HTTP server connector used. For the internal HTTP connector (inside org.restlet.jar), you can find details here: http://wiki.restlet.org/docs_2.1/13-restlet/27-restlet/48-restlet/86-restlet /184-restlet.html For Jetty its here: http://wiki.restlet.org/docs_2.1/13-restlet/28-restlet/78-restlet.html And so on :) 3) GAE comes with its own HTTP server connector (actually a Servlet engine) which is leveraged by Restlet, so you application is indeed multithreaded, but thread creation isn't under your control. 4) GAE comes with support for XMPP, which might help: http://code.google.com/intl/fr/appengine/docs/java/xmpp/ Otherwise you can try HTTP polling. 6) SIP was designed based on HTTP but isn't HTTP indeed. It uses its own URIs but the Restlet routing mechanisms can still be used. Note that Restlet/SIP support isn't available in GAE as it requires thread and socket creation... Best regards, Jerome -- http://www.restlet.org http://twitter.com/#!/jlouvel -Message d'origine- De : lagarde mathieu [mailto:lagarde.mth...@gmail.com] Envoyé : jeudi 3 novembre 2011 15:43 À : discuss@restlet.tigris.org Objet : Session, google app and sip Hello It's been a while since I ever used restlet and I have some question. I hope they'll be understandable, and if my english isn't good enough you can correct me :) 1. I wan't to know (Actually I have a doubt) if restlet is multithreaded for message reception. 2. In this case, I think it used a thread pool but how configure it ? 3. In Google app engine (gae), after a research I noticed that thread isn't allowed and they said to used task queue. So the gae restlet version, used task queu or it's just a monothread version ? 4. How can I contact a client because I noticed sessions isn't allowed and it's not restfull ? because I wan't to make some social tool in my application (video game) like a chat or friend management. 5. I see that there is a sip extention that allow me to do a video games (this is my case). But in documentation I can't find any session function or other. Have you got an idea ? 6. I know sip isn't http but can I used (can't remember name) url segmentation with it? exemple: send something to using sip to: http://myserver/party/[partyid] thanks you for all your answer. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=28724 41 -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2875906
Re: custom exception message
Hi Sean, I hope you have made the appropriate changes in the configuration file to make use of the status service class which you have created. In your main method you need specify the status service class by calling the application.setStatusService method and pass the class that you have created. Hope this will resolve your issue if you are not doing it already. Thanks Nitin -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/custom-exception-message-tp6969248p6969639.html Sent from the Restlet Discuss mailing list archive at Nabble.com. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2875911
RE: SSL on Google App Engine
Hi Jerome, thanks you're absolutely right of course. I added this lines to my web.xml and now it demands a certificate when accessing the Rest-services: security-constraint web-resource-collection web-resource-nameHTTPS Rest/web-resource-name url-pattern/rest/*/url-pattern /web-resource-collection user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/SSL-on-Google-App-Engine-tp6954679p6970990.html Sent from the Restlet Discuss mailing list archive at Nabble.com. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2876043
Re: custom exception message
Hi Sean, I think you meant /I called application.setStatusService in my main method and it still does/ *not* /work/. Another thing that you should consider is, *you are not catching* the unhandled exceptions in your resource classes and then wrapping them in ResourceException and throwing it again as ResourceException. The getStatus method in Status Service checks for the exception type and if it finds ResourceException then it will not let your custom code to execute. If it still does not work. Do share the snippets of ResourceClass and custom status service class as well. Thanks Nitin -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/custom-exception-message-tp6969248p6972540.html Sent from the Restlet Discuss mailing list archive at Nabble.com. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2876138
Re: Problem ignoring local addresses when calling restlet webservices using HtpClientConnector (Ext package)
Hi Guys, Can somebody help with the problem mentioned in the thread? It's urgent as I can't proceed further without resolving this issue. Jerome, Tim I think you might have the workaround for the issue. Thanks Nitin -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/Problem-ignoring-local-addresses-when-calling-restlet-webservices-using-HtpClientConnector-Ext-packa-tp6964835p6972553.html Sent from the Restlet Discuss mailing list archive at Nabble.com. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2876139
Re: Problem ignoring local addresses when calling restlet webservices using HtpClientConnector (Ext package)
Which Tim do you mean? Not me, I hope -- I don't even understand the question. --tim On Mon, Nov 7, 2011 at 6:40 PM, Nitin Arora aro_ni...@yahoo.com wrote: Hi Guys, Can somebody help with the problem mentioned in the thread? It's urgent as I can't proceed further without resolving this issue. Jerome, Tim I think you might have the workaround for the issue. Thanks Nitin -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/Problem-ignoring-local-addresses-when-calling-restlet-webservices-using-HtpClientConnector-Ext-packa-tp6964835p6972553.html Sent from the Restlet Discuss mailing list archive at Nabble.com. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2876139 -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2876142
Re: Problem ignoring local addresses when calling restlet webservices using HtpClientConnector (Ext package)
Hi Tim, I mentioned your name based on the responses that you have already provided in the restlet forum. I can try and the explain the issue again. I've a server running in the LAN which exposes the REST API on port 8006. I've another server which is outside the lan and I consume the REST API on a public url. All the client machines are using proxy servers to access internet. I've developed a REST client which is used to consume the API exposed on both the servers. So, I pass the proxy server information while making the restlet calls. Problem is my first call is intranet server call like http://localhost:8006/info and I'm facing an issue where this call is getting routed through proxy and failing there and I can'r proceed further to execute the internet server call. Code specifics are in the first post. Help me if you have understood the problem now. Thanks Nitin -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/Problem-ignoring-local-addresses-when-calling-restlet-webservices-using-HtpClientConnector-Ext-packa-tp6964835p6972976.html Sent from the Restlet Discuss mailing list archive at Nabble.com. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2876166
Documentation on Component-based Client reuse
I’ve always had a vague awareness that when an application used a Component, somehow instances of Client would be reused, somehow automatically behind the scenes. Is this still the case with 2.0 and/or 2.1? If so, can anyone point me to some documentation on how this works? Thanks! Avi -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2876178