STATELESS BEAN ACTING AS STATEFULL

Discussions

EJB programming & troubleshooting: STATELESS BEAN ACTING AS STATEFULL

  1. STATELESS BEAN ACTING AS STATEFULL (2 messages)

    HELLO EVERYBODY CAN SOMEBODY EXPLAIN THIS: PLATFORM: JBOSS 4.0.5.GA IDE : ECLIPSE IDE 1.6 FOR JBOSS 4.0.5.GA ========================================== PROBLEM: I MADE A STATELESS EJB WITH TWO METHODS CHANGING A SINGLE GLOBLE CLASS LEVEL VARIABLE. AS STATELESS BEANS DOES NOT MAINTAIN THEIR STATE ACROSS METHOD CALLS... SO IDEALY IT SHOULD NOT SHOW THE CHANGED VALUE WHEN THE OTHER METHOD OF THE EJB IS CALLED FROM THE SAME CLIENT. BUT IT IS SHOWING THE CHANGED VALUE. ============================================= I TRIED THE SAME THING VIA A SERVLET & VIA PLAIN COMMAND BASED JAVA CLIENT. ================================== CAN SOME BODY EXPLAIN THIS.
  2. Stateless bean wont maintain client state across different requests. But if the same bean is servicing ur request, as in one method calls the other, or is a part of the same transaction then you will see the changed value.
  3. GOT THE POINT THANKS