Questions tagged [stateless-session]

45 questions
14
votes
2 answers

How to use StatelessSession with Spring Data JPA and Hibernate?

I'm using Spring + Spring Data JPA with Hibernate and I need to perform some large and expensive database operations. How I can use a StatelessSession to perform these kind of operations?
jelies
  • 9,110
  • 5
  • 50
  • 65
12
votes
2 answers

Inserts of stateless session of NHibernate are slow

It's been a couple of days that I'm working on improving NHibernate Insert performance. I'd read in many posts (such as this one) that stateless session can insert like 1000~2000 records per second.... However the best time that it could insert…
Javid_p84
  • 848
  • 2
  • 12
  • 26
11
votes
5 answers

What's the best way to use HTTP Authentication in an Ajax Application that's not 100% AJAX

I have a standard HTML login page, which I would much rather use than the standard HTTP authentication pop-up provided by browsers. Today, I am using session cookies to keep track of the session after logging in, but I'd like to be stateless and…
jhericks
  • 5,833
  • 6
  • 40
  • 60
11
votes
3 answers

Spring Boot Basic Authentication without Session (Stateless Session)

I have configured Basic Authentication my Spring-Boot application. Everything is Java Config, no xml. import org.springframework.context.annotation.Configuration; import…
The Coder
  • 2,562
  • 5
  • 33
  • 62
7
votes
1 answer

Cascading collections using NHibernate StatelessSession

What is the proper way to bulk insert entities which contain collections of other entities (a HasMany mapping), using stateless sessions? E.g. Parent class is mapped like this: class ParentMap : ClassMap { public ParentMap() { …
vgru
  • 49,838
  • 16
  • 120
  • 201
5
votes
2 answers

HTTP Request signature without session

I am thinking of a rest web service that ensure for every request sent to him that : The request was generated by the user who claim it ; The request has not been modified by someone else (uri/method/content/date); For GET requests, it should be…
4
votes
1 answer

Is stateless session thread safe?

I know ISession is not thread safe. Is IStatelssSession also not thread safe? I guess the answer is no. I did a quick search but didn't find a reference for this. Thanks.
user593358
4
votes
1 answer

Multiple PHP Web Servers to Share a Single Redis Server for User Sessions

I have 2 web servers running PHP and Nginx... And I have 1 Redis Server. I want the web servers to use the Redis database for user login data. This will allow me to scale out the web servers without forcing logged-in users to re-authenticate if/when…
4
votes
1 answer

Why is Spring Security's SessionManagementFilter running when my session creation policy is set to STATELESS?

I have a J2EE REST-based web application that uses Spring Security 4.0.1.RELEASE. I am configuring Spring Security with a Java-based configuration and have set the session creation policy to STATELESS like…
Matt
  • 23,363
  • 39
  • 111
  • 152
4
votes
1 answer

NodeJS - Framework for stateless sessions?

Is there a framework to support fully client-managed sessions? In other words, instead of storing just the signed pid in the cookie (as Express does), store all context... so that you can manage state across clusters without the requirement to…
Robert Christian
  • 18,218
  • 20
  • 74
  • 89
4
votes
0 answers

Initialize associated entity or collection fails with Stateless Session in NHibernate

I'm trying to make an association with an entity from 3rd party dll. For some reasons, I have to use StatelessSession. With StatefullSession it works but not with Stateless. The idea is to allow 3rd party to add a table and have its data fetched…
Amiram Korach
  • 13,056
  • 3
  • 28
  • 30
3
votes
1 answer

Eager fetching of a great-grandchild collection using a Stateless Session via NHibernate

I'm using an NHibernate Stateless Session to load bulk data into the database. As data is loaded, later entities need to lookup previous entities in order to add them to child collections. This operation involves needing data on a grandchild object,…
codekaizen
  • 26,990
  • 7
  • 84
  • 140
3
votes
2 answers

Lazy lookup of a dictionary value using a stateless session

In my app, I set up a ternary dictionary mapping so that for a given user, I can retrieve "settings" for each instance of an object that belongs to the user. That is, I have something like: public class User { public virtual IDictionary
Daniel Trebbien
  • 38,421
  • 18
  • 121
  • 193
3
votes
3 answers

Unable to bulk insert using NHibernate

I've tried adding bulk inserting to my application, but the Batcher is still NonBatchingBatcher with a BatchSize of 1. This is using C#3, NH3RC1 and MySql 5.1 I've added this to my SessionFactory
simendsjo
  • 4,739
  • 2
  • 25
  • 53
3
votes
0 answers

Transaction management with StatelessSession in Hibernate

I have a concern using StatelessSession and ScrollableResults in spring application with hibernate. I have a number of DAOs mostly using common session object autowired in them, but for one purpose I need to cycle through a whole table. I found out…
1
2 3