Article on integrating Maven + Spring + Restlet

2010-11-10 Thread Jim Alateras
I have together a small document on how to bootstrap a web service project using these components. http://wiki.restlet.org/docs_2.0/13-restlet/21-restlet/192-restlet/381-restlet.html All feedback is welcome cheers /jima --

Re: Forwarding all requests

2010-11-03 Thread Jim Alateras
-Message d'origine- De : Jim Alateras [mailto:j...@comware.com.au] Envoyé : mercredi 3 novembre 2010 04:06 À : discuss@restlet.tigris.org Objet : Re: Forwarding all requests Jerome, Had a look at the javadoc but couldn't really see how it would work in my scenario. In my

Forwarding all requests

2010-11-02 Thread Jim Alateras
Just wondering whether there is a Guard or Filter that comes with the restlet framework that will allow me to forward the original request to another server after it has been processed by the application. cheers /jima --

Re: Forwarding all requests

2010-11-02 Thread Jim Alateras
Lead ~ http://www.restlet.o​rg Noelios Technologies ~ http://www.noelios.com -Message d'origine- De : Jim Alateras [mailto:j...@comware.com.au] Envoyé : mardi 2 novembre 2010 20:59 À : discuss@restlet.tigris.org Objet : Forwarding all requests Just wondering whether

Getting 2.0.1 jars from a maven repository

2010-10-20 Thread Jim Alateras
Apologies if this has already been asked but is there a maven repository that is hosting v2.0.1 restlet libraries? cheers /jima -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2673736

Fwd: Trouble with ServerServlet

2010-04-06 Thread Jim Alateras
Jerome, I was wondering whether this change is on the 1.1.9 branch. I can see that Application.start is called when ServerServlet.init is called but cannot see the Application.stop is being called when ServerServlet.destroy is called. cheers /jima Begin forwarded message: From:

Re: Trouble with ServerServlet

2010-04-06 Thread Jim Alateras
Thanks Thierry, thought that may be the case. cheers /jima On 06/04/2010, at 8:05 PM, Thierry Boileau wrote: Hello Jim, this is a good question. Actually, we were quite reluctant to update the 1.1 branch, since it can modify the behaviour of existing applications. Thus, the 1.1

Re: Building GAE version of restlet

2009-12-17 Thread Jim Alateras
Hi Jim, it seems that the Spring engine is confused because there are 2 setAttachments methods declared in the class. However, as they don't have the same parameters, this should not be a problem. agreedquite surprised that i'm getting this error cheers /jima

Re: Building GAE version of restlet

2009-12-16 Thread Jim Alateras
Excellent Thierry all works as described. Managed to deploy a GAE application based on Spring + Restlet. I am seeing one warning message during startup (see below) but everything else is working as expected. Dec 16, 2009 9:37:15 AM

Re: Asynchronous Request Processing

2009-12-13 Thread Jim Alateras
Jerome, I'm also interested in this feature and look forward to having a play with it next week. cheers /jima On 14/12/2009, at 4:02 AM, Jerome Louvel wrote: Hi Charlie, Good timing, I have been intensively working on this feature this week and getting close to have a new default

Re: GAE + Restlet + Spring

2009-12-12 Thread Jim Alateras
Hi Jim, Is there any reason why it's missing? Is it incompatible with GAE? not at all... Thanks a lot for your report, the SpringServerServlet is now part of the gae edition! thanks Thierry, where can i download it from? cheers /jima

GAE + Restlet + Spring

