Re: java.lang.IllegalStateException: Trying to check out a session twice in one RR loop

2013-12-05 Thread Chuck Hill
Try logging out a stack trace in Application.restoreSessionWithID(). You must be doing something, this is not an easy error to produce. -- Chuck Hill Executive Managing Partner, VP Development and Technical Services Practical WebObjects - for developers who want to increase their overall know

Re: Inheritance and prefetching

2013-12-05 Thread Chuck Hill
On 2013-12-05 12:08 PM, "Alexis Tual" wrote: Hi, I have 2 single table hierarchies : - B1 inherits from B - A1 inherits from A (abstract), A1 has a to-many relationship to B, let's call it toBs is it possible to prefetch this relationship ? We can't manage to get it work, I'll paste the obscur

Re: processRecentChanges makes me sad

2013-12-05 Thread Ramsey Gurley
On Dec 4, 2013, at 2:18 AM, Hugi Thordarson wrote: > Hi all. > > I’ve been attempting to automate the setting of some common attributes in my > EOs, like creationDate, createdByUser etc. etc. Usually one might populate > attributes like that in awakeFromInsertion, but that's boilerplate I’d r

Re: processRecentChanges makes me sad

2013-12-05 Thread Henrique Prange
Hi Hugi, The problem you’re trying to solve looks like a cross cutting concern [1]. You could use an aspect-oriented framework to encapsulate this kind of logic into aspects. AspectJ [2] is probably the most popular framework in this area. If your requirements aren't too high, you can also crea

RE: ERRest security

2013-12-05 Thread Beatty, Daniel D CIV NAVAIR, 474300D
Hi Michael, Pascal is right in the fact that the web server is typically the first line of defense. That said, most of the web server's defenses include headers that you can read. I prefer things like SAML2, Grid Certificates, Kerberos, etc. This enables people better qualified to verify th

Inheritance and prefetching

2013-12-05 Thread Alexis Tual
Hi, I have 2 single table hierarchies : - B1 inherits from B - A1 inherits from A (abstract), A1 has a to-many relationship to B, let's call it toBs is it possible to prefetch this relationship ? We can't manage to get it work, I'll past the obscure exception tomorrow but can anyone confirm that

Re: processRecentChanges makes me sad

2013-12-05 Thread David Avendasora
You know, I’m about the last one to be talking about hidden code, I’ve taken to putting all kinds of stuff in the EOModel’s userInfo dictionaries that in-conjunction with my EOGen templates put all kinds of coolness in my _Entity classes. The end result is easily visible, but how the heck it go

Re: processRecentChanges makes me sad

2013-12-05 Thread Hugi Thordarson
Hi David! I don’t like surprises either (unless they’re being handed out by scantily clad censored my girlfriend)—that’s why I have the interfaces. For any modification to take place, the EOs must explicitly implement the interfaces to get the desired functionality (TimeStamped and UserStamped)

Re: processRecentChanges makes me sad

2013-12-05 Thread David Avendasora
Hey Hugi! Using notifications to add “boilerplate" functionality without needing to directly modify the EO, some superclass of the EO (via template changes, or a CustomGenericRecord) or extending the EditingContext certainly is flexible and keeps you all nicely loosely-coupled. And we all know

Re: Inheritance ERRest

2013-12-05 Thread Pascal Robert
Beside running the ERRestRouteExample app to see if anything is broken, not much other way to verify. - Mail original - De: "Henrique Prange" À: webobjects-dev@lists.apple.com Cc: "Elizio Marcelino" Envoyé: Mercredi 4 Décembre 2013 08:42:09 Objet: Re: Inheritance ERRest Hi all,

Re: ERRest security

2013-12-05 Thread Pascal Robert
Nothing special. It's just plain HTTP, so the usual stuff applies: SSL, security in Apache (mod_security or other module), Digest auth, tokens, etc. - Mail original - De: "Michael Kondratov" À: "WebObjects Development" Envoyé: Mercredi 4 Décembre 2013 21:54:43 Objet: ERRest security Do

java.lang.IllegalStateException: Trying to check out a session twice in one RR loop

2013-12-05 Thread Raymond NANEON
Hi List,I get this Exception "java.lang.IllegalStateException : Trying to check out a session twice in one RR loop " after using a specific method in my DirectAction, then close the page and go to my apps home.I don't understand what going on.Thanks for your helpEnvoyé depuis iCloud ___