Visit site Mat DeLong
January 2012
2
votes
DataSnap will just keep getting better!
Mat DeLong
– As you may already know, I no longer work for Embarcadero. It was a very difficult decision for me to leave the company that took such good care of me over the years. I still love Embarcadero and believe in their products. I will continue to help out the community and the company any way I can. That ...
November 2011
4
votes
DataSnap XE2 - Unified Connection Monitoring Sample Component
Mat DeLong
– I’ve spent some time developing a sample component which can be dropped on a DataSnap form with a TDSServer, and allow for easy monitoring (connects/disconnects/http trace) of TCP/IP and HTTP DataSnap connections. The result of my work can be downloaded from here: ...
2
votes
Gaining access to private fields of a class
Mat DeLong
– I should start of by saying that with great power comes great responsibility. You can use this tip to gain access to private or strict private members of a class in another unit. But should you? Say there exists a class called ‘TDSCustomServer’ and within it, there is a private field ...
October 2011
0
votes
Missed my DelphiLive talks? Catch them at CodeRage 6!
Mat DeLong
– Have you been losing sleep each night since DelphiLive, because you are upset with yourself for missing my talks? Well, now you have a chance to forgive yourself! I will be presenting slightly shortened versions of my two DelphiLive presentations at CodeRage this year (11 days from now!) My talks ...
September 2011
2
votes
DelphiLive 2011 Recap
Mat DeLong
– I have a bit of time now, so I thought I’d write a recap of the two presentations I did this week for DelphiLive. I recorded the presentations, so at some point I may even make these videos available. My first presentation was on Tuesday, and I covered the new features and improvements in DataSnap ...
1
vote
DelphiLive next week!
Mat DeLong
– I’ll be in California next week, presenting at this year’s DelphiLive conference! Tuesday I’ll be presenting what’s new in DataSnap for XE2 (Session and Connection Management, Cloud APIs, playing nice with jQuery.) Wednesday I will be presenting DataSnap Mobile Connectors. ...
August 2011
1
vote
Company Tweet sample DataSnap Mobile application
Mat DeLong
– With RAD Studio XE2, there is a set of sample applications called Company Tweet. These can be found in the SourceForge repo here: http://radstudiodemos.svn.sourceforge.net/viewvc/radstudiodemos/branches/RadStudio_XE2/Delphi/DataSnap/connectors/. These samples demonstrate the new Mobile Connectors ...
0
votes
Introduction to DataSnap Mobile Connectors
Mat DeLong
– Today I’m very excited, because I’ve been given permission to tell you about some of the cool stuff we’ve been working on for the new release of DataSnap! XE2 will ship with new Mobile Connector components and mobile source code, which will allow developers to quickly develop ...
July 2011
0
votes
Programmatically set DataSnap credentials on a TSQLConnection
Mat DeLong
– Say you have a thick client with a TSQLConnection, using the DataSnap driver, and you want to set the protocol, user name and password at runtime (based on user input.) In the object inspector, you see these properties called "CommunicationProtocol", "DSAuthUser" and "DSAuthPassword". Using the ...
May 2011
0
votes
Heavyweight Callbacks
Mat DeLong
– In a post from last year (DelphiLive Presentation Summary) I discussed Heavyweight callbacks with JavaScript REST clients. I’d now like to take the opportunity to go over using Heavyweight callbacks with Delphi REST and Delphi native clients. Notes before starting If your server project has ...
April 2011
0
votes
REST Parameter Caching
Mat DeLong
– In DataSnap XE you can specify how you wish to retrieve complex data types from a remote method invocation using REST. For example, if you had the following server method: function GetImage(Key: String; out R1: TStream): TStream; Then you could invoke it using the following URL: ...
March 2011
0
votes
Invoking Multiple Server Methods With a Single Call
Mat DeLong
– It is possible in a DataSnap REST call to format your request in such a way that the single call will invoke multiple server methods before returning a result. To do this from a JavaScript REST client, for example, you’d include the ServerFunctionExecutor.js file and appropriate json file to ...
February 2011
0
votes
DataSnap Problems and Solutions
Mat DeLong
– I’ve noticed in a few situations error messages come up that may not describe the problem well enough to have the solution become obvious. I thought I’d post my findings here, in hopes of saving you some time if you come across any of these in RAD Studio XE. Protocol http can be used ...
January 2011
0
votes
Invocation Metadata
Mat DeLong
– Within a Server Method you have the ability to set invocation metadata. I agree, this could be better named. What it does is provide a way to control the HTTP response code (and/or content) returned for an HTTP request invoking the method. This can be used, for example, to return a 400 (Bad Request) ...
November 2010
0
votes
Server Side Session Management
Mat DeLong
– When a client connects to a DataSnap server, a session is created. This session is represented with a TDSSession instance or subclass. Session Lifecycle Setting SessionTimeout For TCP connections the session ends only when the connection is closed. For HTTP connections how long a session is alive ...



