From c9598f9c53df24a4282bb3cdafdca890d91ae0d0 Mon Sep 17 00:00:00 2001 From: Steve Bohlen Date: Sun, 23 Dec 2012 08:55:39 -0500 Subject: [PATCH] renaming references in config and xml files --- .../Spring.Northwind.Web.ConvWA/Web.config | 2 +- .../Web.net30.config | 2 +- .../Web.net40.config | 2 +- .../src/Spring.Northwind.Web.ConvWA/Web.xml | 6 +- ....Web.Conversation.NHibernate32.2010.csproj | 2 +- .../Spring.Web.Conversation.NHibernate32.xml | 958 ++++++++++++++++++ ....Web.Conversation.NHibernate33.2010.csproj | 2 +- .../WebConversationStateTest/Web.Config | 8 +- .../services.xml.config | 68 +- .../Entities/SPCDetailEnt.hbm.xml | 2 +- .../Entities/SPCMasterEnt.hbm.xml | 4 +- .../WebConversationStateTest/Web.Config | 8 +- .../services.xml.config | 68 +- .../Entities/SPCDetailEnt.hbm.xml | 2 +- .../Entities/SPCMasterEnt.hbm.xml | 4 +- 15 files changed, 1048 insertions(+), 90 deletions(-) create mode 100644 src/Spring/Spring.Web.Conversation.NHibernate32/Spring.Web.Conversation.NHibernate32.xml diff --git a/examples/Spring/Spring.Data.NHibernate.Northwind/src/Spring.Northwind.Web.ConvWA/Web.config b/examples/Spring/Spring.Data.NHibernate.Northwind/src/Spring.Northwind.Web.ConvWA/Web.config index 3b9cfa3f..1ee6d5a4 100644 --- a/examples/Spring/Spring.Data.NHibernate.Northwind/src/Spring.Northwind.Web.ConvWA/Web.config +++ b/examples/Spring/Spring.Data.NHibernate.Northwind/src/Spring.Northwind.Web.ConvWA/Web.config @@ -57,7 +57,7 @@ - + diff --git a/examples/Spring/Spring.Data.NHibernate.Northwind/src/Spring.Northwind.Web.ConvWA/Web.net30.config b/examples/Spring/Spring.Data.NHibernate.Northwind/src/Spring.Northwind.Web.ConvWA/Web.net30.config index 875cea62..1b92b2e5 100644 --- a/examples/Spring/Spring.Data.NHibernate.Northwind/src/Spring.Northwind.Web.ConvWA/Web.net30.config +++ b/examples/Spring/Spring.Data.NHibernate.Northwind/src/Spring.Northwind.Web.ConvWA/Web.net30.config @@ -57,7 +57,7 @@ - + diff --git a/examples/Spring/Spring.Data.NHibernate.Northwind/src/Spring.Northwind.Web.ConvWA/Web.net40.config b/examples/Spring/Spring.Data.NHibernate.Northwind/src/Spring.Northwind.Web.ConvWA/Web.net40.config index 3b9cfa3f..1ee6d5a4 100644 --- a/examples/Spring/Spring.Data.NHibernate.Northwind/src/Spring.Northwind.Web.ConvWA/Web.net40.config +++ b/examples/Spring/Spring.Data.NHibernate.Northwind/src/Spring.Northwind.Web.ConvWA/Web.net40.config @@ -57,7 +57,7 @@ - + diff --git a/examples/Spring/Spring.Data.NHibernate.Northwind/src/Spring.Northwind.Web.ConvWA/Web.xml b/examples/Spring/Spring.Data.NHibernate.Northwind/src/Spring.Northwind.Web.ConvWA/Web.xml index d067865d..f816e87a 100644 --- a/examples/Spring/Spring.Data.NHibernate.Northwind/src/Spring.Northwind.Web.ConvWA/Web.xml +++ b/examples/Spring/Spring.Data.NHibernate.Northwind/src/Spring.Northwind.Web.ConvWA/Web.xml @@ -24,7 +24,7 @@ - + @@ -97,7 +97,7 @@ - + @@ -108,7 +108,7 @@ - + diff --git a/src/Spring/Spring.Web.Conversation.NHibernate32/Spring.Web.Conversation.NHibernate32.2010.csproj b/src/Spring/Spring.Web.Conversation.NHibernate32/Spring.Web.Conversation.NHibernate32.2010.csproj index 874921c3..12bafed2 100644 --- a/src/Spring/Spring.Web.Conversation.NHibernate32/Spring.Web.Conversation.NHibernate32.2010.csproj +++ b/src/Spring/Spring.Web.Conversation.NHibernate32/Spring.Web.Conversation.NHibernate32.2010.csproj @@ -25,7 +25,7 @@ DEBUG;TRACE prompt 4 - bin\Debug\Spring.ConversationWA.xml + Spring.Web.Conversation.NHibernate32.xml pdbonly diff --git a/src/Spring/Spring.Web.Conversation.NHibernate32/Spring.Web.Conversation.NHibernate32.xml b/src/Spring/Spring.Web.Conversation.NHibernate32/Spring.Web.Conversation.NHibernate32.xml new file mode 100644 index 00000000..c843edbc --- /dev/null +++ b/src/Spring/Spring.Web.Conversation.NHibernate32/Spring.Web.Conversation.NHibernate32.xml @@ -0,0 +1,958 @@ + + + + Spring.Web.Conversation.NHibernate32 + + + + + Based on + for support of 'session-per-conversation' pattern. + + Hailton de Castro + + + + The logging instance. + + + + + Initializes a new instance of the class. + Uses default values for + + + + + Initializes a new instance of the class. + + Specify the to be set on each session provided by this instance. + Specify the flushmode to be applied on each session provided by this instance. + + + + + Initializes a new instance of the class. + + An instance holding the scope configuration + + + + Sets a flag, whether this scope is in "open" state on the current logical thread. + + + + + + NOOP. + + + + + Open a new session or reconect the + in . + Participating in an existing session registed with + is not alowed. + + + + + + If there is another conversation with a with opened + . + If attempting to participate in an existing NHibernate + managed by . + + + + + + + Close the current view's session and unregisters + from . + + The session factory that on use + A list of conversations which the session can be closed or disconnected + + + If start/resume a conversation from a + when exists a different + with open registered on + + If the holder on , is not a . + + + + + + Gets the flushmode to be applied on each newly created session. + + + This property defaults to to ensure that modifying objects outside the boundaries + of a transaction will not be persisted. It is recommended to not change this value but wrap any modifying operation + within a transaction. + + + + + Get the configured EntityInterceptor + + + + + Id for conversation that open the Session. + + + + + Gets a flag, whether this scope is in "open" state on the current logical thread. + + + + + This sessionHolder creates a session for the active conversation only if it is + needed (). + + + Although a NHibernateSession defers creation of db-connections until they are really + needed, instantiation a session is still more expensive than using LazySessionHolder. + + + + + Initialize a new instance. + + + + + Create a new session on demand + + + + + HttpModule for ending Conversations with Timeout exceeded. + + Hailton de Castro + + + + Add PostRequestHandlerExecute event to clear conversations with timeout exceeded. + + + + + + Disposes of the resources (other than memory) used by the module that implements . + + + + + Handles the Unload event of the page control. + + The source of the event. + The instance containing the event data. + + Necessary for Redirect or Abort for any reason. + + + + + The Names of the s in the + + + + + Sets the that this + object runs in. + + + +

+ Used to obtain the instances of +

+

+ Invoked after population of normal object properties but before an + init callback such as + 's + + or a custom init-method. Invoked after the setting of any + 's + + property. +

+
+ + In the case of application context initialization errors. + + + If thrown by any application context methods. + + +
+ + + Implementation of conversation in the infrastructure of Spring. + It avoid Circular Dependencies. + + Hailton de Castro + + + + Port to conversation. If the object is not found in the current + conversation, will be tried on the parent if the parent is + not null. + + + If is different from spring name for this instance. + + Hailton de Castro + + + + Starts or resumes the conversation and the . + If is not null, so + is called to + Raise SessionHolder for make the reconnection. + + Make return false. + + Update the . + + + + + If this conversation is ended. + + If is not null and + different from + + + + + + + + Ends the conversation. End each of the 'inner conversations' in + . Returns false if the + conversation and all of + has already been ended. + + + + + If . + Session["spring.objects"] + is null. + + The 'spring session scopes' are not located in the key + 'spring.objects' of HttpSessionState. + + + + + + + Starts or resumes the conversation and each 'inner conversation' in + . + It is not about 'Session-per-conversation' because it is done by + . + + + + + Conversation id. + + + + + Return true until is called. + + + + + Return true if this conversation is ended. + + + + + Inner conversation. After added if the + is null it will resolve to 'this'. + + at + , + , + + if Circular Dependency is detected. + + + + Conversation parent. + + + + If this conversation already has a different parent. + + If this Conversation is not new. + + If Circular Dependency is detected. + + The Parent conversation is not new. + + + + + + + TimeOut for the conversation in milliseconds. + If 0 TimeOut will be ignored. + + + + + Last acces for a value into this Conversation or Inner Conversation. + Reset to DateTime.Now each time + is called. + + + + + Conversation Manager. When this is setted if + + returns null so AddConversation is called. + + + + + that is stored in the root conversation. + + + must support 'session-per-conversation'. + + + + + + If this is non-null run pattern 'session-per-conversation'. + It also depends on and . + must support ConversationManager. + + + + + + If this is non-null run pattern 'session-per-conversation'. + It also depends on and . + must support ConversationManager. + + + + + + Indicates that the conversation is paused. + + + + + Default message for "CONVERSATION ALREADY HAS A PARENT" error. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + A String representation from conversation. + + + + + + + + + + + + + + + + Default 180000. + + + + + + + + + + + + + + + . + + + + + + + + + + + + + + + "SessionFactory" name in the current context. + This approach is required to support serialization. + + + + + + + + + + "DbProvider" name in the current context. + This approach is required to support serialization. + + + + + + + + + + + + + + + + + + + + . It is used to valddate + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Returns the current context. Supports serialization and deserialization. + + + + + This was made to stay under session scope. + + Hailton de Castro + + + + manager for Conversations. + + Hailton de Castro + + + + Returns the conversation if it is still alive, otherwise it returns null. + + + + + + + Ends all conversations with the timeout exceeded. + + + + + Close IDbConnections for that + use 'session-per-conversation'. It calls + in all conversations. + + + + + Release the ended conversations And removes them. + If the conversation supports 'session-per-conversation', also close the session. + + + + + Add conversation. If is null + it resolves to 'this'. + + + + If already has another manager. + + + + + Makes the 'root conversation' of + the current active conversation and open/reopen the + if + the conversation supports 'session-per-conversation'. Close all + the connection for all session before. + If is true will end all + paused conversations. + + + + + Returns the active conversation if exists, otherwise returns null. + It depends on + + + + + + If this is non-null run pattern 'session-per-conversation'. + Must be the same SessionFactory of the managed conversations. + + + + + + Ends the "paused conversations" in call to . + Important: Unexpected behavior may occur if there are nested conversations, + as in only the current conversation and its parents + are started, the 'conversations children' remain paused, so these will be ended. + Defaul value: false. + + + When it is true, "start/resume a conversation" will cause the other to be + ended and cleaned up. + + This is useful to avoid memory leak where there are many conversations. + This leak can be very considerable, as the conversation may keep a "NHibernate session" + that can contain many objects in its cache from the database queries. + + + + + + Semaphore to synchronize writes to the dictionary. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Ends all conversations and Closes all their Session. + + + + + Remove conversation. + + + + + + + + + + + "SessionFactory" name in the current context. + This approach is required to support serialization. + + + + + + + + + + + + + + + Returns the current context. Supports serialization and deserialization. + + + + + List that make validation for Circular Dependency for + + Hailton de Castro + + + + Contructor. + + The that owns this . + + + + Common Helper to be run before insert. + + + + + + Common Helper to be run after insert. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Setting for + + Hailton de Castro + + + + Default value for property. + + + + + Initialize a new instance of with default values. + + + Calling this constructor from your derived class leaves + uninitialized. See for more. + + + + + Initialize a new instance of with the given values and references. + + + Specify the to be set on each session provided by the instance. + + + Specify the flushmode to be applied on each session provided by the instance. + + + Calling this constructor marks all properties initialized. + + + + + Override this method to resolve an instance according to your chosen strategy. + + + + + Gets the configured instance to be used. + + + + + + + Gets or Sets the flushmode to be applied on each newly created session. + + + This property defaults to to ensure that modifying objects outside the boundaries + of a transaction will not be persisted. It is recommended to not change this value but wrap any modifying operation + within a transaction. + + +
+
diff --git a/src/Spring/Spring.Web.Conversation.NHibernate33/Spring.Web.Conversation.NHibernate33.2010.csproj b/src/Spring/Spring.Web.Conversation.NHibernate33/Spring.Web.Conversation.NHibernate33.2010.csproj index a2b69ff5..6353035f 100644 --- a/src/Spring/Spring.Web.Conversation.NHibernate33/Spring.Web.Conversation.NHibernate33.2010.csproj +++ b/src/Spring/Spring.Web.Conversation.NHibernate33/Spring.Web.Conversation.NHibernate33.2010.csproj @@ -25,7 +25,7 @@ DEBUG;TRACE prompt 4 - bin\Debug\Spring.Web.Conversation.NHibernate33.XML + Spring.Web.Conversation.NHibernate33.XML
pdbonly diff --git a/test/Spring/Spring.Web.Conversation.NHibernate32.Tests/Data/Spring/ConversationWA/WebConversationStateTest/Web.Config b/test/Spring/Spring.Web.Conversation.NHibernate32.Tests/Data/Spring/ConversationWA/WebConversationStateTest/Web.Config index 44777214..d4a6028c 100644 --- a/test/Spring/Spring.Web.Conversation.NHibernate32.Tests/Data/Spring/ConversationWA/WebConversationStateTest/Web.Config +++ b/test/Spring/Spring.Web.Conversation.NHibernate32.Tests/Data/Spring/ConversationWA/WebConversationStateTest/Web.Config @@ -48,9 +48,9 @@ - + - + @@ -63,9 +63,9 @@ - + - + diff --git a/test/Spring/Spring.Web.Conversation.NHibernate32.Tests/Data/Spring/ConversationWA/WebConversationStateTest/services.xml.config b/test/Spring/Spring.Web.Conversation.NHibernate32.Tests/Data/Spring/ConversationWA/WebConversationStateTest/services.xml.config index a50810ec..66d238b8 100644 --- a/test/Spring/Spring.Web.Conversation.NHibernate32.Tests/Data/Spring/ConversationWA/WebConversationStateTest/services.xml.config +++ b/test/Spring/Spring.Web.Conversation.NHibernate32.Tests/Data/Spring/ConversationWA/WebConversationStateTest/services.xml.config @@ -12,12 +12,12 @@
- + - + @@ -25,7 +25,7 @@ - + @@ -33,11 +33,11 @@ - + - + @@ -52,7 +52,7 @@ - + @@ -62,10 +62,10 @@ - + - + @@ -74,20 +74,20 @@ - + - + - + - + @@ -97,7 +97,7 @@ - + @@ -110,7 +110,7 @@ - + @@ -147,7 +147,7 @@ - + @@ -160,14 +160,14 @@ - + - + @@ -180,7 +180,7 @@ - + @@ -197,14 +197,14 @@ - + - + @@ -217,15 +217,15 @@ - + - + - + @@ -238,14 +238,14 @@ - + - + @@ -261,21 +261,21 @@ - + - + - + @@ -287,14 +287,14 @@ - + - + @@ -303,7 +303,7 @@ - + @@ -313,7 +313,7 @@ - + @@ -325,7 +325,7 @@ - Spring.ConversationWA.NH32.Tests + Spring.Web.Conversation.NHibernate32.Tests @@ -344,7 +344,7 @@ - + diff --git a/test/Spring/Spring.Web.Conversation.NHibernate32.Tests/Entities/SPCDetailEnt.hbm.xml b/test/Spring/Spring.Web.Conversation.NHibernate32.Tests/Entities/SPCDetailEnt.hbm.xml index 6c23b07d..bb81870b 100644 --- a/test/Spring/Spring.Web.Conversation.NHibernate32.Tests/Entities/SPCDetailEnt.hbm.xml +++ b/test/Spring/Spring.Web.Conversation.NHibernate32.Tests/Entities/SPCDetailEnt.hbm.xml @@ -1,5 +1,5 @@  - + diff --git a/test/Spring/Spring.Web.Conversation.NHibernate32.Tests/Entities/SPCMasterEnt.hbm.xml b/test/Spring/Spring.Web.Conversation.NHibernate32.Tests/Entities/SPCMasterEnt.hbm.xml index 27839cf1..9dbe70f8 100644 --- a/test/Spring/Spring.Web.Conversation.NHibernate32.Tests/Entities/SPCMasterEnt.hbm.xml +++ b/test/Spring/Spring.Web.Conversation.NHibernate32.Tests/Entities/SPCMasterEnt.hbm.xml @@ -1,5 +1,5 @@  - + @@ -7,7 +7,7 @@ - + diff --git a/test/Spring/Spring.Web.Conversation.NHibernate33.Tests/Data/Spring/ConversationWA/WebConversationStateTest/Web.Config b/test/Spring/Spring.Web.Conversation.NHibernate33.Tests/Data/Spring/ConversationWA/WebConversationStateTest/Web.Config index 285fffc2..7fd6e56b 100644 --- a/test/Spring/Spring.Web.Conversation.NHibernate33.Tests/Data/Spring/ConversationWA/WebConversationStateTest/Web.Config +++ b/test/Spring/Spring.Web.Conversation.NHibernate33.Tests/Data/Spring/ConversationWA/WebConversationStateTest/Web.Config @@ -48,9 +48,9 @@ - + - + @@ -63,9 +63,9 @@ - + - + diff --git a/test/Spring/Spring.Web.Conversation.NHibernate33.Tests/Data/Spring/ConversationWA/WebConversationStateTest/services.xml.config b/test/Spring/Spring.Web.Conversation.NHibernate33.Tests/Data/Spring/ConversationWA/WebConversationStateTest/services.xml.config index 45615757..8817ee27 100644 --- a/test/Spring/Spring.Web.Conversation.NHibernate33.Tests/Data/Spring/ConversationWA/WebConversationStateTest/services.xml.config +++ b/test/Spring/Spring.Web.Conversation.NHibernate33.Tests/Data/Spring/ConversationWA/WebConversationStateTest/services.xml.config @@ -12,12 +12,12 @@ - + - + @@ -25,7 +25,7 @@ - + @@ -33,11 +33,11 @@ - + - + @@ -52,7 +52,7 @@ - + @@ -62,10 +62,10 @@ - + - + @@ -74,20 +74,20 @@ - + - + - + - + @@ -97,7 +97,7 @@ - + @@ -110,7 +110,7 @@ - + @@ -147,7 +147,7 @@ - + @@ -160,14 +160,14 @@ - + - + @@ -180,7 +180,7 @@ - + @@ -197,14 +197,14 @@ - + - + @@ -217,15 +217,15 @@ - + - + - + @@ -238,14 +238,14 @@ - + - + @@ -261,21 +261,21 @@ - + - + - + @@ -287,14 +287,14 @@ - + - + @@ -303,7 +303,7 @@ - + @@ -313,7 +313,7 @@ - + @@ -325,7 +325,7 @@ - Spring.ConversationWA.NH33.Tests + Spring.Web.Conversation.NHibernate33.Tests @@ -344,7 +344,7 @@ - + diff --git a/test/Spring/Spring.Web.Conversation.NHibernate33.Tests/Entities/SPCDetailEnt.hbm.xml b/test/Spring/Spring.Web.Conversation.NHibernate33.Tests/Entities/SPCDetailEnt.hbm.xml index 05a5309b..4963333e 100644 --- a/test/Spring/Spring.Web.Conversation.NHibernate33.Tests/Entities/SPCDetailEnt.hbm.xml +++ b/test/Spring/Spring.Web.Conversation.NHibernate33.Tests/Entities/SPCDetailEnt.hbm.xml @@ -1,5 +1,5 @@  - + diff --git a/test/Spring/Spring.Web.Conversation.NHibernate33.Tests/Entities/SPCMasterEnt.hbm.xml b/test/Spring/Spring.Web.Conversation.NHibernate33.Tests/Entities/SPCMasterEnt.hbm.xml index 08f04884..a789f00c 100644 --- a/test/Spring/Spring.Web.Conversation.NHibernate33.Tests/Entities/SPCMasterEnt.hbm.xml +++ b/test/Spring/Spring.Web.Conversation.NHibernate33.Tests/Entities/SPCMasterEnt.hbm.xml @@ -1,5 +1,5 @@  - + @@ -7,7 +7,7 @@ - +