On Mon, Apr 28, 2008 at 12:15:22PM +0200, Daniel Fernández Garrido wrote: > > Service interfaces are > not serializable (normally), and thus they should be declared as "transient" > here, and provide a way to recover the object after page serialization. >
Erm, I think you mean "service implementations". You can't serialize an interface. I don't really have a problem with an interface with both serializable (the proxy) and non-serializable (the acutal service) implementations. > And anyway, we include a static get() method in our application beans which > does the cast from Application.get(), so in fact it is: > > "MyApplication.get().getService()" This doesn't work so well for re-usable components in a library, which now have a dependency on MyApplication. jk --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
