Skip to content

Delphi Labs: DataSnap - Passing "Plain Old Delphi Objects" Parameters

One of the cool new features in introduced in Delphi XE is a possibility to use TObject-descendant as parameter types in DataSnap server methods. I was planning to cover different possible parameter types that you can use in DataSnap applications, but it would be a huge discussion. Jim Tierney from Embarcadero has already discussed different DataSnap parameter types on his blog and during recent CodeRage5 conference session "DataSnap: Features and Integration with User Types".

In Java Enterprise Edition (JEE) there is a concept of “Plain Old Java Object” (http://en.wikipedia.org/wiki/Plain_Old_Java_Object) for passing data between applications. Here we are going to use the same pattern for exchanging data between clients and servers written in Delphi, so it should be OK to call these parameter types: “Plain Old Delphi Objects” or in short “PODOs”.

"Delphi Labs: DataSnap XE - Parameter Types and PODOs"

{ 2 } Comments

  1. Sylvain Lamothe | March 29, 2011 at 9:08 pm | Permalink

    Great video Pawel as usual!

    You used string property in your example, are other property types supported, like TStringlist for example?

    How about RadPHP? What Rad PHP does with a TObject-descendant ?

  2. Bjarne Rasmussen | May 5, 2011 at 1:22 pm | Permalink

    Great intro to datasnap Pawel.

    If we then scale it up a notch - and use a few theads … we will end up with something like this
    http://qc.embarcadero.com/wc/qcmain.aspx?d=92921

    And as far as I have gotten via the stackoverflow site here :
    http://stackoverflow.com/questions/5580234/delphi-multithreaded-client-server-datasnap-error
    I can only question if there is a thread problem in using the built in mashaller / unmarshaller?

    PS : Looking forward to meeting you in person next week at DAPUG in Denmark :-)

Post a Comment

Your email is never published nor shared. Required fields are marked *

Bad Behavior has blocked 2 access attempts in the last 7 days.

Close