Sorry, I got no time to write a full fledged unit test class, I simply
submitted a ticket in your backlog :-)
http://restlet.tigris.org/issues/show_bug.cgi?id=735
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=1184490
Hi Peter,
I recently encountered this problem myself. I ended up creating a
Representation wrapper that would close my EM after the call to write.
The code [1] is part of restlet-jpa [2].
Regards,
Michael.
[1] -
Hello,
We need to do further tests to see how we can tune this... I've entered a
report:
Improve performance of WAR client
http://restlet.tigris.org/issues/show_bug.cgi?id=736
Could you add comments if necessary and, ideally, attach a small reproducible
example to the issue. A patch would be
Hi Satyendra,
This is because client-side Restlet doesn't support multi-part yet. This is
planned for Restlet 1.2 though:
Support composite representations
http://restlet.tigris.org/issues/show_bug.cgi?id=71
For now, I would suggest to use Apache HTTP client directly:
Hi Rhett,
It looks like a good/simple enhancement to me as well. I would suggest to
directly update SVN trunk in this case?
If you copy paste the code snippet, we need Daniel to send a signed JCA... As
it is quite straightforward, I would suggest coding
the logic yourself again from scratch.
Hi Paul,
Good suggestion. The enhancement is in SVN trunk!
Let me know if it works as expected.
Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org/
http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com
Hi again,
I missed that email... Forget about my previous email!
Thanks Daniel for taking the time to create the RFE.
Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com
-Message
Hi guys,
This is such a hook available. See the ConnectorService#afterSend method:
http://www.restlet.org/documentation/snapshot/api/org/restlet/service/ConnectorService.html#afterSend(org.restlet.resource.Represent
ation)
Hope this helps!
Best regards,
Jerome Louvel
--
Restlet ~ Founder and
Below is my solution which is based on a similar ServletFilter from the
SpringFramework. You will need to set the entityManagerFactory before using
this. I normall have that configured in spring and get a reference to this
filter bean from the context.
package com.revolsys.restlet;
import
On Wed, Feb 18, 2009 at 12:09 PM, Jerome Louvel
jerome.lou...@noelios.comwrote:
Did you have a chance to check the updated resource API design?
http://wiki.restlet.org/developers/172-restlet/226-restlet.html
It looks good to me. My only concern is that in the attempt to be consistent
with
Thanks Jerome! That will be a much neater solution.
On Thu, Feb 19, 2009 at 1:15 AM, Jerome Louvel
jerome.lou...@noelios.com wrote:
Hi guys,
This is such a hook available. See the ConnectorService#afterSend method:
I have a bit of code that processes a multipart/form-data form. I'm
sending a test request using curl, e.g.:
curl -v -F from=paul%40lucasmail.org http://localhost:8182/foo;
I have code that parses the form that starts off with:
final MediaType mediaType =
Paul,
correct me if I am wrong, but I believe your solution suffers from the same
problem as mine: if there is still data to fetch during the processing of a
representation object (as it happens on the write(..) method of the
TemplateRepresentation of the Freemarker extension), then you will
Thanks Jerome,
that was what I was looking for. I just replaced the type and the
afterHandle with afterSend and it seems all works as I wanted.
For the record: it gets attached on the Application instance via
setConnectorService(..) -- didn't take too long to find, but it might be a
good
I am having the same problem. Does any one know of the solution?
Hi all,
I hope to find time this week.
best regards,
Thierry Boileau
I very, very seldom use Windows, but Jerome and Thierry do, so I'm
sure he's used the sample there -- I think he updated it most recently.
I
Hi Peter,
I've updated the Javadocs as suggested!
Cheers,
Jerome
-Message d'origine-
De : news [mailto:n...@ger.gmane.org] De la part de Peter Becker
Envoye : jeudi 19 fevrier 2009 02:47
A : discuss@restlet.tigris.org
Objet : RE: Managing a JPA/Hibernate session
Thanks Jerome,
that
16 matches
Mail list logo