Re: How to set up a stateful REST service

2016-02-04 Thread Laurence Mills-Gahl
Is this a job for Ramsey’s persistent session store framework?(ERPersistentSessionStoreage https://github.com/wocommunity/wonder/tree/master/Frameworks/Misc/ERPersistentSessionStorage) I haven’t deployed this, but I’m looking for this to simplify the distribution of REST services (with a lightw

Re: How to set up a stateful REST service

2016-01-29 Thread Henrique Prange
Hi Rudi, Having state on the server isn’t recommended for REST services. If you need state and want to keep your service scalable, try storing the session information on the client. That said, if you really want to store the session on the server, take a look at the sessionID method of the ERX

Re: How to set up a stateful REST service

2016-01-28 Thread Mark Wardle
ERRest actions are simply direct actions. You can definitely use sessions. Just call session() and it will create one. Mark > On 28 Jan 2016, at 19:37, Rudi Angela 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 wou

Re: How to set up a stateful REST service

2016-01-28 Thread Michael Kondratov
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().defau

How to set up a stateful REST service

2016-01-28 Thread Rudi Angela
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 reques