Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-02

n-tier solution for FPC/Lazarus

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

Is there a FPC or Lazarus component similar to Delphi's MIDAS to allow us to write n-tier software? Note I'm only interested in Desktop style applications. I guess if nothing exists, one could try something like WebServices SOAP+XML+HTTP or something. The middle tier app being an embedded HTTP server app or something.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

Leonardo M. Ramé
to Graeme Geldenhuys

El mar, 02-02-2010 a las 15:04 +0200, Graeme Geldenhuys escribi?:

Show quoted text 6 lines
I know I asked this exact question before, but that was 2 years ago. Just wanted to find out if there was any progress in this department. Regards, - Graeme -

I don't know if it's already any improvement in this area, but let me tell you what I'm doing in an application.

Half a year ago, I created a web app using ExtJs (not ExtPascal) and a stand alone http server based on Synapse lib. Apart from showing web pages, the server has methods to receive requests as Url encoded strings, then answer with JSon strings to populate form data and grids.

Last month, my customer got a contract that requiered to allow a remote location to access the application, with a little issue, the remote location doesn't have a reliable internet connection. So I started to think about this problem, and came up with an Desktop application that works through Internet when the connection is up, when it's not, it makes a modem call and connects directly to the application in my customer's location.

The Desktop app uses an ORM capable of parsing JSon data to populate objects, then those objects are used just like any other desktop application. So the "database" is the remote HTTP server.

In this particular case, I was forced to use JSon because I had to keep the ExtJs side working, but, if your client and server will be written in FPC, you could follow this approach:

http://leonardorame.blogspot.com/2009_03_01_archive.html

Leonardo M. Ram? Griensu S.A. - Medical IT C?rdoba Tel.: 0351-4247979

Reply by email

Michael Van Canneyt
to Graeme Geldenhuys: Is there a FPC or Lazarus component similar to Delphi's MIDAS to allow us to write n-tier…
Graeme Geldenhuys wrote 7 lines
Hi, Is there a FPC or Lazarus component similar to Delphi's MIDAS to allow us to write n-tier software? Note I'm only interested in Desktop style applications. I guess if nothing exists, one could try something like WebServices SOAP+XML+HTTP or something. The middle tier app being an embedded HTTP server app or something.

You can use WST for this. It supports more than just HTTP+Soap. The HTTP and SOAP protocols are quite slow. WST has a binary protocol and straight TCP connection which is much faster.

I'm currently writing a module for fpweb which plays the middle tier for an ExtJS web application. There is no reason why you could not use that with a regular FPC client as well.

Michael.

Reply by email