Thanks so much Eelco! Your reply is exactly what i was looking for! We are
using JDK 1.4 so I cannot use annotations but the other thing would work. 
Johan, I don't think you understand what the unserializable object is. My
remote EJB is serializable by definition. However, the object I am having
issues is an internally generated rmi stub created by WebLogic. This object
was not created by me, I have no control over it and should not even be
aware of what the exact implementation of this stub is since this is all
handled behind the scenes by WebLogic is but it became an issue because in
debug mode wicket tries to serialize it. 


Eelco Hillenius wrote:
> 
>> It's not a case of an unknown reference causing the not serializable
>> exception. I know which object is not serializable and it is the concrete
>> proxy object created by WebLogic for my remote EJB. I ended up checking
>> if I
>> was in development mode and then using a transient variable and then
>> using a
>> another variable which is not transient when the app is running in a
>> production environment. I was hesitant to simply mark the EJB as
>> transient
>> in case it caused issues in the production environment. Thanks all for
>> your
>> replies, they helped confirm that there wasn't a workaround other than
>> marking it transient.
> 
> But there is. You can turn the check off, even for development mode.
> See IDebugSettings#setSerializeSessionAttributes[1]
> 
> What you probably want in the end though, is a construct like
> @SpringBean or just look the bean up right at the moment you need it
> without holding the reference.
> 
> Eelco
> 
> [1]
> http://wicket.sourceforge.net/apidocs/wicket/settings/IDebugSettings.html
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wicket-1.2.6-Development-mode-serialization-checks-and-remote-EJB%27s-tf3866878.html#a11010152
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to