473,320 Members | 1,914 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,320 software developers and data experts.

"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 1103
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
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
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.