Re: Removing Serializability
[email protected] Thu, 19 Feb 2009 10:18:52 +1000
| Newsgroups | gmane.comp.java.orm.simpleorm |
|---|---|
| Message-ID | <[email protected]> |
Hello Damien, I would doubt that Tomcat tries to serialize session rather than just leaving it in memory, at least in the normal case. But it should work if it did. Sorry, but I do not understand the following at all:- >Now, after removing seriability I had other error. I think we should put >all the Sorm meta transient in our SRecordInstance >as they are not serializable yet. We've got a lot a SRecordInstance ! >... I may try on the one that raise error in console first. The only link from an SRecordInstance to its SRecordMeta should be via getMeta() and that is normally implemented to refer to a static and so is not serialized. So we use the normal Java class loader mechanism to avoid duplicating SRecordMeta information. So what exactly is your "other error"? Is it an error that arises because the interfaces are commented out? Thanks, Anthony At 12:13 AM 18/02/2009, you wrote: >I removed seriability on the meta, and it doesn't break our application. >But we don't directly use >serialization. Last year (or even before), a colleague try it without >success. >As in the team nobody is comfortable with serialization we decided not >to use it ! >We though we had missed something but we didn't know what, we though >SORM was OK but our code not ! > >But I use Tomcat to run our application. Tomcat tries to serialize >session and >we sometimes put SRecordInstance in Session (not directly, but >SRecordInstance are finally serialized). > >I never saw such a deserialization working... > >Now, after removing seriability I had other error. I think we should put >all the Sorm meta transient in our SRecordInstance >as they are not serializable yet. We've got a lot a SRecordInstance ! >... I may try on the one that raise error in console first. > >I hope I helped ... ! > >Damien > ><mailto:anthony%40berglas.org>[email protected] a écrit : >> >> Hello All, >> >> I just removed "implements Serializable" from both SRecordMeta and >> SFieldMeta. As expected, all the unit tests passed. >> >> I strongly suspect that we should just remove them period. >> >> Could people please try this quick experiment. Just comment them out >> and see if anything breaks (and why). >> >> Anthony >> >> Dr Anthony Berglas, <mailto:anthony%40berglas.org>[email protected] <mailto:anthony%40berglas.org> >> Mobile: +61 4 4838 8874 >> Just because it is possible to push twigs along the ground with ones nose >> does not necessarily mean that is the best way to collect firewood. >> >> > >-- >HOSTIN Damien - Equipe R&D >Tel:+33(0)4 63 05 95 40 >Société Axège >23 rue Saint Simon >63000 Clermont Ferrand >www.axege.com > > Spreadsheet Detective, Southern Cross Software Queensland Pty Limited 54 Gerler Street Bardon, Queensland 4065, Australia. Email: [email protected] www.SpreadsheetDetective.com Ph: +61 427 830248 (Australian Eastern Standard Time) "If the model seems correct only because the numbers look right, then why build the model in the first place?" ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/SimpleORM/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/SimpleORM/join (Yahoo! ID required) <*> To change settings via email: mailto:[email protected] mailto:[email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/