Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / October 2006

Tip: Looking for answers? Try searching our database.

WSE Session

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike W - 17 Oct 2006 15:44 GMT
We are currently developing a WSE 3.0 service for User Management.  

To increase performance we would like to cache certain objects.  But the
session object is always null inside of WSE.

We can use the HttpContext.Current.Cache object and it seems to work, but
here are my concerns:

Is this cache global across all calls to the wse service.  This is important
because some items in the cache we remove and they need to be removed for
everyone.

Second, we would like to setup this service on 2 apps service and load
balance them.  The cache obviously can't be shared across 2 machines.  If we
could use the session we could use a session server.
Pablo Cibraro [MVP] - 18 Oct 2006 15:29 GMT
Hi Mike,

First of all, the Cache is shared between all the web services configured in
the same web application and same machine.
If you are trying to use the session in a WSE filter or token manager, it
could be null because WSE runs before than the ASP.NET session module (Or
you are trying to use the Session in a web service hosted outside of the
ASP.NET worker process, for instance, a windows console). Anyway, the
purpose of the session is completely different, it does not support
different expiration rules as the cache does.
You can also try with the Enterprise Library Caching application block.

Regards,
Pablo Cibraro.

  As you said, you can use a session server to share session information in
a web farm scenario, but the purpose of the session is completely different
from the purpose of the cache. (The cache supports

> We are currently developing a WSE 3.0 service for User Management.
>
[quoted text clipped - 13 lines]
> we
> could use the session we could use a session server.
Michael Primeaux - 19 Oct 2006 02:11 GMT
Hi Mike,

The System.Web.Caching.Cache (accessed via HttpContext.Cache.Current) is a
process-wide cache. Therefore the cache is "global" to across calls to the
WSE service for the same machine (assuming you're executing the web service
within the same app pool). I say this because it possible to create multiple
instances of the web service each running under a different app pool.
However, the latter deployment scenario isn't a usual configuration.

I'm still unclear as to whether you require session or cache as their
consumer API surface design goals are entirely different. Would you please
tell me a bit more about your scenario?

Kindest regards,
Michael

> We are currently developing a WSE 3.0 service for User Management.
>
[quoted text clipped - 13 lines]
> we
> could use the session we could use a session server.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.