New Message on dotNET User Group Hyd

How to track the caller of a method?

Reply
  Reply to Sender   Recommend Message 2 in Discussion
From: prince_royale7

<o:p> </o:p>

Hi All, <o:p></o:p>

<o:p> </o:p>

I am working on an application based on three tiered architecture. I have a business Layer which communicates with the Data Access Layer. Now I created a service layer that’s going to interact with the Business layer which internally communicates with Data Access Layer and gets me all the results from the Data Base. I wish to enforce a security checking in DAL that is when ever an object of DAL is being created I need to check from which component I am creating. <o:p></o:p>

<o:p> </o:p>

When I try to create a DAL object in some other layer by referencing it, DAL should throw exception. <o:p></o:p>

<o:p> </o:p>

My new task is to create a Decorator Class that must validate or secure the DAL such that only calls from BL are allowed and the rest are terminated. <o:p></o:p>

<o:p> </o:p>

My question is how do I achieve this? How should I check in my DAL or Decorator class that the call has arrived only from BL and not from any other layer?<o:p></o:p>

<o:p> </o:p>

It’s like finding out in which layer a call to the method of DAL was activated.<o:p></o:p>

<o:p> </o:p>

<o:p> </o:p>

Regards,<o:p></o:p>

Mahesh Thakur<o:p></o:p>

Software Engineer - Development
AppLabs Technologies Pvt Ltd.
Phone: +91-40-23398222  Extn. 114<o:p></o:p>

[EMAIL PROTECTED]<o:p></o:p>

<o:p> </o:p>


View other groups in this category.

Click here!
Also on MSN:
Start Chatting | Listen to Music | House & Home | Try Online Dating | Daily Horoscopes

To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings.

Need help? If you've forgotten your password, please go to Passport Member Services.
For other questions or feedback, go to our Contact Us page.

If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list.
Remove my e-mail address from dotNET User Group Hyd.

Reply via email to