473,513 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"Globaly" declare object on Server-side.

Hi!
I have a multi-layer business application written in VB.NET.
The client can be either a website or a webform communicting with the
bussines-layers through webservices.
In "Client-classes" i'm sometimes using Singletons to "store"
data which is frequently used and should be accessible from all
client-classes.
Now I want to use some kind of global declaration on the server to. I
want to be able to access the same object from all layers
(webservice-Business Rules-Data Layer). I tried to use singletons on
the server to, but realized that all the users and requests shared the
same Singleton object which I don't want.
Jul 21 '05 #1
1 1117
Your best approach would probably be to declare the object in global.asax as
an appliation level object and it would then be accessible to your web
services business layer. You will need to manage locking etc. to stop it
being accessed for update by multiple clients.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Clas" <no****@co.se> wrote in message
news:74**********************************@microsof t.com...
Hi!
I have a multi-layer business application written in VB.NET.
The client can be either a website or a webform communicting with the
bussines-layers through webservices.
In "Client-classes" i'm sometimes using Singletons to "store"
data which is frequently used and should be accessible from all
client-classes.
Now I want to use some kind of global declaration on the server to. I
want to be able to access the same object from all layers
(webservice-Business Rules-Data Layer). I tried to use singletons on
the server to, but realized that all the users and requests shared the
same Singleton object which I don't want.

Jul 21 '05 #2

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

Similar topics

1
1405
by: phfle1 | last post by:
Hi, Is it possible to change the cursor style for all elements without using the document.body.style.cursor . I'm trying to change the cursor globaly, but I have problems with it since my...
0
7267
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
7175
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7391
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,...
0
5697
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,...
0
4754
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...
0
3247
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...
0
3235
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1609
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 ...
0
466
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.