Scalable API server, with Restlet?

2010-09-23 Thread Aaron Crow
We're planning a new API server that will mainly serve JSON responses, with a RESTful interface. We're concerned about scale. Are we on the right track using Restlet with Jetty? One question we're asking is, is there anything in the Java world like Phusion Passenger? For example, an pre-built solu

Re: Nasty hanging-then-missing-content problem with entity.getText()

2008-08-08 Thread Aaron Crow
log4j deadlock in certain cases. On Fri, Aug 8, 2008 at 1:11 PM, Aaron Crow <[EMAIL PROTECTED]> wrote: It turns out that the connection problem was a symptom and not a root cause. The root cause seems to have something to do with our use of log4j... it seems to cause hanging, p

Re: Nasty hanging-then-missing-content problem with entity.getText()

2008-08-08 Thread Aaron Crow
th log4j's asyncappender to see if that's a better workaround. "Aaron Crow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] We're having a serious issue with entity.getText(), where it often hangs for a second or so, then completes but with missing content

Re: Restlet consultants available?

2008-08-07 Thread Aaron Crow
ed Noelios Technologies site, http://www.noelios.com, I bet these guys named Jerome and Thierry can help you =) Though, that makes me think, Jerome, would it be appropriate to use a Wiki page for a directory of Restlet focused firms and their capabilities? We are a growing community ...

Restlet consultants available?

2008-08-07 Thread Aaron Crow
Say I'm having specific issues with the Restlet framework that I need to work around in a short period of time. Are there folks on this list who do short-term consulting? Best wishes, Aaron

Nasty hanging-then-missing-content problem with entity.getText()

2008-08-05 Thread Aaron Crow
We're having a serious issue with entity.getText(), where it often hangs for a second or so, then completes but with missing content. We have written a proxy service which takes POST requests and hands them off to Resources attached to our REST Application. The resources generate new Request ob

Re: Multi-tiered reporting of profiling information using custom headers?

2008-08-04 Thread Aaron Crow
orService#beforeSend() and afterSend() methods. Also, we don't support trailing HTTP headers and there is no plan yet to support them in the future. Best regards, Jerome -Message d'origine- De : news [mailto:[EMAIL PROTECTED] De la part de Aaron Crow Envoyé : samedi 2 août 2

Multi-tiered reporting of profiling information using custom headers?

2008-08-01 Thread Aaron Crow
Hi Restlet Community, I'm working with a 3-tiered system, the bottom 2 tiers using Restlet. The higher Riestlet tier makes multiple requests down to the lowest Restlet tier, in order to serve a single one of its own requests. I'd like to start compiling meaningful profiling information per req

Re: Support for log4j?

2008-07-25 Thread Aaron Crow
configuration: http://wiki.restlet.org/docs_1.1/g1/13-restlet/29-restlet/98-restlet/101-restlet.html Best regards, Jerome -Message d'origine- De : news [mailto:[EMAIL PROTECTED] De la part de Aaron Crow Envoyé : jeudi 24 juillet 2008 18:37 À : discuss@restlet.tigris.org Objet : Re: Support for l

Re: Support for log4j?

2008-07-25 Thread Aaron Crow
est wishes, Aaron "Evgeny Shepelyuk" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello Aaron. Thnx for examples One small note. I will be very appreciated if u also post ur log4j config. For access logs only :) 24.07.08 в 19:36 Aaron Crow в своём письме писал

Re: Support for log4j?

2008-07-24 Thread Aaron Crow
Hi Evgeny, Sure, I will. First though, I'd like to say that I don't consider it the ideal solution. In my case I just want the Restlet's access logs, and if I can emulate those myself with my own logging statements, I'll be happier. That being said, here's what I did to redirect Restlet's JDK

Re: Support for log4j?

