automation server to client and client to server

I have to applications that need to communicate with each other.  Is it practical for both of them to be servers and clients to each other?  One of the applications will work primarily as a server and will launch the other application.  The newly launched application needs to be able to send occasional information to the server to update information in the application that launched it.  Also, if the user attempts to close the launched application it needs to tell the launcher application to close the appl
ication that it launched.  Does this sound practical?  This is kind of like launching word, but having work to be able to communicate back to you on a controlled channel of communication.
0
Rafel
8/11/2008 8:44:58 AM
embarcadero.delphi.ole 598 articles. 1 followers. Follow

3 Replies
1259 Views

Similar Articles

[PageSpeed] 46

Rafel Coyle wrote:

> I have to applications that need to communicate with each other.  Is
> it practical for both of them to be servers and clients to each
> other?  One of the applications will work primarily as a server and
> will launch the other application.  The newly launched application
> needs to be able to send occasional information to the server to
> update information in the application that launched it.  Also, if the
> user attempts to close the launched application it needs to tell the
> launcher application to close the application that it launched.  Does
> this sound practical?  This is kind of like launching word, but
> having work to be able to communicate back to you on a controlled
> channel of communication.

The server should pass the interface of a COM object to the client for
the client to use for communication with the server. That is the model
COM events use, for example. Don't try to have the client create an
instance of the server, that might not get you the same instance that
started the client but a new one.

-- 
Peter Below (TeamB)  
Don't be a vampire (http://slash7.com/pages/vampires), 
use the newsgroup archives :
http://www.tamaracka.com/search.htm
http://groups.google.com
0
Peter
8/11/2008 10:49:44 AM
> {quote:title=Peter Below wrote:}{quote}
> Rafel Coyle wrote:
> 
> > I have to applications that need to communicate with each other.  Is
> > it practical for both of them to be servers and clients to each
> > other?  One of the applications will work primarily as a server and
> > will launch the other application.  The newly launched application
> > needs to be able to send occasional information to the server to
> > update information in the application that launched it.  Also, if the
> > user attempts to close the launched application it needs to tell the
> > launcher application to close the application that it launched.  Does
> > this sound practical?  This is kind of like launching word, but
> > having work to be able to communicate back to you on a controlled
> > channel of communication.
> 
> The server should pass the interface of a COM object to the client for
> the client to use for communication with the server. That is the model
> COM events use, for example. Don't try to have the client create an
> instance of the server, that might not get you the same instance that
> started the client but a new one.
> 
> -- 
> Peter Below (TeamB)  
> Don't be a vampire (http://slash7.com/pages/vampires), 
> use the newsgroup archives :
> http://www.tamaracka.com/search.htm
> http://groups.google.com
The client would never create an instance of the server, but once a client was created it needs to be able to communicate back to the server in an unsolicited manner.  Even if the client needed to be closed it would send a message back to the server and have the server close the client.
0
Rafel
8/11/2008 1:07:54 PM
Rafel Coyle wrote:

> The client would never create an instance of the server, but once a
> client was created it needs to be able to communicate back to the
> server in an unsolicited manner.  Even if the client needed to be
> closed it would send a message back to the server and have the server
> close the client.

That is the ideal scenario for what I suggested. 

-- 
Peter Below (TeamB)  
Don't be a vampire (http://slash7.com/pages/vampires), 
use the newsgroup archives :
http://www.tamaracka.com/search.htm
http://groups.google.com
0
Peter
8/11/2008 3:51:07 PM
Reply:

Similar Artilces:

Pass values from server to client and client to server?
Hi, i have a scenario, i want to  pass some values to an image and a label dynamically from database. i want to use an anchor(a href) tag and when the mouse goes over the anchor , an image url and label text must change with the values from database. Suppose that there are more than one anchor at the page.  One more thing, anchors must get the id values of the records from database at page_Load() and the queries use these these ids again to retreive imageurl and label text values from database when ...

