Rudi,
ERRest is essentially a direct action. We use the following code:
protected ERXRestContext createRestContext() {
ERXRestContext result = null;
if (existingSession() != null) {
result = new
ERXRestContext(session().defaultEditingContext());
}
else {
result = new ERXRestContext(editingContext());
}
return result;
}
Michael
> On Jan 28, 2016, at 2:37 PM, Rudi Angela <[email protected]> wrote:
>
> How can I use ER-REST in combination with a Session? I have a stateful REST
> service, so I need a Session. Also I would like to use the session’s
> defaultEditing Context. A brief look at ER-REST gave me the impression that
> requests don’t use a Session and use a new EditingContext with every request.
> Any suggestions?
>
> Thanks,
>
> Rudi
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/michael%40aspireauctions.com
>
> This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]