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

why stateless and stateful session bean behaves not as expected

public class Test1(){ public vod method1(){ try{ Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, EJB_JNDI_FACTORY); env.put(Context.PROVIDER_URL,…
user1169587
  • 1,104
  • 2
  • 17
  • 34
0
votes
1 answer

Backbone Collection acting as linked list and persisting models

Hi I'll need your help on the following: I've defined Backbone Collection which acts as a linked list: each Model in the Collection has a reference to its predecessor as well as successor. Inserting a new Model into the Collection triggers an event…
0
votes
0 answers

EJB (Local/Stateless) JDNI Lookup

I have looked around for information on this, but it's been strangely impossible to find. I want to know this: does one have to do anything specific for @Local/@Stateless beans to show up in JNDI? I had thought that this was more or less automatic.…
Jonas N
  • 1,757
  • 2
  • 21
  • 41
0
votes
1 answer

Stateless is not working in AS 7

I'm getting this: [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/PontoComentario].[jsp]] (http--0.0.0.0-8080-2) Servlet.service() for servlet jsp threw exception: org.hibernate.LazyInitializationException: could not initialize…
user1772071
0
votes
1 answer

Stateful objects, properties and parameter-less methods in favour of stateless objects, parameters and return values

I find this class definition a bit odd: http://www.extremeoptimization.com/Documentation/Reference/Extreme.Mathematics.LinearAlgebra.SingleLeastSquaresSolver_Members.aspx The Solve method does have a return value but would not need to because the…
0
votes
1 answer

Initial Context Lookup returns same instance | Inject stateless EJB in Pojo

I am trying to inject a EJB in POJO by using context lookup. What I am expecting is a stateless behavior of EJB as you get when you do a @EJB annotation The EJB has a entityManager which I get from the EntityManagerFactory in the constructor for…
user804979
  • 913
  • 1
  • 6
  • 9
0
votes
1 answer

Glassfish-3.1.2 - Can I inject EntityManger into a stateless bean

I came across this blog below, concerning Servlets and injecting EJBs into them. The author is writing from a standards…
0
votes
1 answer

HTTP persistent connection vs Stateless Web

If HTTP persistent connection is kept alive and done on the same socket with out dropping a socket or creating a new one for next HTTP connection. Then how come that HTTP is stateless and each HTTP request is on its own when they share the same…
eomeroff
  • 9,599
  • 30
  • 97
  • 138
0
votes
1 answer

JPA2.0 & EE6 keeping my entities in sync

I'm new to using ORM tools in enteprise applications. We're building a scaleable application that uses JPA 2.0 and EE6. I'm trying to find a nice pattern to build my application but I can't find a way to keep my entities in sync (I want to pool my…
Rob
  • 2,466
  • 3
  • 22
  • 40
0
votes
1 answer

problems with Stateless session bean with EJB3.0 and websphere6.1

**I am not able to create Stateless session bean with EJB3.0 and Websphere 6.1. I package everything in EAR file and deployed it on Websphere . I am trying to create a Stateless Session bean and expecting it to instantiate session bean and call…
-1
votes
1 answer

Stateless Session Bean using Container Managed EntityManger in Asynchronous method generates constraint violation Excetion in DB

I have a NO Interface View bean (Stateless) which has an asyncronous method. This method is performing persistence access via a Container Managed EntityManager. Unfortunately, it generates Constraint Violation Exceptions when inserting into the Db…
André
  • 172
  • 13
-1
votes
1 answer

Can Textfield be a Stateful widget in Flutter?

I have a text field(stateless widget) and a set of radio buttons(Stateful widget). This text field displays different data, depending on the item selected in the radio button. In such a case, the property of the text field is changing. So what will…
Annapurna
  • 529
  • 1
  • 6
  • 19
-1
votes
1 answer

How to use provider in a builder? FLUTTER

As a hobby and with the purpose of being better with provider I'm converting all the stateful widgets that I like into stateless widgets using provider. I perfectly understand simple cases, but now I have a problem with provider in builder. Here is…
-1
votes
1 answer

Security Bug with Symfony (Hitting Protected Endpoint Always Returns Unauthorized)

I have the following config/packages/security.yml file and it really looks like follows: framework: rate_limiter: username_ip_login: policy: token_bucket limit: 5 rate: { interval: '5 minutes' } …
-1
votes
1 answer

Stateless Function in Java

If we consider a function foo depending on a and b. Would I then write a stateless function as follows: MyClass final b; foo(a) {...} I am asking because foo would depend on the state of the MyClass-object. However, that state is…
1 2 3
34
35