2009-12-10 Thread Jim Alateras
Hey All, Started working with GAE + Restlet by following instructions on the wiki (http://wiki.restlet.org/docs_2.0/13-restlet/275-restlet/252-restlet.html ). I downloaded the gae enabled version of the restlet framework and everything worked as outlined in the article. I now want to extend

Re: Building 1.1.6 with maven and ant

2009-10-29 Thread Jim Alateras
~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com Jim Alateras a écrit : I am having issues building the 1.1.6 version of the distribution using the instructions on the developer's wiki (http://wiki.restlet.org/developers/179-restlet/240-restlet.html ). The maven

Re: http connection timeout and version 1.1.6

2009-10-29 Thread Jim Alateras
Technologies ~ Co-founder ~ http://www.noelios.com -Message d'origine- De : Jim Alateras [mailto:j...@comware.com.au] Envoyé : jeudi 29 octobre 2009 05:01 À : discuss@restlet.tigris.org Objet : Re: http connection timeout and version 1.1.6 Thanks Jerome for getting back to me. I

ant stage-maven-2 is not working...

2009-10-29 Thread Jim Alateras
do i need to enable something in build.properties to get this going? cheers /jima -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2412551

Re: ant stage-maven-2 is not working...

2009-10-29 Thread Jim Alateras
my bad should've looked in build.properties # Indicates if the Maven distribution should be regenerated. maven: true cheers /jima On 29/10/2009, at 10:01 PM, Jim Alateras wrote: do i need to enable something in build.properties to get this going? cheers /jima

Re: UrlConneciton based HTTP client tiimeouts

2009-10-29 Thread Jim Alateras
I have just fixed this issue in SVN 1.1 branch as well. Please try again when 1.1.7 is released or try to build locally meanwhile. apologies for the piecemeal emails but can you tell me when you reckon 1.1.7 will be available? --

Deploying local staged repository to remote maven repository

2009-10-29 Thread Jim Alateras
Gents, What do you guys use to copy the stages files generated from ant stage- maven-2 to a remote maven2 repository. cheers /jima -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2412585

SEVERE: don't pass the component context to child Restlets anymore

2009-10-29 Thread Jim Alateras
Gents, I am using the latest on 1.1 branch and am getting a whole lot of SEVERE errors. while running my test cases but they seem to be benign. SEVERE: For security reasons, don't pass the component context to child Restlets anymore. Use the Context#createChildContext() method

Re: http connection timeout and version 1.1.6

2009-10-28 Thread Jim Alateras
the customized helper in the engine or use it when creating the Client instance. Hope it will help! Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com Jim Alateras a écrit : Jerome, I

Re: UrlConneciton based HTTP client tiimeouts

2009-10-28 Thread Jim Alateras
Technologies ~ Co-founder ~ http://www.noelios.com -Message d'origine- De : Jim Alateras [mailto:j...@comware.com.au] Envoyé : jeudi 15 octobre 2009 12:57 À : discuss@restlet.tigris.org Objet : Re: UrlConneciton based HTTP client tiimeouts We are using 1.1-M4 release when we stumbled

http connection timeout and version 1.1.6

2009-10-19 Thread Jim Alateras
Jerome, I notice that there seems to be a patch for the http timeout connection problem some people are experiencing (http://restlet.tigris.org/issues/show_bug.cgi?id=622 ). Will this patch also be applied to the 1.1 branch? If not can you point me to the patch submitted by Sanjay. cheers

Building 1.1.6 with maven and ant

2009-10-19 Thread Jim Alateras
I am having issues building the 1.1.6 version of the distribution using the instructions on the developer's wiki (http://wiki.restlet.org/developers/179-restlet/240-restlet.html ). The maven build instructions don't seem quite right and the the ant build gives the following error

Re: UrlConneciton based HTTP client tiimeouts

2009-10-15 Thread Jim Alateras
We are using 1.1-M4 release when we stumbled across what seems to be a similar problem (stack trace below). The thread basically blocks indefinitely. If it is the same problem is there a fix for the v1.1.6. We are currently in the process of upgrading to the latest stable 1.1.X version.

Re: SpringBeanRouter

2009-04-14 Thread Jim Alateras
Rhett, Thanks for the quick turnaround and suggestions On 14/04/2009, at 2:19 PM, Rhett Sutphin wrote: Hi Jim, On Apr 13, 2009, at 7:56 PM, Jim Alateras wrote: I am currently using s custom class to attach routes to a router but am now looking at using the SpringBeanRouter but have

Re: Serving static content with the CLAP connector

2009-04-13 Thread Jim Alateras
d'origine- De : Jim Alateras [mailto:j...@comware.com.au] Envoyé : jeudi 2 avril 2009 00:07 À : discuss@restlet.tigris.org Objet : Re: Serving static content with the CLAP connector I have also tried adding the following context parameter to my web.xml but am still getting '404' context

SpringBeanRouter

2009-04-13 Thread Jim Alateras
I am currently using s custom class to attach routes to a router but am now looking at using the SpringBeanRouter but have a couple of questions. 1. In the example below if i also want to support the a query string would i change the bean name to /studies?{query} 2. How do i specify a

Re: Serving static content with the CLAP connector

2009-04-01 Thread Jim Alateras
com.noelios.restlet.component.ComponentHelper checkVirtualHost SEVERE: Unable to start the application null. Client connector for protocol CLAP is missing. Apr 2, 2009 7:29:37 AM com.noelios.restlet.ChainHelper handle On 01/04/2009, at 9:36 PM, Jim Alateras wrote: I am using 1.1.3 and am having an issue using the CLAP connector

Re: Serving static content with the CLAP connector

2009-04-01 Thread Jim Alateras
I have also tried adding the following context parameter to my web.xml but am still getting '404' context-param param-nameorg.restlet.clients/param-name param-valueHTTP HTTPS CLAP FILE/param-value /context-param On 02/04/2009, at 7:32 AM, Jim Alateras wrote: Abit more

Is org.restlet.Client thread safe?

2009-03-15 Thread Jim Alateras
cheers /jima -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=1328959

Using the entity in a Filter

2008-08-27 Thread Jim Alateras
Hi, I need to use the entity of a response to generate a digital signature in a filter before it is passed to the Router. AFAIK you can only call response.getEntity().getText() once. Is there way to do this from the Request object. cheers /jima

restlet and comert

2008-06-04 Thread Jim Alateras
Just wondering whether the restlet framework supports/intends to support comet style interaction with a server cheers /jima

Re: PUT and entity

2008-05-28 Thread Jim Alateras
/2008, at 12:37 PM, Rhett Sutphin wrote: Hi Jim, On May 26, 2008, at 7:09 PM, Jim Alateras wrote: Any reason why, i nthe restlet framework, a PUT expects to have an entity. When i issue a PUT with an empty entity i get a 400 response. Last time you asked this question ( http

PUT requires an entity

2008-05-08 Thread Jim Alateras
I've noticed that if i do a PUT to a resource with an empty entity I get a BAD_REQUEST status code. Is it part of the HTTP spec that the PUT must contain a non-null entity. cheers /jima

Fwd: ACCEPT header in the restlet Request object.

2008-04-17 Thread Jim Alateras
I also sent this message about accept header yesterday and itt seems that setting the ACCEPT header through the retlet HTTPRequest object doesn't seem to work cheers /jima Begin forwarded message: From: Jim Alateras [EMAIL PROTECTED] Date: 17 April 2008 10:20:18 PM To: discuss

Re: changing the router's route list

2008-03-19 Thread Jim Alateras
Thierry Boileau wrote: Hello Jim, I've made some tests that I suspect to be too simple. I've just added a public updateRoute method on my application which I call between 2 loops of client calls, but I am not able to reproduce your case. will put something together. What method on Router

Re: advice on creating and destroying applications

2008-03-12 Thread Jim Alateras
Thanks Jerome. BTW, the stop() method wasn't doing any clean-up. I just fixed this in SVN trunk. cool will check out and build In your case, you want to replace an initial application by another one later on. I suggest that you attach to new application on the component's virtual host, taking

advice on creating and destroying applications

2008-03-11 Thread Jim Alateras
Hi, What is the correct way to start, stop and destroy applications. I am doing the following at the moment class Application1 extends Application {...} class Application2 extends Application {...} // start a minimal version of the applicaton while i do some stuff // i.e. migration etc

calling setRoot

2008-03-11 Thread Jim Alateras
Once i do Application.setRoot(...) do i need to do anything else for it to take effect. cheers /jima

Re: setting the location header

2008-02-28 Thread Jim Alateras
handles a reference with a relative part equals to /exchange. best regards, Thierry Boileau On Wed, Feb 27, 2008 at 8:49 PM, Jim Alateras [EMAIL PROTECTED] wrote: Thierry, Just some additional info. I am getting this error in a test case scenario so I may not be priming the 'request' with all

Adding context info to a request

2007-11-01 Thread Jim Alateras
If i want to add context information to a request as it is processed by the different filters and guards should i use request.getAttributes().put(key, value) cheers /jima

Re: EncodeRepresentation.write leaving blocked threads around?

2007-10-17 Thread Jim Alateras
Jerome Louvel wrote: Hi Matthew, None of this is code we are writing, its all internal to Restlet, all we are doing is calling EncodeRepresentation.getText() and that method call causes all the other stuff to happen. I can't see how our code has any impact on the closing of the stream and

Re: EncodeRepresentation.write leaving blocked threads around?

2007-10-17 Thread Jim Alateras
Tim Peierls wrote: On 10/17/07, *Jerome Louvel* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: In terms of end to end functionality, our use of GZip encoding works fine and the encoded representations make it from client to server OK, so the concern is simply that

threads blocking on EncodeRepresentation

2007-10-16 Thread Jim Alateras
Hi, I am getting a whole lot of blocked threads when using the EncodeRepresentation class (shown below). Has anyone else experience such a problem Daemon Thread [Thread-108] (Suspended) Unsafe.park(boolean, long) line: not available [native method] LockSupport.park()

Re: EncodeRepresentation.write leaving blocked threads around?

2007-10-16 Thread Jim Alateras
); } } On 16/10/2007, at 11:05 PM, Tim Peierls wrote: In this case, as with a subsequent message from Jim Alateras, the problem appears to be that the representation size exceeds the capacity of the underlying pipe (1024), and no one is reading from the input stream side of the pipe. But who made

