Re: [Resin-interest] Non-Hessian file store?
I haven't heard Rod's take on the matter (got url?), but then again I'm also not having problems with Hessian doing strange things to my objects. jon On Thu, Aug 27, 2009 at 9:24 AM, Mattias Jiderhamn < mj-li...@expertsystems.se> wrote: > Well, there are different opinions about DTOs too. > I assume you've heard (Spring developer) Rod Johnsons take on the > matter...? > > > > Jon Stevens wrote (2009-08-27 17:35): > > Yea, just cause Hibernate has that feature doesn't mean it is a good > feature. =) You may want to consider the DTO pattern... > > http://java.sun.com/blueprints/corej2eepatterns/Patterns/TransferObject.html > > I've found that over time, the pain of creating and dealing with DTO's is > mitigated by the cleanliness of it and you don't run into weird issues like > you are running into... > > jon > > On Thu, Aug 27, 2009 at 12:05 AM, Mattias Jiderhamn < > mj-li...@expertsystems.se> wrote: > >> >> http://docs.jboss.org/hibernate/stable/core/reference/en/html/transactions.html#transactions-basics-apptx >> >> Jon Stevens wrote (2009-08-26 21:48): >> >> You put Hibernate objects into the session? >> jon >> >> On Wed, Aug 26, 2009 at 8:37 AM, Mattias Jiderhamn < >> mj-li...@expertsystems.se> wrote: >> >>> In Resin 4 seems to use Hessian for >>> serializing the session values. >>> This causes some trouble for us since Hessian in some cases tries to >>> access uninitialized Hibernate collections after the session/transaction >>> is closed. >>> Is there a way to revert Resin 4 to the old behaviour...? >>> >>> -- >>> >>> >>> >> > > ___ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest > > ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Non-Hessian file store?
Well, there are different opinions about DTOs too. I assume you've heard (Spring developer) Rod Johnsons take on the matter...? Jon Stevens wrote (2009-08-27 17:35): > Yea, just cause Hibernate has that feature doesn't mean it is a good > feature. =) You may want to consider the DTO pattern... > > http://java.sun.com/blueprints/corej2eepatterns/Patterns/TransferObject.html > > I've found that over time, the pain of creating and dealing with DTO's > is mitigated by the cleanliness of it and you don't run into weird > issues like you are running into... > > jon > > On Thu, Aug 27, 2009 at 12:05 AM, Mattias Jiderhamn > mailto:mj-li...@expertsystems.se>> wrote: > > > http://docs.jboss.org/hibernate/stable/core/reference/en/html/transactions.html#transactions-basics-apptx > > Jon Stevens wrote (2009-08-26 21:48): >> You put Hibernate objects into the session? >> >> jon >> >> On Wed, Aug 26, 2009 at 8:37 AM, Mattias Jiderhamn >> mailto:mj-li...@expertsystems.se>> wrote: >> >> In Resin 4 seems to use >> Hessian for >> serializing the session values. >> This causes some trouble for us since Hessian in some cases >> tries to >> access uninitialized Hibernate collections after the >> session/transaction >> is closed. >> Is there a way to revert Resin 4 to the old behaviour...? >> >> -- >> >> >> ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Non-Hessian file store?
Yea, just cause Hibernate has that feature doesn't mean it is a good feature. =) You may want to consider the DTO pattern... http://java.sun.com/blueprints/corej2eepatterns/Patterns/TransferObject.html I've found that over time, the pain of creating and dealing with DTO's is mitigated by the cleanliness of it and you don't run into weird issues like you are running into... jon On Thu, Aug 27, 2009 at 12:05 AM, Mattias Jiderhamn < mj-li...@expertsystems.se> wrote: > > http://docs.jboss.org/hibernate/stable/core/reference/en/html/transactions.html#transactions-basics-apptx > > Jon Stevens wrote (2009-08-26 21:48): > > You put Hibernate objects into the session? > jon > > On Wed, Aug 26, 2009 at 8:37 AM, Mattias Jiderhamn < > mj-li...@expertsystems.se> wrote: > >> In Resin 4 seems to use Hessian for >> serializing the session values. >> This causes some trouble for us since Hessian in some cases tries to >> access uninitialized Hibernate collections after the session/transaction >> is closed. >> Is there a way to revert Resin 4 to the old behaviour...? >> >> -- >> >> >> > > > ___ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest > > ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Non-Hessian file store?
http://docs.jboss.org/hibernate/stable/core/reference/en/html/transactions.html#transactions-basics-apptx Jon Stevens wrote (2009-08-26 21:48): > You put Hibernate objects into the session? > > jon > > On Wed, Aug 26, 2009 at 8:37 AM, Mattias Jiderhamn > mailto:mj-li...@expertsystems.se>> wrote: > > In Resin 4 seems to use Hessian for > serializing the session values. > This causes some trouble for us since Hessian in some cases tries to > access uninitialized Hibernate collections after the > session/transaction > is closed. > Is there a way to revert Resin 4 to the old behaviour...? > > -- > > > ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Non-Hessian file store?
You put Hibernate objects into the session? jon On Wed, Aug 26, 2009 at 8:37 AM, Mattias Jiderhamn < mj-li...@expertsystems.se> wrote: > In Resin 4 seems to use Hessian for > serializing the session values. > This causes some trouble for us since Hessian in some cases tries to > access uninitialized Hibernate collections after the session/transaction > is closed. > Is there a way to revert Resin 4 to the old behaviour...? > > -- > > > > > > ___ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest > ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Non-Hessian file store?
On Aug 26, 2009, at 8:37 AM, Mattias Jiderhamn wrote: > In Resin 4 seems to use Hessian for > serializing the session values. > This causes some trouble for us since Hessian in some cases tries to > access uninitialized Hibernate collections after the session/ > transaction > is closed. > Is there a way to revert Resin 4 to the old behaviour...? I've filed this as a bug. We've always intended to allow for non- Hessian serialization, but just didn't put it back in after the refactoring. -- Scott > > > -- > > > > > > ___ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] Non-Hessian file store?
In Resin 4 seems to use Hessian for serializing the session values. This causes some trouble for us since Hessian in some cases tries to access uninitialized Hibernate collections after the session/transaction is closed. Is there a way to revert Resin 4 to the old behaviour...? -- ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest