473,503 Members | 1,953 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Single Dataset object for all processes

Hello group,
I have a Windows Service and an application (C#). Both processes need access
to a single dataset object (created and modified by the service and
application will only read the dataset). I thought this was possible with
..Net remoting, but not able to figure out a way to make this possible. Does
anyone know if it's possible to achieve this?

Thanks,
-Prabhu
Nov 15 '05 #1
3 1608
Prabhu,
Normally what I do is to add the DataSet to a Class Library project, then
reference this Class Library from both the application & the Windows
Service.

Hope this helps
Jay

"Prabhu Shastry" <pr****@gilpi.delete_me.com> wrote in message
news:Oa**************@TK2MSFTNGP12.phx.gbl...
Hello group,
I have a Windows Service and an application (C#). Both processes need access to a single dataset object (created and modified by the service and
application will only read the dataset). I thought this was possible with
.Net remoting, but not able to figure out a way to make this possible. Does anyone know if it's possible to achieve this?

Thanks,
-Prabhu

Nov 15 '05 #2
Jay,
Thanks for the reply. This is what I have done, but what I need to have a
single object instance available for both processes. In other words, the
service creates and maintains the dataset object and the application just
uses the very same object. I was thinking of having a singleton class wrap
the dataset in the service but wanted to know if there is a better approach.

-Prabhu

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:Ol**************@TK2MSFTNGP09.phx.gbl...
Prabhu,
Normally what I do is to add the DataSet to a Class Library project, then
reference this Class Library from both the application & the Windows
Service.

Hope this helps
Jay

"Prabhu Shastry" <pr****@gilpi.delete_me.com> wrote in message
news:Oa**************@TK2MSFTNGP12.phx.gbl...
Hello group,
I have a Windows Service and an application (C#). Both processes need access to a single dataset object (created and modified by the service and
application will only read the dataset). I thought this was possible with
.Net remoting, but not able to figure out a way to make this possible. Does anyone know if it's possible to achieve this?

Thanks,
-Prabhu


Nov 15 '05 #3
Prabhu,
The singleton in .NET remoting sounds like what you want, however I have not
used it...

Hope this helps
Jay

"Prabhu Shastry" <pr****@gilpi.delete_me.com> wrote in message
news:ue**************@TK2MSFTNGP10.phx.gbl...
Jay,
Thanks for the reply. This is what I have done, but what I need to have a
single object instance available for both processes. In other words, the
service creates and maintains the dataset object and the application just
uses the very same object. I was thinking of having a singleton class wrap
the dataset in the service but wanted to know if there is a better approach.
-Prabhu

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:Ol**************@TK2MSFTNGP09.phx.gbl...
Prabhu,
Normally what I do is to add the DataSet to a Class Library project, then
reference this Class Library from both the application & the Windows
Service.

Hope this helps
Jay

"Prabhu Shastry" <pr****@gilpi.delete_me.com> wrote in message
news:Oa**************@TK2MSFTNGP12.phx.gbl...
Hello group,
I have a Windows Service and an application (C#). Both processes need

access
to a single dataset object (created and modified by the service and
application will only read the dataset). I thought this was possible with .Net remoting, but not able to figure out a way to make this possible.

Does
anyone know if it's possible to achieve this?

Thanks,
-Prabhu


Nov 15 '05 #4

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

Similar topics

2
4146
by: curious_one | last post by:
Hi, Is there a way to access a single instance of an object(singleton class) across different processes ? thanks curious.one
1
1972
by: David Laub | last post by:
The following valid XSD schema can NOT be successfully read by the ReadXMLSchema method of the DataSet object - it errors out with a "NonEmptyString not defined" error. This schema is more complex...
4
3460
by: Eric | last post by:
Hi, can anyone guide me throught this: In my application, I have a global DataSet. I then run FTP processes in up to 10 simultaneous threads and each thread calls progress events in the main...
9
23055
by: Abhishek Srivastava | last post by:
Hello All, In IIS 6.0 We have a concept of worker processes and application pools. As I understand it, we can have multiple worker process per appliction pool. Each worker process is dedicated...
3
3504
by: Bill | last post by:
I have a seating chart web form that has over 50 entry field controls (tables/booths) where I use a DropDownList box to select a single company name from a single large list of organizations (200...
9
1674
by: Stephen | last post by:
OK, I have filled a DataSet with an SqlDataAdapter and I just want the data in one column of one row. How can I do this since the following gives me the infamous 'Object reference not set to an...
3
2461
by: eross | last post by:
Noob here, I am trying to manage calls from multiple clients to my web service by only letting one execute at a time and forcing the others to wait. Code is as follows: ...
5
2937
by: BMeyer | last post by:
I have been losing my mind trying to parse an XML document (with nested child elements, not all of which appear in each parent node) into a DataGrid object. What I want to do is "flatten" the XML...
6
2091
by: Ben | last post by:
Hi We have a Dataset that has been populated from the output parameter of a Stored Procedure (@Output). I understand that I can extract a single item when the dataset is populated by a table...
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7348
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...
1
7006
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7467
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5592
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5021
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
1519
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
397
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.