stateless

Do stateless random number generators exist?

Is there a difference between generating multiple numbers using a single random number generator (RNG) versus generating one number per generator and discarding it? Do both implementations generate numbers which are equally random? Is there a difference between the normal RNGs and the secure RNGs for this? I have a web application that ...

Can someone explain the difference between @Remote / @Local or only @Stateless in ejb?

I guess the topic says it. I have tried googling this, but havent gotten the answer I am looking for. I have many EJB's with only @Stateless. And sometimes I put @Local on them withouth really knowing why, and the benefits/cons. I also know I can put @Remote, but really dont know the difference. Hope someone can give a clear descriptio...

Preserving checkbox states on same page with query results

I'm using django, and have a static webpage with a GET form, and about 30 checkboxes. The user selects various boxes, and clicks search, and a result from a database is returned to the same page in a table. However, all the checkboxes have been cleared, since HTML is stateless. What's the simplest solution to 'remember' the state of t...

Combining Stateless & Stateful Connection

My application have a Stateless EJB. And Now I need to do some db operation via Stateful. Can this Stateless EJB can access the DB Utility which will open connection stateful? Will this lead to any design / performance Issue? ...

Should I use a separate table to store online users or should I just use additional fields in the extant members table?

I'm working on an online system that allows users to interact socially and of course it will be important to be able to identify users that are in fact online. I know about HTTP being stateless and I know about using sessions, so I'll need to accomplish this by comparing the last active time of a user to an arbitrary expiration time. M...

Stateless Blocking Server Design

Hello Ladies and Gents, A little help please. I am designing a stateless server that will have the following functionality: Client submits a job to the server. Client is blocked while the server tries to perform the job. The server will spawn one or multiple threads to perform the job. The job either finishes, times out or fails. The...

Static vs Instance members in Stateless EJBs

I have a stateless session bean which needs access to a factory class. Is it best to declare this factory class as a static or instance member in the SLSB? Am I correct in saying that, as SLSBs are reused, only one instance of the factory will be created per bean (when going with the instance member option), as opposed to one instance pe...

.NET Workflow Engine Suggestions ( currently considering stateless )

I came across stateless, a hierarchical state machine framework based on Simple State Machine for Boo, but configured using C# 3.0 It is easy to configure and use, I will probably use it soon. But I was just wondering if Anyone used stateless for real projects (If so what is your opinion?) Are there any other good workflow engines fo...

OAuth's tokens and sessions in REST

The other minute I read an article on OAuth. It described especially the tokens being exchanged between client and service provider during a series of requests. The article also mentioned that OAuth gains significant popularity in RESTful APIs as authorization layer. As I understood, REST should be kept completely stateless. The questi...

Any existing way to make sure beans defined in spring xml are stateless?

Working on a large size project, we started to use spring to manage our dependency injection. Since most dev are migrate from coding stateful class, we found some of stateless bean actually contain instance variables which themself are stateful. Correct me if I am wrong, it shouldn't be too tough to write a unit test to verify that all ...

need help in EJB stateless beans

Hi, I am new to EJB. I have a requirement of calling a method of remote stateless bean and setting a value, before calling any method on the same bean. The value set from first method call should be available to second method. I know that a stateless bean can't hold instance variables values for next calls. Is there any alternative to m...

What's the preferred method for authenticating users of a webpage in a RESTful way?

I'm developing a new experimental web-application framework, and I decided to give RESTful some attention. I've read up on the basics, and feel like I have a pretty good understanding of RESTful as a concept. I've got a system up and running, using URLs strictly to define 'nouns' in the system and take the 'verbs' from the HTTP request ...

Can Castle ActiveRecord open a stateless session?

Real simply question: can Castle ActiveRecord open a stateless session? If so, how would I do it? And if not, how would I go about opening a stateless session without it? ...

Stateless Session Beans vs. Singleton Session Beans

The Java EE 6 Tutorial says: To improve performance, you might choose a stateless session bean if it has any of these traits: The bean’s state has no data for a specific client. In a single method invocation, the bean performs a generic task for all clients. For example, you might use a stateless session bean to send an ema...

Best 'logging' option on Amazon Cloud. RDS or SimpleDB?

Hello. My site's architecture includes ASP.Net & MySQL. I am planning to deploy it on Amazon Cloud. This would mean EC2 instance(s) and RDS. My query is regarding logging. I'm ensuring that my application is stateless, so logging on application tier is ruled out. All state/persistence goes into RDS. When it comes to logging, I am not ...

asynchronous stateless API

Hi, Imagine a table view listing some recipes. Each time the user taps on a recipe a new table view is loaded listing receipe ingredients. To get the information, I'm asynchronous calling a REST API using: NSURLRequest *request = [NSURLRequest requestWithURL:url cachePolicy:NSURLRequestReloadIgnor...

Help on custom state transitions and persistance using "StateLess"

I am in the process of rewriting a data driven application in ASP.NET MVC and i am struggling to solve the following problem. The application allows the user to create one or more documents are to be reviewed by a chain of different type of reviewers. The reviews are done by users of different roles (Reviewer, Manager, FinanceApprover...

Stateful vs. Stateless Webservices

Imagine a more complex CRUD application which has a three-tier-architecture and communicates over webservices. The client starts a conversation to the server and doing some wizard like stuff. To process the wizard the client needs feedback given by the server. We started a discussion about stateful or stateless webservices for this ap...

Wicket: stateless AJAX behaviors in stateful page without serialization

I have pretty stateful page with plenty of AJAX components. Most of these components have behaviors, which renders JavaScript code for calling AJAX requests to Java code. Because page isn't stateless, each request causes serialization of page. So far so good. But some of these AJAX requests doesn't change page ever, so serialization of ...

Change from "Session" to "StatelessSession" and I can fetch my Class complete

I use a stateless session and the follow HQL. CreateQuery("select a from Address a") My Address Class has many BankDetails but i can't access. If i use a normal session it works. What can I do? ...