Eelco, I realized that you are recommending using Spring or looking up the
bean on the fly some other way but I am working for a place where Spring is
not part of the "approved" stack and they have an established way that
access to EJB's is coded. I am a contracter here and I have to do things
exactly how it has been established by the architecture team. I will forward
your comments to them so that they can see the advantage of your approach,I
am sure they will be interested in the suggestion. 


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#a11010404
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