On Thu, Nov 27, 2008 at 4:44 AM, Arie Fishler <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have some injection related issues in my wicket application.
>
> 1. My session hold a bean (managed by the spring container) that is passed
> to it on construction of the session. It is not a Serializable object (some
> of the interfaces that this object is using are spring interfaces and not
> serializable by themselves) and in any case I would not like this object to
> be serialized by wicket.
>
> This object is not injected directly to the session since it depends on some
> parameters provided in the http request.
>
> Will it be ok to plug into the session's deserializing method and get this
> object not to be null?

session cannot keep anything that is not serializable - that is the
http spec. what you should do is stick the object into some
application-bound map and store the key in session (clustering wont
work).
>
> 2. My authentication uses a proprietary User  class that uses AOP with the
> @Configurable annotation. After invalidating the session (user loggs out)
> any other user trying to login seems to run into problems that are caused
> from the fact that it seems AOP is not working anymore on this class and the
> objects supposed to be injected into it are not injected anymore. When I
> restart my wicket application (on tomcat) after clearing the tomcat saved
> caches...all seems to be ok....until the next time. What might cause spring
> to stop injecting the objects using AOP?

wicket is not involved with @configurable, you should ask on spring forums

-igor

>
> Thanks,
> Arie
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to