RE: Re: SpringBeanRouter issues

2009-01-09 Thread postmaster
>>I haven't run into this because I tend to isolate any logic that needs to be transactional in a single call in the service layer. However, I can't think of a reason why it couldn't be made to work. - Normally I don't use transaction interceptor on resource/action too, but how about secur

RE: Re: return from acceptRepresentation

2009-01-09 Thread Kat Kat
Well, thank you. I did get the part of getResponse() and then setEntity by the time I looked at your comment. Although in setEntity I could only use StringRepresentation and otherwise something like DomRepresentation failed. Basically after I do POST I want to return some info in XML and conten

RE: Re: SpringBeanRouter issues

2009-01-09 Thread postmaster
I think you can make SpringBeanRouter implement ApplicationContextAware. I made it this way, the AOP interceptor successfully executed. I changed very little to your SpringBeanRouter and SpringBeanFinder: SpringBeanRouter: make it ApplicationContextAware, and holds an ApplicationContext. Each t

RE: Re: Restlet 1.1-RC1 in OSGi

2009-01-09 Thread postmaster
Hi Michael: Thanks for your help, but it didn't make any difference. I always get the "java.lang.ClassNotFoundException: com.noelios.restlet.http.HttpServerConverter" when I make any HTTP GET request to the standalone server. It happens with both Knopflerfish and Equinox. I am using version 1.1

Re: Re: return from acceptRepresentation

2009-01-09 Thread Stephen Groucutt
Have you tried the version of setEntity that has a MediaType as its second argument? That should allow you to specify the content type you want to return. In our project, we use the version of setEntity() that accepts a String and a MediaType for purposes of returning XML data, and it seems to wo

Re: Strange Behaviour in test cases

2009-01-09 Thread Stephan Koops
Hi Dom, is your test class short and easy to understand? Could you post it to the mailing list? best regards Stephan Dom Farr schrieb: > In my test cases (JUnit 4), I'm using Restlet's Server class, passing in a > Restlet object with an overriden handle method so I can control the > respon

Re: *SPAM(1.1)* RE: Re: return from acceptRepresentation

2009-01-09 Thread Thierry Boileau
Hi Kat Kat, what kind of problems are you experiencing with the DomRepresentation? best regards, Thierry Boileau > Well, thank you. I did get the part of getResponse() and then setEntity by > the time I looked at your comment. > > Although in setEntity I could only use StringRepresentation and

Patch to parameterize port numbers in JUnit tests

2009-01-09 Thread Raif S. Naffah
hello there, the JUnit tests (in org.restlet.test) have hard-wired port numbers which may not suit every developer's environment. this patch introduces a new property in the main build.xml, and injects at as a system environment variable. when more than one port is required, the property valu