Monday, November 19, 2007

Seam Tip Number 4

Seam Tip Number 4 : @In(required = false) pitfall

In retrospect this is really obvious, but a member variable annotated with @In will be overwritten in subsequent invocations of a Stateful Session Bean even with a "required = false" on the annotation.

I had assumed that the "required = false" would prevent the variable from being injected if it wasn't present, but that isn't the case.

Blogged with Flock

No comments: