sessionscope

Why is NHibernate lazy loading bound to the session?

Using Castle ActiveRecord, I stumbled into a problem when lazy-loading. The following works (obviously) using (new SessionScope()) { User singleUser = User.FindFirst(...) UserGroup groups = singleUser.Groups; // Lazy-loading groups. } Since I need to modify the session filters in a certain context (using interceptors), I crea...

How can i get a SessionScope Object in my Bean

Hello, i search a way how i can access a class in the sessionscope. I have this class: @ManagedBean @SessionScoped public class UserManagerBean implements Serializable{...} and i will access some fields from a other bean. How can i do this? Thank you ...

SessionScope in BL or DL ?

Imagine that I have 3 projects: DL, BL and WS. DL contains Active Record implementation with all the mappings, BL has some logic (calling various DL methods) and finally WebService project exposes some BL methods (using some DTO mappings). The questions are: Should I put all data related methods in DL or is it allowed to use Session...

Where to use ISessionScope or Transactions?

I have 3 major layers: UI->BL->DL (and I'm using Active Record/Nhibernate if it matters). My question is simple: where should TransactionScopes and ISessionScopes be implemented? My idea is to use transactions either on BL or DL and ISessionScopes only on BL, wrapping multiple (or not) methods from DL so they will share one session. Is...

<h:dataTable> and SessionScoped beans

Hi all! Problem: searching for some more suitable design . Goal: I want to have table of some user information and with button "change password" in column for each user, after click : "change password" button disappeared (rendered ="false") and a inputSecreat field appeared - user entering the password and submitting it (by clicking ...

Severe Session issues ASP.NET

Hi experts I have a kind of an ugly situation. I have a big program that uses session to carry over data from one page to another in a CRM system build in ASP.NET 3.5 C# The problem is that if you have two instance of this program open in the same browser and browse the same page, the sessions of course gets overridden. As you can im...

Is SessionScope exact equivalent of ISession?

Is Castle ActiveRecord's SessionScope exact equivalent of NHibernate's ISession? If yes, why Castle ActiveRecord has provided a duplicate feature? If no, what are their differences? ...