2008-07-23 Thread Aaron Crow
[mailto:[EMAIL PROTECTED] De la part de Aaron Crow Envoyé : mercredi 23 juillet 2008 06:38 À : discuss@restlet.tigris.org Objet : Support for log4j? I'd prefer that the Restlet framework use log4j to do access logging, and I found this from March 06 via Google: http://osdir.com/ml/java.restlet/

Support for log4j?

2008-07-22 Thread Aaron Crow
I'd prefer that the Restlet framework use log4j to do access logging, and I found this from March 06 via Google: http://osdir.com/ml/java.restlet/2006-11/msg3.html Is that still accurate? Or is there a new-and-improved method? Thanks! Aaron

Re: Supporting UTF-8?

2008-05-14 Thread Aaron Crow
iant.setCharacterSet(CharacterSet characterSet) - org.restlet.data.ClientInfo.getAcceptedCharacterSets() Best regards, Jerome -Message d'origine- De : news [mailto:[EMAIL PROTECTED] De la part de Aaron Crow Envoyé : mardi 13 mai 2008 18:24 À : discuss@restlet.tigris.org Objet : Supporting UTF-8?

Supporting UTF-8?

2008-05-13 Thread Aaron Crow
Dear Restlet friends, I'd like my server to be UTF-8 compliant, including explicit headers to indicate compliance. It's my understanding that my server should open with the header... Accept-Charset: UTF-8 ...and respond with the header: Content-Type: text/html; charset=UTF-8 How can I achieve

Re: Shut down a Restlet server using kill?

2008-03-10 Thread Aaron Crow
//wrapper.tanukisoftware.org/ It provides you an Unix daemon that you can start/stop/restart easily and many other features. We happily use it in production and it is also included in the Restlet distribution. Best regards, Jerome -Message d'origine- De : news [mailto:[EMAIL PROTEC

Re: Shut down a Restlet server using kill?

2008-03-07 Thread Aaron Crow
at you can start/stop/restart easily and many other features. We happily use it in production and it is also included in the Restlet distribution. Best regards, Jerome -Message d'origine- De : news [mailto:[EMAIL PROTECTED] De la part de Aaron Crow Envoyé : jeudi 6 mars 2

Re: Shut down a Restlet server using kill?

2008-03-07 Thread Aaron Crow
and a shutdown signal means "no new tasks allowed, and wait for running tasks to finish"? Thanks for any further insights on this! Aaron "John D. Mitchell" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On Thu, Mar 6, 2008 at 11:28 AM, Aaron Crow <[EMAI

Shut down a Restlet server using kill?

2008-03-06 Thread Aaron Crow
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: Issue 428 ("POST seems to throw a 500 error code")

2008-03-06 Thread Aaron Crow
Hi Jerome, Thanks! This worked for me (got rid of the Stream Closed INFOs on every request): org.restlet.Component.level=WARNING Currently using 1.0.7. Will consider upgrading. Yes, I think the organization of the Logger could be better in this case. Just thinking that it seemed very natural

Re: Issue 428 (a.k.a. simple framework logs stock trace on every request)

2008-03-05 Thread Aaron Crow
Apologies, forgot to supply a convenient link to the issue: http://restlet.tigris.org/issues/show_bug.cgi?id=428 "Aaron Crow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Is there a good way to squelch just this log output? I've tried pointing Java Loggin

Issue 428 ("POST seems to throw a 500 error code")

2008-03-05 Thread Aaron Crow
Is there a good way to squelch just this log output? I've tried pointing Java Logging to a logging.config file with entries like this: com.noelios.restlet.ext.simple.level=SEVERE simple.level=SEVERE com.noelios.restlet.ext.simple.SimpleProtocolHandler.level=SEVERE But that does not do the trick

Re: Understanding Restlet's Threading Model?

2008-03-04 Thread Aaron Crow
hreads is very dependent on the HTTP/HTTPS connector/server in use. Restlet, as far as I know, does not do anything to attenuate the native behavior of the server with regard to creating threads for incoming network connections. Which server environment were you looking at when you tested? On Mon

Re: Understanding Restlet's Threading Model?

2008-03-04 Thread Aaron Crow
regard to creating threads for incoming network connections. Which server environment were you looking at when you tested? On Mon, Mar 3, 2008 at 2:43 PM, Aaron Crow <[EMAIL PROTECTED]> wrote: I'd like to understand the threading model used by my basic Restlet app. I have a sta

Understanding Restlet's Threading Model?

2008-03-03 Thread Aaron Crow
I'd like to understand the threading model used by my basic Restlet app. I have a standalone app that uses Application and Component, and attaches subclasses of Restlet to the router. I am using the reference implementation provided by noelios. (Many, many thanks to Jerome for all of this!) So

Scalable handling of multiple outbound requests?

2008-02-17 Thread Aaron Crow
Dear Restlet Community, I've recently become a very happy user of Restlet as both a client and a server. Specifically, I was delighted to see how easy to was to receive a RESTful request and turn around and pass it along to another RESTful service. At first I was thinking I'd need to use someth