delphi3000.com - the free delphi knowledge platform
delphi3000.com - the free delphi knowledge platform
Have a look at your member-status

connecting people's knowledge


  - Recent ArticlesRSS feed for Recent Articles on delphi3000.com
  - List of All Articles
  - Top Viewed Articles
  - Articles (+Attachem.)
  - Articles Of Interest
  - Categories
  - Top Uploader
  - Search
  - Index

  - My Home
  - Submit an Article
  - My Articles
  - My Personal Data
  - My Bookmarks
  - Activities
  - Login/Logout

  - Sign Up
  - Why Sign Up
  - Newsletter

  - Press
  - Advertise

  - Contact
  - Feedback



Community
Borland
ClubeDelphi
Dr. Bob
UK-BUG
Delphi Meetings
Planeta Delphi








Share this article with friendsShare this article with friends
Rate this articleRate this article - to keep the quality of delphi3000.com !
Comment this article or read through previous comments (4)


MIDAS: Which Connection Type Should I Use?Format this article printer-friendly!Bookmark function is only available for registered users!
from Distribucon
Product:
Delphi 5.x (or higher)
Category:
MIDAS
Skill Level:
Scoring:
Last Update:
10/17/2000
Search Keys:
delphi delphi3000 article borland vcl code-snippet MIDAS DispatchConnection DCOMConnection SocketConnection Socket DCOM WebConnection OleEnterprise IDL2PAS Corba
Times Scored:
15
Visits:
9718
Uploader: PEPS ^^
Company: bluestep.com IT Consulting
Reference: Distribucon
 
Question/Problem/Abstract:
One of the key-features of MIDAS is its protocol-independence ! Here are the differences:
Answer:



Sockets is the easiest to configure. In addition, it only uses one port for traffic, so your firewall administrator will be happier than if they had to make DCOM work through the firewall. With D4 or D5, you must be running SCKTSRVR.EXE to make this connection work, so there is one extra file to deploy and run on the server. The downside is that early-binding is not supported.

COM/DCOM provides core NTLM secuirty and authentication. This is especially useful if you are using this applicaiton in an Intranet/Extranet setup (i.e. where the people using your application are "known" from the domain's perspective). You can use early-binding when using DCOM, and you can use callbacks and ConnectionPoints easily. The downside is configuration of DCOM on client machines and using DCOM through firewalls.

MTS is used to host COM objects and provides (among other things) transactional capabilities, database connection pooling, easier deployment to clients, role-based security, and limited declarative attribute programming (e.g. declaring transaction suport). The upcoming COM+ is basically a combination of COM and MTS. The downsides are the same as those for DCOM, plus the lack of support for using the BDE in transactions with multi-user applications.

CORBA is an open-standard and quite useful for cross-platform projects. (CORBA is quite popular in Java circles). See www.omg.org for more information. With VisiBroker, configuration is much easier than DCOM. The recent release of IDL2PAS makes writing Delphi clients to access CORBA servers quite nice. The downside is that not all features are supported on the server side with early-binding, more files to install on the client machine to support the CORBA implementation, and not all features of VisiBroker work with the Delphi implementation (e.g. OAD as a service and GateKeeper).

OLEnterprise offers no advantage over the other connection types at this point. It was useful for running COM servers on Win9x machines (see my DCOM Configuration page for instructions on how to do this with straight COM) and load balancing (replaced by TSimpleObjectBroker in D4 and above). In addition, it has a very complex and large client-side installation requirement.

TWebConnection is a new connection type in Delphi 5. This component basically tunnels MIDAS traffic through HTTP/HTTPS. It requires WININET.DLL on the client and a web server such as IIS to host HTTPSRVR.DLL. The downside to this component is that callbacks are not possible with this connection, and you cannot use early-binding. The upside is almost priceless: the ability to get MIDAS traffic through a firewall with no interaction of a system administrator.






Please rate this article!
Skill level:
BeginnerExpert

Useful:
No!Very!

Overall rating:
PoorExcellent



Comments to this article
Write a new comment
About MIDAS/DATASNAP
    Marcel Ion (Aug 1 2008 2:06PM)

After many years since MIDAS appeared, we still do not know if it is a reliable & stable solution.
I never read any relevant review, to have an ideea if the solution is good&stable or not.
My experience with MIDAS :
-DCOM connection;
-15 users.
Is working acceptable 90% of the time. In 2% of the time is a shame. You have to restart the application server ...etc.
I would say if you want to build a LAN solution - never use it ! Use ADO or BDE instead !
If you have a low-speed bandwidth, it makes sense to try. But the documentation about this in general, it is very poor. You will loose time to develop. And at the end, the solution maybe it is working only satisfactory.
Maybe I am not the best programmer in Midas. I hope to hear people wich developped good and stable solution with MIDAS. Until now I never found at least one really good comment about the results of using MIDAS.


Respond

TWebconnection has a terrible bug
    rrrrrr rrrrrr (Aug 19 2005 1:09PM)

If  use WebConnection,  at begin,it seems very good.But after sometime the server run at IIS server,any client cann't connect to server,an message "Could not convert variant of type (Dispatch) into type (Integer)" appears in client computer if you attempt connect to server.You have no solution but to reset IIS.


Respond

RE: TWebconnection has a terrible bug
peter kokosiouli (Mar 8 2007 4:25PM)

did you find a solution for this im also experiencing the same problem
Respond

RE: RE: TWebconnection has a terrible bug
Marcel Ion (Aug 1 2008 1:52PM)

The article itself it is nice and interesting. But would be great to have informations about stability and quality of each solution.
I have experience in using DCOM only. The ideea in general it is nice, but I am not very satisfied about how it is working.
Example : It is dificult to set up the security (to give acces to the user) .
Sometimes the server just rejects the new users....you have to restart it.
Does anybody used this solution with more than 50 clients ? Was it stable ?
I tested and used it in production with ~ 15 users. I am not satisfied. A lot of problems.
I never saw on internet , an pozitive comment about someone using this solution in production and having great results !!
And it is dificult to find very detailed help instructions about this MIDAS/DATASNAP. The internet is full of articles, but all are describing the solution on a general level.
If you want to find source code, then you have a problem.


Respond














 
Sign up to consume product discounts for Bronze memberships !

read more


   


  Community Ad of
S. Carter
 
   














 







     
  Copyright © 2000 - 2007 delphi3000.com - All rights reserved. Terms of use. || Privacy
delphi3000.com is a service by bluestep.com IT-Services GmbH (Vienna)