473,386 Members | 1,758 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

sharing data between 2 applications

Iam trying to find a simple solution for sharing data between windows
applications( apart of using file system or remoting or MMF) . I tried using
class library by making data members "shared" but it seems that data cant
not be passed between applications. what am I doing wrong here? what are
"simple" possible solutions?
thanks
Jan 3 '06 #1
4 1795
There really are few options for passing data. You really covered the main
ways. In short, there are no "simple" ways because the data has to be
marshaled across the process boundaries and the reason you cannot make a
static field visible in both is because static fields only live within the
process space for the app and each will have its own copy.

"radiax" <ra****@comcast.net> wrote in message
news:Ze********************@comcast.com...
Iam trying to find a simple solution for sharing data between windows
applications( apart of using file system or remoting or MMF) . I tried
using
class library by making data members "shared" but it seems that data cant
not be passed between applications. what am I doing wrong here? what are
"simple" possible solutions?
thanks

Jan 3 '06 #2
Among all the other ways which one would you suggest? The scenario is one
application will be producing data and another application will consume it
(it is one way relationship). Iam not sure if i should go with remoting or
using sockets. Any suggestions ?
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:OJ**************@TK2MSFTNGP14.phx.gbl...
There really are few options for passing data. You really covered the main ways. In short, there are no "simple" ways because the data has to be
marshaled across the process boundaries and the reason you cannot make a
static field visible in both is because static fields only live within the
process space for the app and each will have its own copy.

"radiax" <ra****@comcast.net> wrote in message
news:Ze********************@comcast.com...
Iam trying to find a simple solution for sharing data between windows
applications( apart of using file system or remoting or MMF) . I tried
using
class library by making data members "shared" but it seems that data cant not be passed between applications. what am I doing wrong here? what are
"simple" possible solutions?
thanks


Jan 3 '06 #3
There is really only 2 ways.
1) Some sort of remoting and marshalling of data. IE .Net remoting or
custom serialization and use sockets.
2) Shared data store like a shared memory database. This is the route I
have taken with our corporate applications. This is a pretty complicated
way to go but does result in the most flexible and highest performance
that i found. It also is flexible in that all different types of
enviroments can use it and not just .Net. Be prepared for a major task
though to go this route.

Hope this helps.
Leon Lambert

radiax wrote:
Among all the other ways which one would you suggest? The scenario is one
application will be producing data and another application will consume it
(it is one way relationship). Iam not sure if i should go with remoting or
using sockets. Any suggestions ?
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:OJ**************@TK2MSFTNGP14.phx.gbl...
There really are few options for passing data. You really covered the


main
ways. In short, there are no "simple" ways because the data has to be
marshaled across the process boundaries and the reason you cannot make a
static field visible in both is because static fields only live within the
process space for the app and each will have its own copy.

"radiax" <ra****@comcast.net> wrote in message
news:Ze********************@comcast.com...
Iam trying to find a simple solution for sharing data between windows
applications( apart of using file system or remoting or MMF) . I tried
using
class library by making data members "shared" but it seems that data
cant
not be passed between applications. what am I doing wrong here? what are
"simple" possible solutions?
thanks



Jan 4 '06 #4
Another option would be to use WSE to achieve this (or "Windows Communication
Foundation" previously known as Indigo). This really falls under the hood of
sockets and custom serialization however the benefits are three-fold.

1) You don't have to do anything in terms of handling sockets etc. You can
simply create a SoapListener on a designated IP port and host a SoapService
(or Service(s)) there. Each client would simply need some way to know where
to send their requests.
2) There is built-in support for security and other advanced features.
3) Support for SOAP messaging which requires almost no effort on your part
and is supported industry-wide so you can communicate with clients written in
different languages. This is handled by the .NET serialization engine and
means you don't need to worry about manual serialization/deserialization of
the messages. It also makes any move to centralise these communications via
ASP.NET web services simpler to implement.

Hope this is of some benefit to you.

Also, if this is something you're thinking about looking into, check out
Thinktecture's WSCF (Web Service Contract First) tool for .NET - I've used it
to define my service interfaces that I host using WSE and it works well and
is easy to manage. It also means that your service interface can be reused in
many ways which can open up other options to you.

Hope this is of some assistance,

-Eric
"radiax" wrote:
Iam trying to find a simple solution for sharing data between windows
applications( apart of using file system or remoting or MMF) . I tried using
class library by making data members "shared" but it seems that data cant
not be passed between applications. what am I doing wrong here? what are
"simple" possible solutions?
thanks

Jan 5 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Tom Q | last post by:
A user has multiple applications running on his/her PC and I want to create a broker component or service that is shared among the multiple apps. Each time an application changes a record it...
6
by: varlagas | last post by:
We disabled the antivirus software but the problem persists. Any clues? Many thanks in advance! Panagiotis Varlagas ======================================================================= ...
1
by: John Baker | last post by:
Hi: I have an application that is getting pretty bloated, and I want to develop new, infrequently used, sections of it ( specifically special report generation) as a separate file from the...
6
by: Sajid Saeed | last post by:
Hi All, I wuld like to know if there is any possibility of sharing a common class between different applications. i.e. if the two applications are running, they can share the class, and changes...
2
by: PeteZ | last post by:
Hi, I was of the understanding that Session variables were GLOBALLY scoped across all Applications on a specific web site and that data obtained and stored in "variables" were available for...
5
by: BPearson | last post by:
Hello I would like to have several sites share a single web.config file. To accomplish this, I would point the root of these sites to the same folder. Is there any reason why I might not want to...
3
by: grooby | last post by:
I would like to develop an asp.net Web application using muliple web projects under one solution file and share the session information between web applications( or projects). Is this possible?
4
by: qube3 | last post by:
We have applications written by JSP/Servlet and ASP.NET. All our future development would be based on ASP.NET. We wants to develop a single user interface so that users would not be aware that...
9
by: Peri | last post by:
Dear All, Is there a way in which 2 application can share a common memory location to access static data? Say for example I have a product master data that is available in a single place, and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.