Questions tagged [istatelesssession]
6 questions
4
votes
2 answers
NHibernate session (and stateless session) and long running application
In the context of a windows web service that's meant to run jobs, we try to reuse the NHibernate DAL we developed for the web application.
For session management we have two options, each one having its advantages and drawbacks:
Stateful…

Pierre Murasso
- 591
- 7
- 14
3
votes
4 answers
Equivalent of Load method for NHibernate IStatelessSession
I am using NHibernate to bulk-insert rows into my database. Because of the amount of data I am inserting, I am using IStatelessSession instead of ISession. The objects I am inserting use assigned identities (ie no hilo or guids generated -- the…

John Jeffery
- 990
- 5
- 19
3
votes
1 answer
NHibernate IStatelessSession and Many-to-Many Relationships
I have a many-to-many relationship between two entities. As part of a batch process, I am creating a large number of these entities and relating them together. This is using an IStatelessSession.
I am using NHibernate 3.0.
Entities:
class Entity1
{
…

Salty
- 100
- 1
- 7
3
votes
1 answer
NHibernate iStatelessSession returns duplicate parent instances on eager fetch
I'm trying to get a root entity and eager fetch it's child entities. But because I'm using the IStatelessSession of NHibernate, it returns duplicates of the root entity for each child. Using an ISession, it would be solved with
.TransformUsing(new…

Bert
- 33
- 4
2
votes
0 answers
NHibernate: Manually handling collection of values reading using IStatelessSession
During bulk load of entities into a database, I have a scenario where an incoming entity relies on an existing entity in the database in order to compute a value. This dependency itself has a collection of value types which is used to help compute…

codekaizen
- 26,990
- 7
- 84
- 140
0
votes
0 answers
Could we lock stateless session bean instance?
guys,
For some reason, I try to hit the max-size of stateless session bean pool.
I can use a mass of threads to do that, by looking up my stateless session bean "at the same time", but it requires to consume many loops or many threads to do that,…

user1684651
- 390
- 1
- 8
- 21