473,804 Members | 3,200 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Composite UI application Block - Thread Safe?

Does anyone have any input on setting up my CAB application so that the
application is thread safe, and cached appropiately? I read that this
can be managed through Services, and dynamic injection. On the
contrary, I was told that this can be handled using Enterprise Library
cached application block. Last, but not least, i read you can implement
this at the class level, creating immutable classes, and caching them
accordingly. Any suggestions would be greatly appreciated?

Jan 25 '07 #1
2 2158
Thus wrote lwhitb1,
Does anyone have any input on setting up my CAB application so that
the application is thread safe, and cached appropiately?
I'm a bit puzzled what a thread-safe *application* might be and how it relates
to caching. What are you trying to achieve?

Cheers,
--
Joerg Jooss
ne********@joer gjooss.de
Jan 25 '07 #2
I'm new to the composite ui application block, so forgive me if
something i say is not completey clear, for i'm still trying to figure
it out. I'm building a CAB application that displays information to a
user from a sql service data layer. I'm building the data layer, and
i'm confused about how I should create the classes. I would like for
the classes I use within the CAB application to be instantiated once,
and use that instance till it changes. Now these static classes need
to be stored somewhere, and for that reason I mentioned caching, for i
figured they would need to be cached in a collection of some sort. They
need to be thread safe so that when they do change, the references to
them won't get screwed up. Now, I have been reading up on CAB, and it
appears as though this can be achieved in a number of ways. For
example, the objectbuilder probably manages these things under the hood
for the models/views and components. Also, you can use existing
provider patterns like the cached application block, dynamic injection,
singelton. etc.. This is where i'm getting lost.. Should I even worry
about creating thread-safe classes at the data layer, and just send the
information to the upper tiers, so that CAB can manage them, or should
i just create a class that is immutable or something at the data layer
level. I guess what i'm trying to say is.. What is the best way to
create the data layer, and pass the data up to a service or view in the
CAB framework..Make s sense? Let me know if I need to clarify anything
...

Thanks for the reply..

On Jan 25, 1:32 pm, Joerg Jooss <news-re...@joergjoos s.dewrote:
Thus wrote lwhitb1,
Does anyone have any input on setting up my CAB application so that
the application is thread safe, and cached appropiately?I' m a bit puzzled what a thread-safe *application* might be and how it relates
to caching. What are you trying to achieve?

Cheers,
--
Joerg Jooss
news-re...@joergjoos s.de
Jan 25 '07 #3

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

Similar topics

2
339
by: Simon Harvey | last post by:
Hi all, Can someone please reasure me that it is entirely possible to use the Data Access Application in large applications - even those that require transactions? I have a friend who is adament that the application block is crap because it uses static methods. He thinks that because its using static methods it is completely riddled with concurrency holes.
6
2155
by: Dan | last post by:
Hi Is Microsoft's Sqlhelper.cs (Microsoft Application Blocks for .NET - Data Access) Thread safe? The documentation has no references to threads. Thanks Dan
16
10096
by: Bill | last post by:
Say I have a childThread currently is running a finally block to cleanup external resources. At the same time the main thread calls childThread.Abort(). The question is: when the ThreadAbortException is thrown, does the childThread finish the remaining code in the finally block?
6
4303
by: Ollie Riches | last post by:
I understand the use of Application.DoEvents() to process all outstanding messages on the message queue in a winforms application if you have long running process on the UI thread. But can anyone explain to me why I need to call DoEvents when I am using a COM component that calls back to into the ..Net application? - If I don't call DoEvents after receiving a callback then sometimes no more messages are pumped, it appears that the message...
10
2332
by: dx | last post by:
I have the Microsoft Press: Developing Microsoft ASP.NET Server Controls and Components book. It's starting to shine some light on control development but there is something about composite controls that I don't understand... I've included a snippet from Chapter 12 below on Composite Controls: <start> Override the CreateChildControls method to instantiate child controls, initialize them, and add them to the control tree. Do not perform...
5
2246
by: Stephane | last post by:
Hi, I want to keep a list of my visitors in an ArrayList which I place in the application object like this: Application("Visitors") = new ArrayList(); // The list of visitors Then, each visitors update their own information in that list for every page they visit.
0
1157
by: lwhitb1 | last post by:
Does anyone have any input on setting up my CAB application so that the application is thread safe, and cached appropiately? I read that this can be managed through Services, and dynamic injection. On the contrary, I was told that this can be handled using Enterprise Library cached application block. Last, but not least, i read you can implement this at the class level, creating immutable classes, and caching them accordingly. Any...
0
914
by: lwhitb1 | last post by:
I was wondering if anyone knows where the best place to set up a CAB app to be thread safe? I read about singleton patterns, dependency injections, and making lower level classes immutable, but i'm not clear on the best approach. Any suggestions?
0
1403
by: Paul | last post by:
I've installed the Composite UI Application block. However, I'm unable to open the Solution (using VS.NET 2005 - Standard Edition). Is this becuase I need VSTS to open the Composite UI Application Block??? The message displayed is: ------------------------------------------------------------------------------------------------ The project file 'D:\Program Files\Microsoft Composite UI App...
0
9706
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9584
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10323
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10082
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9160
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6854
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5654
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4301
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 we have to send another system
2
3822
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.