473,569 Members | 2,691 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 1614
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.d elete_me.com> wrote in message
news:Oa******** ******@TK2MSFTN GP12.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******** ******@TK2MSFTN GP09.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.d elete_me.com> wrote in message
news:Oa******** ******@TK2MSFTN GP12.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.d elete_me.com> wrote in message
news:ue******** ******@TK2MSFTN GP10.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******** ******@TK2MSFTN GP09.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.d elete_me.com> wrote in message
news:Oa******** ******@TK2MSFTN GP12.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
4152
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
1983
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 than a plain vanilla schema, but doesn't strike me as obscenely complex. Are there general rules for what can an can not be mapped between any...
4
3468
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 application. When a progress event is called, the main application writes the input to the global DataSet. Occasionally, the DataSet writes itself...
9
23062
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 to a pool. If I assign only one application to a applicaton pool and have multiple worker processes assigned to that pool. Will my application be...
3
3508
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 plus conference attendees). All web form datavalues will be one of the same 200 organizations in this list. I would like to avoid creating 50...
9
1681
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 instance of an object' error: strng = datset.Tables("Users").Rows(0).Item("Users").ToString() My table is called Users and I want the first row, and...
3
2471
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: ------------------------------ <WebMethod()> Public Function myFunction(ByVal sXMLData As String) As String
5
2950
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 document into a text document with a single row for each parent node (that has all of the values from all of the child nodes for that row) The...
6
2095
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 using this code: CType(objDataSet.Tables("MyTable").Rows(0).Item("MyField"), String)
0
7695
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7922
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8119
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7964
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5509
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5218
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3637
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1209
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.