Questions tagged [stateless]

Stateless apps don't expose any information about what has happened or changed since it started running

Stateless apps don't expose any information about what has happened or changed since it started running. They give the same response to the same request, function or method call, every time. HTTP is stateless in its raw form - if you do a GET to a particular URL, you get (theoretically) the same response every time. The exception of course is when we start adding statefulness on top, e.g. with ASP.NET web apps :) But if you think of a static website with only HTML files and images, you'll know what I mean.

521 questions
0
votes
1 answer

Purely functional feedback suppression?

I have a problem that I can solve reasonably easy with classic imperative programming using state: I'm writing a co-browsing app that shares URL's between several nodes. The program has a module for communication that I call link and for browser…
Jacob Oscarson
  • 6,363
  • 1
  • 36
  • 46
0
votes
1 answer

REST stateless with database

A little backstory I have to develop a web application for college. This web application has to do with managing different locations using google maps like pinning new locations adding custom descriptions and so on. The login part is done using…
Edeph
  • 732
  • 2
  • 12
  • 29
0
votes
1 answer

Overriding Stateful annotation with Stateless in JavaEE

I'm wondering how I can dynamically annotate a set of EJB services with either Stateful or Stateless annotation. The reason behind is that the website I'm developing is using a Conversation scope of most of the backing beans. And so I use Stateful…
czetsuya
  • 4,773
  • 13
  • 53
  • 99
0
votes
1 answer

Why @Stateless @WebService is stateful?

With a web service defined like @Stateless import javax.ejb.Stateless; import javax.jws.WebService; @Stateless @WebService(serviceName = "TestService") public class TestService { int counter = 0; public int getCounter() { …
maksim
  • 458
  • 2
  • 6
  • 16
0
votes
0 answers

Use a StatelessForm with CheckBox and with data from DB

I want to make a page which displays which Users of my website have the current "Role". Each users have a set of Roles, and a Role is affected to 0 ~ n users. I'm displaying a basic list with Users's name, and a checkbox for each User. And then a…
Tiller
  • 436
  • 1
  • 4
  • 22
0
votes
1 answer

Restful authentication for non browser consumers

I have a web service written as an ASP MVC application which basically uses rolling cookies as its authentication mechanism. So someone sends their username and password over https to the service, it then verifies them and issues them a cookie…
Grofit
  • 17,693
  • 24
  • 96
  • 176
0
votes
2 answers

Reattaching and manipulating a detached instance in Hibernate (JPA)

I use stateless transactional services (meaning, I open a new session and transaction for every call) like this: @Transactional void someService(Object o) { Object newO = entityManager.merge(o); newO.getChildren().add(something); } The…
Jonas Eicher
  • 1,413
  • 12
  • 18
0
votes
2 answers

Understanding PHP/CGI performance considering HTTP (stateless protocol)

some background to the questions I have just been browsing through some *.php files used in the moodle CMS. Moodle uses PHP-Scripts to generate content of HTML-pages send to the visitors dynamically. Often something like this happens ("inclusion…
humanityANDpeace
  • 4,350
  • 3
  • 37
  • 63
0
votes
1 answer

Trying to build a tic tac toe without any state (in pure fp style)

I am learning Clojure and trying to implement a simple tic-tac-toe (or morpion). But i am working hard in order to avoid any ref/atom/agent ... I know I could do it easily in a console application, as it would not be event-driven, so that I would…
loloof64
  • 5,252
  • 12
  • 41
  • 78
0
votes
1 answer

make a stateless webapi user aware

I am working on a webapi project which of course is supposed to be stateless. The point is that it requires authetication and the majority of it's services is available to logged in users. The catch is that there are several pieces of information…
bandreas
  • 869
  • 1
  • 8
  • 25
0
votes
1 answer

SOA service states

I have a question about service states in SOA (which are supposed to be stateless): I have a service that generates a result after a client's request. This result is very big, so the client lazy loads it in order to provide a fast visualization. The…
user1275011
  • 1,552
  • 1
  • 16
  • 36
0
votes
1 answer

Stateful and Stateless EJB depending on implementation

I am pretty new to Java beans and I would like to know it is possible to create a EJB both as Stateful and Stateless depending on the situation. The concrete case is: I have a DAO EJB that depending on where it is used must have a extended…
gatti
  • 1,083
  • 1
  • 11
  • 25
0
votes
1 answer

Handling large object in stateless environment

We have various windows services that load up a large amount of data i.e. mostly settings, from a database into an object which is used whenever calls are made to our various .net remoting functions (I know it's old!!). Having this object containing…
Thierry
  • 6,142
  • 13
  • 66
  • 117
0
votes
3 answers

Java EE 6 EJB tutorial : why not using @Singleton instead of @Stateless

I looking at one EJB sample from the Java EE 6 tutorial. In This example, I want to know if I could just use @Singleton instead of @Stateless ? package converter.ejb; import java.math.BigDecimal; import javax.ejb.*; @Stateless public…
Sebastien Dionne
  • 757
  • 2
  • 19
  • 34
0
votes
1 answer

EJB @Stateless bean with two clients on different methods and poolsize = 1

Please help me understand @Stateless EJB 3 beans. If I have a bean with two methods and pool size 1, could two clients have simultaneous access to this bean provided that they call different methods on it. I feel that answer is "no" since ejb does…
Rodion Gorkovenko
  • 2,670
  • 3
  • 24
  • 37