Re: Restlet server concurrency issue: Server handle multiple requests sequentially

2015-02-19 Thread Jerome Louvel
ing our server/services. > > > On Fri, Sep 26, 2014 at 3:33 PM, Audumbar Pujari > wrote: > >> Scenario : >> >>- >> >>I have implemented simple restlet server. >>- >> >>One client(RestClient / wget) or more than o

Re: Restlet server concurrency issue: Server handle multiple requests sequentially

2014-09-26 Thread Fabian Mandelbaum
at 3:33 PM, Audumbar Pujari wrote: > Scenario : > >- > >I have implemented simple restlet server. >- > >One client(RestClient / wget) or more than one client sending GET/POST >requests to server at same time. (eg: wget http://mymachine.com:

Restlet server concurrency issue: Server handle multiple requests sequentially

2014-09-26 Thread Audumbar Pujari
Scenario : - I have implemented simple restlet server. - One client(RestClient / wget) or more than one client sending GET/POST requests to server at same time. (eg: wget http://mymachine.com:8182) Expected Behavior : - Server needs to handle all requests concurrently

RE: Re: Upload image to restlet server

2013-03-12 Thread Elad Kravi
Found the problem :) I changed the signature of the annotated method in my server resource to @Post public void setLogo(Representation toSet) was initially: @Post public void setLogo(byte[] toSet) Is there anyway to use concrete types in the declaration or I need to manually convert the data fr

Re: Upload image to restlet server

2013-03-12 Thread Thierry Templier
ad an image to my Restlet server. > The server keep returning "Unsupported media type" (415). > > Some details: > > My request: > POST myURL HTTP/1.1 > Host: localhost:8008 > User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 > Firefox/19.0 &g

Upload image to restlet server

2013-03-12 Thread Elad Kravi
Hi, I'm trying to upload an image to my Restlet server. The server keep returning "Unsupported media type" (415). Some details: My request: POST myURL HTTP/1.1 Host: localhost:8008 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0 Accept: */*

Re: Restlet client hanging when connecting to Restlet server (SunOS)

2012-10-25 Thread Thierry Boileau
Hello Noam, I'm currently using the net client connector for customer in production environment. Using the HttpClient extension is fine also. Best regards, Thierry Boileau Thanks for your reply Jerome! > > It is working fine on SunOS with the org.restlet.ext.net connector! > > I will also test

RE: Restlet client hanging when connecting to Restlet server (SunOS)

2012-10-17 Thread Noam Krendel
Thanks for your reply Jerome! It is working fine on SunOS with the org.restlet.ext.net connector! I will also test with the httpclient connector. Is this connector recommended for production? Thanks again! -- http://restlet.tigris.org/ds/vie

RE: Restlet client hanging when connecting to Restlet server (SunOS)

2012-10-16 Thread Jerome Louvel
helps! Jerome -Message d'origine- De : Noam Krendel [mailto:nkren...@yahoo.com] Envoyé : lundi 15 octobre 2012 20:48 À : discuss@restlet.tigris.org Objet : Restlet client hanging when connecting to Restlet server (SunOS) I am using Restlet 2.1.0 with the xstream and jettison exten

Restlet client hanging when connecting to Restlet server (SunOS)

2012-10-15 Thread Noam Krendel
I am using Restlet 2.1.0 with the xstream and jettison extensions. In my JUnit test I create a simple server: @BeforeClass public static void setUpBeforeClass() throws Exception { server = new Server(Protocol.HTTP, SERVER_PORT, TestServerResource.class); Context ctx = new Co

Re: Re: Re: Repeated calls by Restlet client to Restlet server hangs

2012-08-14 Thread Thierry Boileau
Hello Jon, from what I notice, this is due to the fact that the entity is not consumed. I've just reproduced it using this code: ClientResource cr = new ClientResource("http://www.example.com";); for (int i = 0; i < 20; i++) { System.out.println(i); cr.get(

RE: Re: Re: Repeated calls by Restlet client to Restlet server hangs

2012-08-03 Thread Jon Lachelt
Thierry, I have come up with a "fix" that solves the issue for us... but I don't know if it is the best/right solution. It doesn't seem to be the right way to handle it. I'm using the 2.0.11 source. In HttpMethodCall.sendRequest(Request) I noticed that after: this.httpResponse = this.cl

RE: Re: Re: Repeated calls by Restlet client to Restlet server hangs

2012-08-01 Thread Jon Lachelt
Thanks Thierry. If you suggest where to look I'm happy to see if I can fix it. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2994322

RE: Re: Repeated calls by Restlet client to Restlet server hangs

2012-08-01 Thread Jon Lachelt
I should clarify. We are using org.restlet.ext.httpclient. In our log file, when the request is for a valid resource URI, we see log messages that indicate the connection is being returned to the pool. 15:18:31.193 [qtp1028854205-70 - /order] DEBUG o.a.h.i.c.t.ThreadSafeClientConnManager - Rel

Re: Re: Repeated calls by Restlet client to Restlet server hangs

2012-08-01 Thread Thierry Boileau
Hello Jon, tanks for reporting this problem, I've entered an issue for that point : https://github.com/restlet/restlet-framework-java/issues/630 Best regards, Thierry Boileau I'm seeing similar behavior (leaked connections), but in a different case. > In our case we get leaked connections if th

RE: Re: Repeated calls by Restlet client to Restlet server hangs

2012-07-31 Thread Jon Lachelt
I'm seeing similar behavior (leaked connections), but in a different case. In our case we get leaked connections if the request throws an exception. We noticed this in Restlet 2.0.11, and I just tried 2.0.14 and I see the same problem. String uri = "http://localhost:8111/account/junkoid"

Re: OPTIONS and TRACE not being caught by Restlet Server

2012-06-28 Thread Paul Morris
-discuss.1400322.n2.nabble.com/OPTIONS-and-TRACE-not-being-caught-by-Restlet-Server-tp7578142p7578151.html Sent from the Restlet Discuss mailing list archive at Nabble.com. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessa

Re: OPTIONS and TRACE not being caught by Restlet Server

2012-06-28 Thread Paul Morris
in if anyone has any insight I'm all ears. -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/OPTIONS-and-TRACE-not-being-caught-by-Restlet-Server-tp7578142p7578150.html Sent from the Restlet Discuss mailing list archive at

OPTIONS and TRACE not being caught by Restlet Server

2012-06-26 Thread Paul Morris
d you have any ideas? Using Apache Tomcat 7.0.27 and Restlet 2.1 SNAPSHOT for all the Restlet libraries. -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/OPTIONS-and-TRACE-not-being-caught-by-Restlet-Server-tp7578142.html Sent from the Restlet Discuss mailing list a

Re: Restlet server 2.0.11 Threads increase

2012-02-15 Thread Thierry Boileau
Hello Liem, you can set it as follow : server.setContext(new Context()); Generally, such connector is used inside a Component, which automatically adjust the connector's context. Best regards, Thierry Boileau My server stops serving after some connections and I would like to increase > the numb

Restlet server 2.0.11 Threads increase

2012-02-15 Thread Liem Truong
My server stops serving after some connections and I would like to increase the number of threads. try { Server server = new Server(Protocol.HTTP, m_iPort, ContentProvider.class); server.start(); } catch (Exception e) { e.printStackTrace(); } This line below would return a null Cont

Restlet Server Request twice

2011-12-30 Thread phani
Hi, I am trying to send a POST request to my restlet service. I am getting the POST data and performing some time consuming operations which takes about 1 minute. In the mean time, either the request is timing out or the restlet server is sending a response back to the client but the server

RE: Re: Repeated calls by Restlet client to Restlet server hangs

2011-11-27 Thread Jim Irrer
Yes - that works! Many thanks. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2888171

RE: Re: Repeated calls by Restlet client to Restlet server hangs

2011-11-24 Thread Jim Irrer
Thanks for the response. I thought it would be something that I was not releasing. Constructive comment: The examples don't release the resource. I'll try your solution next week when I'm back at work. - Jim -- http://restlet.tigris.org/ds/v

Re: Repeated calls by Restlet client to Restlet server hangs

2011-11-23 Thread Danilo Munoz
Jim, You forget releasing the resource! Try add clientResource.release(), like this: Response response = clientResource.getResponse(); *clientResource.release();* Status status = response.getStatus(); return "status: " + status + "message: " + newString(resp

Repeated calls by Restlet client to Restlet server hangs

2011-11-23 Thread Jim Irrer
I am using Restlet to implement a web service. The client (also uses Restlet) makes many consecutive calls to the server, but after a small number of calls complete successfully, further calls hang the server, which shows the message: INFO: Stop accepting new connections and transactions.

Running restlet client and restlet server on GAE.

2011-05-15 Thread Dom For
Hello, I have a weird problem. I want to run a restlet client and a restlet server as two independent applications on the Google App Engine. The restlet server on GAE works fine. I tested it with a JavaEE restlet client running locally on my tomcat. The restlet client on GAE works fine too

RE: Restlet Server, GWT, restlet client

2011-03-28 Thread ROSTAING TAYARD Philippe
om] Envoyé : mercredi 23 mars 2011 18:56 À : discuss Cc : ROSTAING TAYARD Philippe Objet : Re: Restlet Server, GWT, restlet client Hello Philippe, the main problem is that the GWT *extension* for the server side (jse, jee, gae edition), is able to serialize an objet sent to a GWT client, and deserialize

Re: Restlet Server, GWT, restlet client

2011-03-23 Thread Thierry Boileau
e to think to simplify this. Best regards, Thierry Boileau Hi All, > > I'm totally newbie, and this is what I want to do with restlet : > - have a restlet server serving a GWT application >- have a restlet client accessing this server > > Instead of making

Re: Data loss between HTTP client and restlet server, errors writing to non-blocking channel

2010-11-15 Thread Tal Liron
My problem ended up being Grizzly (version 1.9.21). Switching to Jetty made the problem disappear, at least for the past 24 hours. Will keep you posted. I don't know if the issue is Grizzly itself or the Restlet connector, but this is a production system I can't play around with and test. Als

Re: Data loss between HTTP client and restlet server, errors writing to non-blocking channel

2010-11-15 Thread Carles Barrobés
-between-HTTP-client-and-restlet-server-errors-writing-to-non-blocking-channel-tp5720451p5739966.html Sent from the Restlet Discuss mailing list archive at Nabble.com. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2681955

Re: Data loss between HTTP client and restlet server, errors writing to non-blocking channel

2010-11-09 Thread Carles Barrobés
I just tried using nginx as a reverse proxy. It doesn't seem to make any difference, data is still being lost. -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/Data-loss-between-HTTP-client-and-restlet-server-errors-writing-to-non-blocking-channel-tp5720451p57

Re: Data loss between HTTP client and restlet server, errors writing to non-blocking channel

2010-11-09 Thread Tal Liron
an help you isolate where the problem is. -Tal On 11/09/2010 05:04 AM, Carles Barrobés wrote: > I get these errors frequently in my restlet server log. > I'm running restlet 2.0-RC04 as a standalone process. > I consume the web services with Apache HTTP client 3.1. > > It seem

Data loss between HTTP client and restlet server, errors writing to non-blocking channel

2010-11-09 Thread Carles Barrobés
I get these errors frequently in my restlet server log. I'm running restlet 2.0-RC04 as a standalone process. I consume the web services with Apache HTTP client 3.1. It seems to be related with serving "relatively" large pages (it seems to get more frequent). At the HTTP client

RE: Restlet client code does not work in Restlet Server (ServerResource) service.

2010-11-01 Thread webpost
Hi I tried some more by using standard URLConnection inside the same block like... - URL yahoo = new URL("http://www.yahoo.com";); URLConnection yc = yahoo.openConnection(); BufferedReader in = new BufferedReader(

RE: Trying to use restlet client from inside restlet server code

2010-11-01 Thread Thierry Boileau
Hello Patrick, when used inside a Component, a ClientResource will use the client connectors registered by the Component, exactly as hosted applications share the server connectors registered by the component [1] and [2]. Thus, you simply need to add the following line of code: component.getCli

RE: Restlet client code does not work in Restlet Server (ServerResource) service.

2010-10-29 Thread webpost
Hi Jerome, I didn't see any response, only your name as author of response post. :-) Anyway, should I add any issue to your bug tracking in this case? --Patrick -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2677196

RE: Restlet client code does not work in Restlet Server (ServerResource) service.

2010-10-29 Thread Jerome Louvel
-Message d'origine- De : webp...@tigris.org [mailto:webp...@tigris.org] Envoyé : vendredi 29 octobre 2010 15:54 À : discuss@restlet.tigris.org Objet : RE: Restlet client code does not work in Restlet Server (ServerResource) service. Hi I tried some more by using standard URLConne

Trying to use restlet client from inside restlet server code

2010-10-29 Thread webpost
Hi, I'm using restlet 2.0rc4 on BSD, and run into some interesting problem. I'm trying to make http request using restlet client from inside restlet server code (inside ServerResource @post method). Code snippet is as following: InetAddress

Restlet client code does not work in Restlet Server (ServerResource) service.

2010-10-29 Thread webpost
I hope I'm not spamming the list. I tried post once, but the message doesn't seem to show up. I'm using restlet 2.0rc4 on BSD, and run into some interesting problem. I'm trying to make http request using restlet client from inside restlet server code (inside ServerR

RE: How to change the port the RESTlet server componenet is listening on

2010-02-10 Thread Thierry Boileau
Hello, unless you instantiate your own component (using a restlet.xml file, or specifying a "org.restlet.component" parameter in the web.xml file), the component listens on the port defined by the servlet container. In this case, this should be transparent. Best regards, Thierry Boileau

How to change the port the RESTlet server componenet is listening on

2010-02-10 Thread Mark Larkin
Hello, I have put together an application based on the RESTlet First Resource sample code. The server component runs within Tomcat. All works fine (I can send data to the RESTlet server and it receives it. However, I would like to change the port it is listening on (it is currently listening

RE: restlet server on the client ;)

2009-12-28 Thread Jerome Louvel
De : Rob Heittman [mailto:rob.heitt...@solertium.com] Envoyé : jeudi 10 décembre 2009 15:56 À : discuss@restlet.tigris.org Objet : Re: restlet server on the client ;) I was thinking the same about web sockets. We have several applications that use Restlet in GWT to talk to a server

RE: CAS authentication in Restlet server

2009-12-28 Thread Jerome Louvel
.org Objet : Re: CAS authentication in Restlet server Hi Jerome, Thanks for the pointer, it was very useful. I think I'm starting to see the picture now. I'm a bit confused about the various places where a Verifier is referenced. I've seen such references in Context, ChallengeAuthenti

Re: restlet server on the client ;)

2009-12-10 Thread Rob Heittman
I was thinking the same about web sockets. We have several applications that use Restlet in GWT to talk to a server, and I have been trying to think about good ways to port these for offline/local use to use HTML5 database APIs. This might be a road in the future. I agree, a bit iconoclastic, bu

restlet server on the client ;)

2009-12-10 Thread Xavier Méhaut
Hello, I know it is quite iconoclast, but I would like to know your feeling about the following idea, ie having a client (for instance gwt app) with a restlet server inside... The idea behind is the following ; many different clients access a server through restlets, and some REST actions may need

Re: CAS authentication in Restlet server

2009-12-03 Thread Arjohn Kampman
Rhett Sutphin wrote: > Hi Arjohn, > > On Dec 2, 2009, at 12:34 PM, Arjohn Kampman wrote: > >> Hi Rhett, others, >> >> Thanks for your suggestion. Since I'm fairly new to the subject, I >> hope >> you (and others) can help me a bit to get things clear. >> >> If I understand you correctly, you ar

Re: CAS authentication in Restlet server

2009-12-02 Thread Rhett Sutphin
Hi Arjohn, On Dec 2, 2009, at 12:34 PM, Arjohn Kampman wrote: > Hi Rhett, others, > > Thanks for your suggestion. Since I'm fairly new to the subject, I > hope > you (and others) can help me a bit to get things clear. > > If I understand you correctly, you are suggesting to use a CAS proxy > ti

Re: CAS authentication in Restlet server

2009-12-02 Thread Arjohn Kampman
Hi Rhett, others, Thanks for your suggestion. Since I'm fairly new to the subject, I hope you (and others) can help me a bit to get things clear. If I understand you correctly, you are suggesting to use a CAS proxy ticket as an authentication token. However, such a token can only be sent once to

Re: CAS authentication in Restlet server

2009-12-02 Thread Arjohn Kampman
Hi Jerome, Thanks for the pointer, it was very useful. I think I'm starting to see the picture now. I'm a bit confused about the various places where a Verifier is referenced. I've seen such references in Context, ChallengeAuthenticator and Realm. I assume that the context's verifier serves as a d

RE: CAS authentication in Restlet server

2009-12-02 Thread Jerome Louvel
arjohn.kamp...@aduna-software.com] Envoyé : mardi 1 décembre 2009 20:54 À : discuss@restlet.tigris.org Objet : Re: CAS authentication in Restlet server Hi Jerome, others, I have just started working on this. If I get it up-and-running, I can probably donate the code to the restlet project if you like. I&#x

Re: CAS authentication in Restlet server

2009-12-01 Thread Arjohn Kampman
Hi Jerome, others, I have just started working on this. If I get it up-and-running, I can probably donate the code to the restlet project if you like. I'm currently looking at the org.restlet.security API, but I'm seeing a lot of terms/concepts that are new to me. Do you have a bit of documentati

RE: CAS authentication in Restlet server

2009-11-11 Thread Jerome Louvel
re 2009 15:07 À : discuss@restlet.tigris.org Objet : Re: CAS authentication in Restlet server Hi Arjohn, On Nov 10, 2009, at 5:31 AM, Arjohn Kampman wrote: > Hi Rhett, > > Many thanks for these pointers and your suggestions. The code looks > nice > and clean. Thanks. > The license

Re: CAS authentication in Restlet server

2009-11-10 Thread Rhett Sutphin
Hi Arjohn, On Nov 10, 2009, at 5:31 AM, Arjohn Kampman wrote: > Hi Rhett, > > Many thanks for these pointers and your suggestions. The code looks > nice > and clean. Thanks. > The license for this code looks very BSD-like, is that > correct? That's correct. You're free to take and adapt it

Re: CAS authentication in Restlet server

2009-11-10 Thread Arjohn Kampman
Hi Rhett, Many thanks for these pointers and your suggestions. The code looks nice and clean. The license for this code looks very BSD-like, is that correct? I noticed that this code is based on acegi. Is this easier/better than using the CAS client code directly? Arjohn Rhett Sutphin wrote: >

Re: CAS authentication in Restlet server

2009-11-09 Thread Rhett Sutphin
Hi Arjohn, On Nov 7, 2009, at 4:31 AM, Arjohn Kampman wrote: > I'm planning to integrate CAS (proxy) authentication in my Restlet- > based > server. Has anyone worked on this before? Any suggestions on how to > best > implement this? I have done this for my Restlet-based API. I can point you

CAS authentication in Restlet server

2009-11-07 Thread Arjohn Kampman
Hi all, I'm planning to integrate CAS (proxy) authentication in my Restlet-based server. Has anyone worked on this before? Any suggestions on how to best implement this? CAS: http://www.jasig.org/cas Regards, Arjohn -- Arjohn Kampman, Senior Software Engineer Aduna - Semantic Power www.aduna-

Re: Junit testing of restlet server?

2009-10-31 Thread Stephan Koops
t; Hi, > I am setting up a test harness for my restlet server; using junit inside > Eclipse. I am using restlet to generate the client side messages and view > the responses. > > It doesn't seem possible to generate bad HTTP headers with the restlet > client. Whenever I tr

Junit testing of restlet server?

2009-10-30 Thread Ty
Hi, I am setting up a test harness for my restlet server; using junit inside Eclipse. I am using restlet to generate the client side messages and view the responses. It doesn't seem possible to generate bad HTTP headers with the restlet client. Whenever I try to create headers that are

RE: Re: Integrating Apache and Restlet server like Apache and Tomcat

2009-09-29 Thread Jerome Louvel
Technologies ~ Co-founder ~ http://www.noelios.com -Message d'origine- De : Ashish Sharma [mailto:ashish.shar...@hp.com] Envoyé : mercredi 23 septembre 2009 11:58 À : discuss@restlet.tigris.org; Bruno Harbulot Objet : RE: Re: Integrating Apache and Restlet server like Apache and Tomcat Bruno

RE: Re: Integrating Apache and Restlet server like Apache and Tomcat

2009-09-23 Thread Ashish Sharma
Bruno, I am able to run restlet over jetty as advised by you, but I am not clear how can it fulfill my original requirement. Please explain!!! thanks in advance Ashish > Hi Ashish, > > Ashish Sharma wrote: > > Hello, > > > > I have my Apache http server running

Re: Integrating Apache and Restlet server like Apache and Tomcat

2009-09-23 Thread Bruno Harbulot
Hi Ashish, As Rémi said, mod_proxy might be better for what you need. In addition, mod_jk seems to have been deprecated in favour of mod_proxy_ajp (both use AJP). There is more about this on the Jetty wiki: http://docs.codehaus.org/display/JETTY/Configuring+AJP13+Using+mod_jk The only case wh

RE: Re: Integrating Apache and Restlet server like Apache and Tomcat

2009-09-23 Thread Ashish Sharma
Bruno, Can you post a simple code sample for reference. As I am a newbie. Thanks in advance!! Ashish -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2398769

Re: Integrating Apache and Restlet server like Apache and Tomcat

2009-09-22 Thread Rémi Dewitte
Hello, Not sure I understood the question. You'd better user mod_proxy and ProxyPass instead of mod_jk. Rémi On Tue, Sep 22, 2009 at 14:40, Ashish Sharma wrote: > Hello, > > I have my Apache http server running on localhost:80 and restlet server on > localhost:8182, but I

Re: Integrating Apache and Restlet server like Apache and Tomcat

2009-09-22 Thread Bruno Harbulot
Hi Ashish, Ashish Sharma wrote: > Hello, > > I have my Apache http server running on localhost:80 and restlet server on > localhost:8182, but I want to configure above combination just like Apache > http server and Apache tomcat servlet container can be configured with mo

Integrating Apache and Restlet server like Apache and Tomcat

2009-09-22 Thread Ashish Sharma
Hello, I have my Apache http server running on localhost:80 and restlet server on localhost:8182, but I want to configure above combination just like Apache http server and Apache tomcat servlet container can be configured with mod_jk library. Is it possible? Do I have to modify code of

Integrating Apache and Restlet server like Apache and Tomcat

2009-09-22 Thread Ashish Sharma
Hello, I have my Apache http server running on localhost:80 and restlet server on localhost:8182, but I want to configure above combination just like Apache http server and Apache tomcat servlet container can be configured with mod_jk library. Is it possible? Do I have to modify code of

Re: restlet server NoSuchMethodError

2009-06-05 Thread Matt Stromske
I just realized I am using an old version of Tomcat (4.1) and the servlet spec for that version of Tomcat does not have support the 'getLocalAddr' method. Darn it. Stephan Koops wrote: > Hi Matt, > > looks like that the JARs are from different Restlet versions. > > best regards >Stephan

Re: restlet server NoSuchMethodError

2009-06-03 Thread Stephan Koops
Hi Matt, looks like that the JARs are from different Restlet versions. best regards Stephan -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2359005

restlet server NoSuchMethodError

2009-06-03 Thread Matt Stromske
I am trying to connect to my restlet server and it fails. Here's the stack trace: java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest.getLocalAddr()Ljava/lang/String; at com.noelios.restlet.ext.servlet.ServerServlet.createServer(ServerServlet.java:486)

RE: Command line to STOP Restlet server

2009-01-15 Thread Jerome Louvel
www.noelios.com -Message d'origine- De : news [mailto:n...@ger.gmane.org] De la part de Leshek Envoye : jeudi 15 janvier 2009 00:21 A : discuss@restlet.tigris.org Objet : Re: Command line to STOP Restlet server > When you stop the parent Component, it stops all the child connectors.

Re: Command line to STOP Restlet server

2009-01-14 Thread Leshek
> When you stop the parent Component, it stops all the child connectors. Sounds like a simple, nice, soft stop for me, but... What I am thinking is to respond to URI request like PUT .../shutdown (limit to localhost request and run through authentication guard as all the other requests). Ho

RE: Command line to STOP Restlet server

2009-01-14 Thread Jerome Louvel
eshek Fiedorowicz Envoye : mercredi 14 janvier 2009 06:35 A : discuss@restlet.tigris.org Objet : Re: Command line to STOP Restlet server All good, helpful hints, but... by Restlet designed (the best practice?) way to stop Restlet internal HTTP server? Leshek Ps. I have re-registered with tigris,

Re: Command line to STOP Restlet server

2009-01-13 Thread Leshek Fiedorowicz
All good, helpful hints, but... by Restlet designed (the best practice?) way to stop Restlet internal HTTP server? Leshek Ps. I have re-registered with tigris, thank you Jerome! -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMe

RE: Command line to STOP Restlet server

2009-01-13 Thread Jerome Louvel
ssage d'origine- De : news [mailto:n...@ger.gmane.org] De la part de Leshek Envoye : mardi 13 janvier 2009 00:48 A : discuss@restlet.tigris.org Objet : Command line to STOP Restlet server I want to have stop and exit restlet server command line interface. The start is simple (java -jar myRes

Re: Command line to STOP Restlet server

2009-01-13 Thread Simon Reinhardt
Leshek wrote: > I know from within I can do getContext().getApplication().stop() > I could to it in response to http request .../STOP, but... I want to keep > control on the server only. Apart from the Service Wrapper already pointed out, you could always restrict access to such a resource. Eith

Re: Command line to STOP Restlet server

2009-01-13 Thread Tim Peierls
Take a look at Java Service Wrapper: http://wrapper.tanukisoftware.org/ It covers all sorts of possibilities. --tim On Mon, Jan 12, 2009 at 12:29 PM, Leshek wrote: > I want to have stop and exit restlet server command line interface. > The start is simple (java -jar myRest.jar). >

Command line to STOP Restlet server

2009-01-13 Thread Leshek
I want to have stop and exit restlet server command line interface. The start is simple (java -jar myRest.jar). I know from within I can do getContext().getApplication().stop() I could to it in response to http request .../STOP, but... I want to keep control on the server only. So I am looking

Command line to STOP Restlet server

2009-01-13 Thread Leshek
I want to have stop and exit restlet server command line interface. The start is simple (java -jar myRest.jar). I know from within I can do getContext().getApplication().stop() I could to it in response to http request .../STOP, but... I want to keep control on the server only. So I am looking

RE: restlet server

2008-03-18 Thread Jerome Louvel
09:21 > À : discuss@restlet.tigris.org > Objet : Re: restlet server > > Hi, > > its nice hearing that in 1.1M4 we are going to have > facilities to deploy war > project in restlet server. It will be really nice if we can > have some running > example of how to deploy a

Re: restlet server

2008-03-18 Thread Jahid
Hi, its nice hearing that in 1.1M4 we are going to have facilities to deploy war project in restlet server. It will be really nice if we can have some running example of how to deploy and run war. I tried with restlet server, but filed to deploy war in restlet server. So, right at this moment I

RE: restlet server

2008-03-17 Thread Jerome Louvel
. Best regards, Jerome > -Message d'origine- > De : Rob Heittman [mailto:[EMAIL PROTECTED] > Envoyé : lundi 17 mars 2008 14:23 > À : discuss@restlet.tigris.org > Objet : Re: restlet server > > The Restlet framework can run inside a J2EE container quite > nic

Re: restlet server

2008-03-17 Thread Rob Heittman
at or whatever, and then register the Restlet ServerServlet in the web.xml of your web application. On Mon, Mar 17, 2008 at 8:49 AM, Jahid <[EMAIL PROTECTED]> wrote: > Is there any way to point restlet server to a full web app? I mean the web > app > is having directory structure

Re: restlet server

2008-03-17 Thread Jahid
Actually, i am using Echo2 framework. I want to deploy or run my developed Echo2 in restlet server. but have no clue how to do that. please, any help?

restlet server

2008-03-17 Thread Jahid
Hi, Is there any way to point restlet server to a full web app? I mean the web app is having directory structure as a regular web app with WEB-INF, META-INF. web.xml. I want restlet server to use that web.xml. I mean, is it possible use restlet server to work exactly like it will work if i

RE: Shut down a Restlet server using kill?

2008-03-11 Thread Jerome Louvel
; De : news [mailto:[EMAIL PROTECTED] De la part de Aaron Crow > Envoyé : lundi 10 mars 2008 23:58 > À : discuss@restlet.tigris.org > Objet : Re: Shut down a Restlet server using kill? > > Hi Jerome and All, > > A related question: Is there a programmatic way to tell the > Restl

Re: Shut down a Restlet server using kill?

2008-03-10 Thread Aaron Crow
TED] De la part de Aaron Crow Envoyé : jeudi 6 mars 2008 20:28 À : discuss@restlet.tigris.org Objet : Shut down a Restlet server using kill? Is it ok to shut down a Restlet server using Unix kill? What does Restlet do in this case? And does anyone have any good advice on what the application code might do to handle this event properly?

Re: Shut down a Restlet server using kill?

2008-03-10 Thread Rob Heittman
I know somebody's already done jsvc integration, though I don't think it's in trunk. I'm going to have to implement procrun integration myself in the next few weeks for a project, unless somebody already has, and cares to contribute it ... hint hint ... - R On Mon, Mar 10, 2008 at 1:37 AM, code

Re: Shut down a Restlet server using kill?

2008-03-09 Thread code dude
has anybody used ->http://commons.apache.org/daemon/ ?? On 3/9/08, Steve Loughran <[EMAIL PROTECTED]> wrote: > > On Sun, Mar 9, 2008 at 2:36 PM, John D. Mitchell <[EMAIL PROTECTED]> > wrote: > > On Sat, Mar 8, 2008 at 2:29 PM, Steve Loughran <[EMAIL PROTECTED]> > wrote: > > [...] > > > > > you'r

Re: Shut down a Restlet server using kill?

2008-03-09 Thread Steve Loughran
On Sun, Mar 9, 2008 at 2:36 PM, John D. Mitchell <[EMAIL PROTECTED]> wrote: > On Sat, Mar 8, 2008 at 2:29 PM, Steve Loughran <[EMAIL PROTECTED]> wrote: > [...] > > > you're server should start returning something other than 200 from its > > happy page, and the HTTP-aware front end load balancer

Re: Shut down a Restlet server using kill?

2008-03-09 Thread John D. Mitchell
On Sat, Mar 8, 2008 at 2:29 PM, Steve Loughran <[EMAIL PROTECTED]> wrote: [...] > you're server should start returning something other than 200 from its > happy page, and the HTTP-aware front end load balancer (which polls > these pages) will stop routing traffic to it. That makes it implicit >

Re: Shut down a Restlet server using kill?

2008-03-09 Thread John D. Mitchell
On Sat, Mar 8, 2008 at 2:25 PM, Steve Loughran <[EMAIL PROTECTED]> wrote: [...] > We in SmartFrog, http://smartfrog.org/ are assing support for Restlet > deployments as manageable components, but I don't consider the stuff > stable yet. I've finally got all my tests with S3 working, with > thro

Re: Shut down a Restlet server using kill?

2008-03-08 Thread Steve Loughran
On Sat, Mar 8, 2008 at 12:45 AM, Aaron Crow <[EMAIL PROTECTED]> wrote: > Hi John, > > So as far as server app code dealing with a forced shutdown, may I ask what > you recommend for situations where there's some task running that really > should be allowed to complete? For example, would you hav

Re: Shut down a Restlet server using kill?

2008-03-08 Thread Steve Loughran
On Fri, Mar 7, 2008 at 1:09 PM, John D. Mitchell <[EMAIL PROTECTED]> wrote: > On Thu, Mar 6, 2008 at 11:28 AM, Aaron Crow <[EMAIL PROTECTED]> wrote: > > Is it ok to shut down a Restlet server using Unix kill? > > Depends on your application's specifics. > >

Re: Shut down a Restlet server using kill?

2008-03-07 Thread John D. Mitchell
On Fri, Mar 7, 2008 at 4:45 PM, Aaron Crow <[EMAIL PROTECTED]> wrote: > Hi John, Howdy! > So as far as server app code dealing with a forced shutdown, may I ask what > you recommend for situations where there's some task running that really > should be allowed to complete? For example, would y

Re: Shut down a Restlet server using kill?

2008-03-07 Thread Aaron Crow
008 20:28 À : discuss@restlet.tigris.org Objet : Shut down a Restlet server using kill? Is it ok to shut down a Restlet server using Unix kill? What does Restlet do in this case? And does anyone have any good advice on what the application code might do to handle this event properly?

Re: Shut down a Restlet server using kill?

2008-03-07 Thread Aaron Crow
L PROTECTED]> wrote: Is it ok to shut down a Restlet server using Unix kill? Depends on your application's specifics. For example, the oldest Restlet-based production code that I have is an authentication gateway that I would just kill outright. What does Restlet do in this case? Unl

Re: Shut down a Restlet server using kill?

2008-03-07 Thread John D. Mitchell
On Thu, Mar 6, 2008 at 11:28 AM, Aaron Crow <[EMAIL PROTECTED]> wrote: > Is it ok to shut down a Restlet server using Unix kill? Depends on your application's specifics. For example, the oldest Restlet-based production code that I have is an authentication gateway that I would just

Re: Shut down a Restlet server using kill?

2008-03-07 Thread Kevin Conaway
You should just down a Restlet server like any other java application, either with QUIT on unix or Control-Break on Windows. That will allow the jvm to gracefully shutdown by running finalizers and shutdown hooks. Sincerely, Kevin Conaway On Thu, Mar 6, 2008 at 2:28 PM, Aaron Crow <[EM

RE: Shut down a Restlet server using kill?

2008-03-07 Thread Jerome Louvel
, Jerome > -Message d'origine- > De : news [mailto:[EMAIL PROTECTED] De la part de Aaron Crow > Envoyé : jeudi 6 mars 2008 20:28 > À : discuss@restlet.tigris.org > Objet : Shut down a Restlet server using kill? > > Is it ok to shut down a Restlet server usi

  1   2   >