Re: Restlet in Action. Error in the listing 9.10.

2012-05-02 Thread Sultan Kosaev
Thank you for replying. I can't extend ListNews.T he error I get from Eclipse is: The type ListNews cannot be the superclass of NewsList; a superclass must be a class My question is, how do you pass the ListT to client-side if you needed this? (Please show an example with JacksonRepresentation).

RE: Re: Restlet in Action. Error in the listing 9.10.

2012-05-02 Thread Ioannis Mavroukakis
The example is all wrong IMHO, it should look something like this ListNumber emails = (newJacksonRepresentationListNumber(rep, new ArrayListNumber())).getObject(); The point here is that the constructor is looking for an object of type T. @SuppressWarnings(unchecked) public

Re: Restlet in Action. Error in the listing 9.10.

2012-05-02 Thread Dennis Lindeman
This code works for me. http://restlet-discuss.1400322.n2.nabble.com/file/n7520180/VenueServerResource.java VenueServerResource.java http://restlet-discuss.1400322.n2.nabble.com/file/n7520180/VenuePersist.java VenuePersist.java

Re: Re: restlet problem. urgent! Please help me!

2012-05-02 Thread Thierry Boileau
Hello, when hosted by a servlet container a Restlet-based application is not started by default and not even instantiated. The first call to the servlet container allows to instantiate the application and start it. I wonder if your code makes some assumptions about the fact that the application

RE: Re: Issue with restlet 2.1-RC4 under light load

2012-05-02 Thread Ioannis Mavroukakis
Hello Thierry, I'm using the (default) simple server connector, and the soak testing is done via LoadUI, which uses Apache-HttpClient behind the scenes. Would you suggest I used the jetty connector instead? Merci, Ioannis Hello Ioannis, could you tell us what kind of client and server are