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

Posted by on in Blogs
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"

About
Gold User, Rank: 9, Points: 364
Crazy about Delphi Programming!

Comments

  • Guest
    Sylvain Lamothe Tuesday, 29 March 2011

    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 ?

  • Guest
    Bjarne Rasmussen Thursday, 05 May 2011

    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 :-)

  • Please login first in order for you to submit comments
  • Page :
  • 1