> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > I am trying to come up with and elegant way to share > high-level objects > between server and clients (in a multi-tier environment), but without > creating unnessary network traffic. For example, the server may pass a > Person object to the client, but containing just the bare > minimum in terms > of data. The client could then assess what further > information it needs, tag > these data structures somehow, and then ask the object to > retrieve them. > Obviously one would want to minimise server calls, but as > trasparently as > possible. I am calling this "lazy loading". These high level > objects will > probably take the form of Entity Java Beans. > > Does anyone have any experience, suggestions or patterns regarding an > elegant implementation of this? I've done this kind of thing before. I used a data structuring method called X.209, which is something like XML but much denser and much more efficient. The return request, asking for more data, would pass the field names of the desired data. The answering process would load up those fields in the message and send them back. Thus, there the lower limit on messages is three. Robert C. Martin | Design Consulting | Training courses offered: Object Mentor Inc. | [EMAIL PROTECTED] | Object Oriented Design 14619 N Somerset Cr | Tel: (800) 338-6716 | C++ Green Oaks IL 60048 | Fax: (847) 918-1023 | http://www.oma.com "One of the great commandments of science is: 'Mistrust arguments from authority.'" -- Carl Sagan =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
