Mario, > I am not that enthusiastic about the rumba framework > - but hey - this > might change. > Reloading the objects using their key for every > request might sometimes > become a real performance killer as you often have > to deal with a couple > of objects. But ok, it depends on the use-case.
I think that both approaches have their pros and cons. Up to now most web applications I'm aware of prefer using request over session for parameter passing. Such an approach is easy to use and scales well. It works HTTP way meaning that a developer does not have to fight with session-specific issues: multiple browser windows, back button, session expiration etc. > Also the ObjectProxy solution (I already tried such > a thing before - > havent looked at rumba yet, might be different > solved) didnt lead to the > nicest looking code. You have to check if a object > is proxied and unpack > it if you e.g. add it to an criteria-api or if you > have to set it as > property to another entity (1:n etc) Completely agree, this is not an ideal solution - rather simple and easy to use one. We have tried to make ObjectProxy API as clean as possible to use it effectively. We use it when there are session(HTTP)-lifetime objects that contain references to persistent objects. We chose to avoid "session-per-conversation" pattern since Hibernate session containing the ShoppingCart would be more close to "session-per-application" which is to be avoided. > > I still think the seam way is the better, "session > in conversation" is > much more intuitive to work with as you can work > with your objects as > expected. We had a working solution that provided convenient conversation support. It had some threading issues so we delayed it until the next Rumba release. I think that multi-page conversations are usually not a central part of the application and it is better to optimize cases used the most. > I would like to see a seam-light. A single jar file > which you can drop > into your tomcat and can start working with :-) > We'll consider it for sure :). Thanx a lot. Regards, Alexey __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