DecodeRepresentation.getSize returns -1

2007-10-10 Thread Jim Alateras
Hi, When I attempt to get the encoded size of a representation (i.e. from DecodeRepresentation) I get a value of -1. How can I retrieve the size of the representation, before it is decoded? cheers /jima

Re: problems using gzip encoding

2007-10-09 Thread Jim Alateras
? cheers /jima Jim Alateras wrote: I am trying use gzip for all my representations and use the tunnel filter, on the application, to automatically decode the body before passing it to the router. This how i encode the rep new EncodeRepresentation(Encoding.GZIP, new StringRepresentation

Re: problems using gzip encoding

2007-10-09 Thread Jim Alateras
), you have to turn off the decoderService on your application. * Note that in the future, we'd like to add a encoderService: http://restlet.tigris.org/issues/show_bug.cgi?id=208 Best regards, Jerome -Message d'origine- De : Jim Alateras [mailto:[EMAIL PROTECTED] Envoyé : mardi 9

problems using gzip encoding

2007-10-08 Thread Jim Alateras
I am trying use gzip for all my representations and use the tunnel filter, on the application, to automatically decode the body before passing it to the router. This how i encode the rep new EncodeRepresentation(Encoding.GZIP, new StringRepresentation(getXStream().toXML(records),

Re: setting the location header

2007-09-06 Thread Jim Alateras
response.setStatus(Status.SUCCESS_CREATED); response.setLocationRef(yourCreatedURIString); Is the setLocationRef method part of 1.0.5 release? cheers /jima

setting the location header

2007-09-05 Thread Jim Alateras
I was trying to find how to manipulate http headers (standard or extension) from a Resource class. I can't seem to get access to the headers through the Response class. My initial use case is setting the Location header on completion of a post Any ideas? cheers /jima

Re: Atom Support

2007-07-31 Thread Jim Alateras
Alex/Jerome, I am also interested in incorporated APP client and server capabilities in our application. I have a couple of questions more so for Alex than Jerome. 1. From the little I've read on atomojo there seems to be a database dependency on the component. Is this still the case? 2.

Re: GET method and Query String

2007-06-06 Thread Jim Alateras
Stian Soiland wrote: On 6 Jun 2007, at 10:46, Jim Alateras wrote: I am not so sure of this.. in particular using /2003-03-03/2005-05-50 as it implies an hierarchy where there is something at /2003-03-03. If you go for this approach, use , to separate the two dates as they are tied together

GET method and Query String

2007-06-04 Thread Jim Alateras
I am interested in hearing how people use the query string to constrain a GET. For instance if i want to get a list of cars registered between 03/2000 and 09/2006 /cars?registeredDate$from=03-2000registeredDate$to=09-2006 /cars?registeredDate!from=03-2000registeredDate!to=09-2006

Re: Problem with org.restlet.Client

2007-06-02 Thread Jim Alateras
The offending code has been fixed in HttpClientHelper like this: try { HttpClientCall httpCall = getConverter().toSpecific(this, request); getConverter().commit(httpCall, request, response); } catch (Exception e) { getLogger().log(Level.INFO,

Re: Can I call my Restlet classes without a Web container?

2007-05-31 Thread Jim Alateras
I've done the same but test through the the Router since i'm also interested that the request gets routed to the appropriate resource. Some of my resources talk to a DAO so i am thinking of using something like EasyMock [1] to isolate my resource testing. cheers /jima [1]

Re: Please Don't Eat Exceptions

2007-05-31 Thread Jim Alateras
. I want to see these in my own code so that I can do what's appropriate with the exception. Adam Jim Alateras wrote: Adam, I came across the same problem and I believe the problem is more around not setting the response status code on failure. cheers /jima Adam Taft wrote: Here's a test

Re: URI matching question

2007-05-31 Thread Jim Alateras
Thierry, It works nicely. I create a couple of routes for each resource. Does it make sense to move some of this back to the core. cheers /jima Jim Alateras wrote: cool, i'll give it a go today. cheers /jima Thierry Boileau wrote: Hi Jim, as a workaround, you can define 2 routes like

Re: URI matching question

2007-05-30 Thread Jim Alateras
/show_bug.cgi?id=314 Best regards, Jerome -Message d'origine- De : Jim Alateras [mailto:[EMAIL PROTECTED] Envoyé : lundi 28 mai 2007 15:15 À : discuss@restlet.tigris.org Objet : URI matching question I have a restlet application with a single resource mapped to /version. I deploy

Re: Please Don't Eat Exceptions

2007-05-30 Thread Jim Alateras
do what's appropriate with the exception. Adam Jim Alateras wrote: Adam, I came across the same problem and I believe the problem is more around not setting the response status code on failure. cheers /jima Adam Taft wrote: Here's a test case to look at... public class TestClass

Problem with org.restlet.Client

2007-05-28 Thread Jim Alateras
Hi, I seem to have stumbled across a problem with Client. I am using the following code to talk to my restlet application Client client = new Client(Protocol.HTTP); Response response = client.post(url, objrep); logger.info(The response from the post is +

Re: Content type via URL parameters?

2007-05-28 Thread Jim Alateras
This is much cleaner than what I have done, which was simply to create an instance of an Application class in the FrameworkServletinitFrameworkServlet method and then to set the application as the target of the converter in the doService method. init = application = new MyApplication(

Re: Please Don't Eat Exceptions

2007-05-28 Thread Jim Alateras
Adam, I came across the same problem and I believe the problem is more around not setting the response status code on failure. cheers /jima Adam Taft wrote: Here's a test case to look at... public class TestClass { public static void main(String[] args) { try {

Re: Content type via URL parameters?

2007-05-28 Thread Jim Alateras
Irfan/Thierry, I was just wondering whether you could explain why start() is always called in the RestApplication.handle method, which is shown below. try { start(); } catch (Exception ee) { ee.printStackTrace(); } super.handle(request, response); cheers /jima Jim Alateras wrote

Re: Problem with org.restlet.Client

2007-05-28 Thread Jim Alateras
Adam Taft wrote: The biggest concern for me is that IOException is being eaten in the client. So, for example, an illegal url or a host not found error is being trapped, logged and then no other error is being thrown. Yuck. There's no appropriate status code which can model a host not

Resource to Representation routing

2007-05-17 Thread Jim Alateras
At the moment I have a log of this type of code in my Resource class if (entity.getMediaType().equals(MediaType.APPLICATION_GNU_ZIP)) { } else if (entity.getMediaType().equals(MediaType.APPLICATION_JAVA_OBJECT)) { } else { } Just wondering whether there is any utility or class that will

using org.restlet.Client

2007-05-17 Thread Jim Alateras
Can I use one instance of org.restlet.Client across multiple (possible concurrent) requests. (i.e. is it thread-safe). cheers /jima

Re: using org.restlet.Client

2007-05-17 Thread Jim Alateras
Jerome Louvel wrote: Hi Jim, Client connectors are intended to be shared by multiple applications and multiple concurrent requests. As a consequence, they are thread safe. Jerome, I am getting deadlocks when sharing the Client across multiple requests. Haven't had time to resolve but it seems

using the AWS authentication schemes

2007-05-14 Thread Jim Alateras
Are there any links to using the Amazon Web Services authentication schemes. cheers /jima

Working with encoded object representations

2007-04-17 Thread Jim Alateras
I am able to use the client side code to post a gzip representation of a resource. Fundamentally, it is an ObjectRepresentation wrapped in an EncodeRepresentation. This all seems to work fine and gets routed to the correct resource on my server. I am currently trying to find how to handle the

Re: Restlet 1.0.0 released!

2007-04-16 Thread Jim Alateras
great work guys.. cheers /jima Jerome Louvel wrote: Hi all, After 16 months of intense prototyping, refactoring and bug fixing, we finally decided to release the final 1.0 version this morning!! I am very grateful for all the feed-back, support and contributions made by this community. The

a gzip representation

2007-04-12 Thread Jim Alateras
I was looking for some guidance on how i would package a gzipped java serialized object. Do I need to extend ObjectRepresentation class and use content type application/gzip or is there some way I can use the ObjectRepresentation class with some form of encoding. cheers /jima

Re: a gzip representation

2007-04-12 Thread Jim Alateras
Jerome Louvel wrote: Hi Jim, You can have a look at the com.noelios.restlet.application.EncodeRepresentation class. So i can use it to wrap an ObjectRepresentation. Will the Encoding i pass across to it override the HTTP content-type header (i.e. if the encoding is set to gzip then the

Re: spring and restlet

2007-03-28 Thread Jim Alateras
current.zip? I have updated it after my initial reply to you to fix a couple of issues. In any case, I have attached my test files. Best regards, Jerome -Message d'origine- De : Jim Alateras [mailto:[EMAIL PROTECTED] Envoyé : mercredi 28 mars 2007 05:52 À : discuss@restlet.tigris.org

Resources and Representation

2007-03-27 Thread Jim Alateras
Hi, I have some questions on the relationship between Resources and Representations. 1. Is there a mechanism to register Representations for a Resource 2. Is there a mechanism where a Representation is resolved for a specific Resource, given a mediaType or do we need to code for this in

Re: spring and restlet

2007-03-27 Thread Jim Alateras
, you can either get the latest from SVN or get this current.zip: http://www.restlet.org/downloads/1.0/current.zip Best regards, Jerome -Message d'origine- De : Jim Alateras [mailto:[EMAIL PROTECTED] Envoyé : lundi 26 mars 2007 13:24 À : discuss@restlet.tigris.org Cc : [EMAIL PROTECTED

Re: spring and restlet

2007-03-27 Thread Jim Alateras
, Jerome -Message d'origine- De : Jim Alateras [mailto:[EMAIL PROTECTED] Envoyé : lundi 26 mars 2007 13:24 À : discuss@restlet.tigris.org Cc : [EMAIL PROTECTED] Objet : Re: spring and restlet Jerome, Thxs, this is great. I have a few more comments\questions inline Jerome Louvel wrote: 3