Client & Server Side ( Server PostBacks Reset Client Data )
Hi, Slight Problem i have bumped into, maybe someone can help me... --TestSlider.aspx--------- <%@ Page Language="C#" %> <script runat="server"> void click(object sender, EventArgs e) { Label1.Text = Label1.Text; if(btnPress.Text=="Press") btnPress.Text = "PRESS"; else btnPress.Text = "Press"; } </script> <html> <head> <script language="JavaScript"> function newSlider(sId) { sCode = '<table border=...

Start Client Timer from Server Event and start server Event from client event
All of you, I have a big challenge which i'm not able to resolve. I need some experts with samples on this. Situation for a webbased quiz system I have a data set with e.g. 5 questions. The process should be like 1. Load Question 1 from database, there is also a picture and a MP3 sound file 2. I connect the MP3 sound file to a webcontrol I've written to play Mp3 with a flashmovie. 3. Once this mp3 is played (the question is read for people with reading problems) an Event should be raised from the client to the server. 4. The event from 3 should start a Countdown timer (15 se...

Server to Client server responses
Hello all, So now we have the client to server part down we need to decide the server to client. How will we notify the client for success/fail and we need to develop it in such a way that future "extensions" can add to it. For fail conditions we should send the standard 401 Unauthorized http response with the body being a message for the user using Content-Type: text/plain. For success conditions we send the standard 200 OK http response with the body being plain text content type like the error condition but encoded in such a way the client can parse it easi...

Client-server to thin client
Hi all, we have a robust client-server application (PB 11.2, 70 pbls, 2000 objects) and a huge task to rebuild our application to be a thin client, where as a client side we are considering to use existing PB application GUI or Web Browser. We are about to make a big decision which way to go, so please recommend us what are the current possibilities now, in 2010, and what are the pros and cons. (Rewriting our application is not an option for us.) We are considering: - Appeon - Deploying PB nonvisuals to EAserver and use existing PB GUI as client - Migrating to .NET world with...

Indy 10
This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --JivePart=_39eb5.zeB8CwDOH5aMJzMl Content-Type: text/plain; charset="Utf-8" The udp client component would be used in the datasnap server. The udp server component would be used in the datasnap client. --JivePart=_39eb5.zeB8CwDOH5aMJzMl Content-Type: application/x-zip-compressed; name="UDPDSClinetstub.zip" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="UDPDSClinetstub.zip" UEs...

PB OLE Automation server and Visual C++ client
We have been successfully using named/registered PB automation servers under PB, VB, and Visual C++ for a while now. This is all good when you create individual user objects and register them individually. Our problem is that we would like to use the "PowerBuilder.Application" server to allow access to a group of inter-related user objects...this is easy under VB, you create an instance of the "PowerBuilder.Application" server -- say as PBOLEObject, thtn you call PBOLEObject.CreateObject(uo_my_dependant_obj) to create the dependant object. You can then use the ...

Client-server comunication in server control
Hello, i wonder if someone could give me advice. I am building server control (scriptControl) that should show some text in tooltip after the mouseover client event is fired. But i dont want to generate this text into client instance init method, because its posible size. Instead, i want this text to be dynamicaly populateted from server. So i am asking, what is the best way to do it? In server control i can not use Services or PageMethods and i would like to avoid Callbacks (they are slow). Is there any other option? Thx in advance  Well your two options are you add it to the ...

Encryption of client/server communications from the server
Hello, Database: SQL Anywhere Version 5. The -e command-line option encrypt all packets transmitted to and from all clients, OK. What encryption algorithm is used? It's simple or strong? Encryption does marginally affect performance. It's really? What's mean "marginally", in fact? What percentage, number? I beg what anybody help me, I need understand. Thanks a lot. Renato Cramer. renato@domsis.com.br Renato Cramer wrote: > The -e command-line option encrypt all packets transmitted > to and from all clients, OK. > > What encryptio...

superreview granted: [Bug 283383] Create JSS and JSSE client/server test programs that intercommunicates to validate ciphers : [Attachment 180403] Fix for JSS and JSSE server to timeout on no client
glen beasley <glen.beasley@sun.com> has granted Sandeep Konchady <Sandeep.Konchady@Sun.COM>'s request for superreview: Bug 283383: Create JSS and JSSE client/server test programs that intercommunicates to validate ciphers https://bugzilla.mozilla.org/show_bug.cgi?id=283383 Attachment 180403: Fix for JSS and JSSE server to timeout on no client request https://bugzilla.mozilla.org/attachment.cgi?id=180403&action=edit ...

clients cannot login to server using server name
We have a Netware 6.5 server now running SP3 that users on Windows 98 who are now running client 3.4c can't login to using the server name only. The problem first occured when the 6.5 server was on SP1 and most of the clients were running 3.32. Because of the older versions, we first tried upgrading both server and clients to the latest versions, but this did not help. We can login in to the server if we use the IP address in the server field of the client. However, if the server name is used, the client can not find the server and logs in to the 5.1 server at the same location....

Web and/or Client Server n-Tier server
Currently we have 2 tier client server applications that we want to convert to n-tier. Do we have to build our own server or is there a distributed server tool that we can use? If we needed to build our own server are there any sites that could help us with some guidelines? I understand that Jaguar can be used for Web based applications as a transaction management. Is it for Web applications only or could it be used for client server applications also? Any help is appreciated. Carmen Jaguar is a very good fit for moving to n-tier development. We're working with it in-house...

cookie not send by server, not received by client or server?
For my shopping cart I'm trying to have a cookie send to visitors of a webstore. Curiously, the shopping card mechanism is working with client machines within my LAN. However, for clients on the Internet I get an error message. '******************************************************* ' The ShoppingCartID value is either the User's Identity ' Name (if they are a registered and authenticated user), ' or a random GUID calculated for guest visitors or ' customers who have not yet logged in. '***************************************...

Client/Server Connectivity in SQL Server 2005
Hi, Can anyboday tell me how to connect the  clien  and server in SQL Server 2005. Thanks & Regards        Hiren Patel Hi, here is a sample function that you can use to connect to sql server. The "sql" is your sql command that you can pass to be queried on the SQL Server.   -> i.e. "SELECT FirstName, LastName FROM Accounts WHERE Password = '" & txtPassword & "';"The "Data Source" is the address of your SQL ServerThe "Initial Catalog" is database that you want to accessThe &qu...

Web resources about - automation server to client and client to server - embarcadero.delphi.ole

Automation - Wikipedia, the free encyclopedia
For a hierarchical presentation of automation topics, see Outline of automation . For other uses, see Automation (disambiguation) . Automation ...

Automation World - Covering the field of industrial automation
AutomationWorld.com delivers content for the Automation Buying team, which includes Information Technology and Networking; Operations and Engineering; ...

Facebook Ads API Partner AdStage: Campaign Automation, $6.25M Series A Funding
AdStage , a Facebook ads API partner, announced Wednesday the launch of campaign automation — as well as a $6.25 million round of Series A funding. ...

Mind blown! Facebook’s f8 makes a mobile move into marketing automation
... Thus, you’ll need to build a mobile app (if you’re enterprise) or use an app-building platform (such as GroSocial). The marketing automation ...

Automation Heroes (@automationhero) on Twitter
Sign in Sign up To bring you Twitter, we and our partners use cookies on our and other websites. Cookies help personalize Twitter content, tailor ...

Automation World
Automation World is your link to the why and how of manufacturing automation. The purpose of this group is to connect manufacturing engineers,... ...

Samsung SmartThings Home Monitoring Kit offers easy automation
Home automation and monitoring is getting easier than ever. The days when you had to hire a contractor to wire up your home for security or to ...

Factory Automation Will Speed Forward with A.I., Says Bernstein
... tech-industrial companies such as Corning (GLW) and AU Optronics (AUO), this afternoon offered up a thinks piece on robotics and factory automation, ...

Is home automation in your future or are you using it now?
Home automation gets touted by some as the future, but it's really the now. A seemingly endless list of products are on the market and they allow ...

3 Growing Digital Trends for 2016: Automation, Personalization, Gamification.
1. Marketing Automation What is it? Marketing automation is a category of technology that allows companies to streamline, automate, and measure ...

Resources last updated: 1/13/2016 11:12:28 AM