Session tracing with HttpSessionBindingListener

Hi,
I hope someone can help.
I am an Oracle developer/ assis,. dba looking at the possiblilties of Servlet and JSP's as
front end apps for my databases.
I'm trying to call an event when a session invalidates but i am having great difficulty whith
getting HttpSessionBindingListenerto be called.
Here is my test system.
this is just one method of using the HttpSessionBindingListener
i have also even thrown the RunTimeException without no effect.
import java.io.*;
import javax.servlet.http.HttpSessionBindingListener;
import javax.servlet.http.HttpSessionBindingEvent;
public class sessLsnr implements HttpSessionBindingListener, Serializable {
String _path = new String("c:\test.txt");
public sessLsnr() {
public void valueBound(HttpSessionBindingEvent event) {
try {
File file = new File(_path);
if (file.exists()) {
     FileOutputStream out = new FileOutputStream(_path);
     ObjectOutputStream s = new ObjectOutputStream(out);
     s.writeObject(this);
     s.flush();
s.close();
out.close();
catch (Exception e) {
e.printStackTrace();
public void valueUnbound(HttpSessionBindingEvent event) {
try {
File file = new File(_path);
if (file.exists()) {
     FileOutputStream out = new FileOutputStream(_path);
     ObjectOutputStream s = new ObjectOutputStream(out);
     s.writeObject(this);
     s.flush();
s.close();
out.close();
catch (Exception e) {
e.printStackTrace();
and the initial servlet.
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
public class testlsnr extends HttpServlet {
public void init(ServletConfig config) throws ServletException {
super.init(config);
public void doGet(HttpServletRequest request,
HttpServletResponse response)throws ServletException, IOException{
processRequest(request, response);
public void doPost(HttpServletRequest request,
HttpServletResponse response)throws ServletException, IOException{
processRequest(request, response);
protected void processRequest(HttpServletRequest request, HttpServletResponse response){
HttpSession session = request.getSession(true);
session.setMaxInactiveInterval(150);
sessLsnr _lsnr = (sessLsnr) session.getAttribute("test");
if (_lsnr == null) {
_lsnr =  new  sessLsnr();
session.setAttribute("test", _lsnr);
Please can someone help as from the documentation i have read and examples i have seen i think that i have got it right but with it not been called there is something wrong.
Many Thanks
Phenoracle

In A JSP Page
for example:
<html>
<%@ page language="java" import="java.sql.*;" %>
<jsp:useBean id = "Conn" scope = "page" class = "package.class file name" />
<%
Assuming the SESSIONVALUE - session variable is intialised previuosly in a JSP Page.
String ChkSession = (String)session.getValue("SESSIONVALUE");
if(ChkSession != null) {
execute the code when the session value is true (you can redirect the page or include the pages according to your requirement)
else {
execute the code when the session value is false - expired (you can redirect the page or include the pages according to your requirement)
%>
</html>
This may be helpful, if you have any doubts feel free to ask me
rambee

Similar Messages

  • Problem with HttpSessionBindingListener

    Hi
    I have a problem with HttpSessionBindingListener.
    The sesion timeout in web.xml is 10 min.
    I open sesion 1 at 10:00 am
    I open sesion 2 at 10:05 am
    The valueUnbound method is called twice at 10:15 am
    The problem is that the valueUnbound is fired only when the last sesion on the site gets timeout. If the example worked well:
    The valueUnbound would called would be fired at 10:10 am (sesion 1)
    The valueUnbound would called would be fired at 10:15 am (sesion 2)
    The example code is very easy:
    public class ususs extends java.lang.Object implements HttpSessionBindingListener
         private String userName;
    public ususs(String userName) {
    this.userName=userName;
         public void valueBound(HttpSessionBindingEvent event)
              userName="kk";
         public void valueUnbound(HttpSessionBindingEvent event)
                   userName="";
    ... And request.getSession().setAttribute("oUsuss", new ususs("myuser")); when the user logins
    Thanks

    The ConnectionCloser code:
    public void valueBound( HttpSessionBindingEvent event )
         System.out.println( "[ConnectionCloser::valueBound]" );
    public void valueUnbound( HttpSessionBindingEvent event )
         System.out.println( "[ConnectionCloser::valueUnbound]" );
    }The login method, session.setAttribute should invoke valueBound in ConnectionCloser
    private void login( HttpServletRequest, HttpServletResponse)
         throws ServletException, IOException
         HttpSession session = request.getSession( true );
         Integer oTilr = (Integer)session.getAttribute("tilr");
         if( oTilr!=null && oTilr.intValue()>MAX_TILRAUNIR )
              villubodTilNotanda( "Of margar ....
         else
              try
                   Connection cTengingNotanda = Vinnsla.login(...
                   session.setAttribute( "tn", cTengingNotanda );
                   sendaSvar( "Innskr?ning t?kst" );
              catch( Exception e )
                   Integer oT2 = null;
                   if( oTilr!=null )
                        oT2 = new Integer(oTilr.intValue()+1 );
                   else
                        oT2 = new Integer( 1 );
                   session.setAttribute( "tilr", oT2 );
                   villubodTilNotanda( "Sennilega ...", response );
    }The logout method: session.invalidate() should invoke valueUnbound in ConnectionCloser
    private void logout( HttpServletReq. request, HttpServletResp. r )
         throws ServletException, IOException
         HttpSession session = request.getSession();
         if( session == null )
              villubodTilNotanda( "?? ert ekki innskr??(ur)...
         else
              session.invalidate();
              skilabodTilNotanda( "?tskr?ning t?kst", response );
    }thanks again,
    Atli

  • Vi session strategy with LV 7 in Test Stand

    Hi all, Im a producing a set of vi's(LV7.1) which will be strung together in a Open Visa, Write visa ..., Read visa , Close visa, over several instruments.
    I wish later to use Test Stand(3.1) to slice these routines, but I am not sure how test stand handles the session references when I break the flow.
    Im thinking of a first step that initialises all instruments , then later steps that grab the session references and perform tests.
    Do I need to store the sessions as varables in Test Stand?, or is there a better way?.Is there any examples that cover this topic?
    thanks

    I guess that a better way is NI Session Manager.
    NI Session Manager is the software component (of NI TestStand) from which you obtain instrument sessions. Session Manager returns a reference to the session object with the name you specify. If the session object you specify does not yet exist, Session Manager creates it and returns a reference to the new session.
    Session Manager also allows you to close all opened sessions automatically.
    "Only a life lived in the service to others is worth living..." - Albert Einstein
    Attachments:
    SMgrRef.chm ‏121 KB

  • Set Session State with Shuttle items

    Is it possible to have session state set with each item selected in a shuttle? You have a shuttle with 4 possible options, you select item 2 from the left portion of shuttle and it is moved to the right.. Can you set the session state at that point?
    What I am trying to do is take the session state after change in the control and use it to populate a text field below. The returned values are used in a sql select to populate the text box with a looked up value...
    Thank you,
    Tony Miller
    Ruckersville, VA

    TexasApexDeveloper wrote:
    Won't this just push the last items value in, as apposed to appending the value?
    Tony,
    No. Because for shuttle items the return value is stored as colon delimited string.
    Means after each change you will have a colon delimited string in the session state with selected values(moved to right).
    See this http://apex.oracle.com/pls/apex/f?p=46417:47

  • Synchronizing persistent tmux loginctl session ID with new session

    Hey all. Does anyone else have the issue with a persistent tmux session losing it's 'active' session status with loginctl after restarting the window manager (monsterwm in this case, logging in automatically on VT1 per the wiki)? This causes issues with udisks mounting priviliges. I'd think it'd cause issues with pulseaudio but it doesn't (and I don't understand why).
    So, to reproduce:
    1. Fresh reboot and login
    2. Open terminal. $XDG_SESSION_ID will be 1
    3. Open tmux instance. $XDG_SESSION_ID will be 1
    4. Restart the window manager
    5. Open terminal. $XDG_SESSION_ID = 3. loginctl session-status active=yes
    6. Reattach tmux session. XDG_SESSION_ID =1. loginctl session-status active=no
    Is there some easy way to keep these synchronized so I don't have permissions issues?
    Thanks!
    Scott

    No, it has nothing to do with host names, CNAME, DNS or anything.
    The session ID is sent to the server from the browser in either a cookie header or as part of the "extra info" part of a URL with the request. If there is no session ID in either place, the server creates a new session. If there is a session ID, then it gets the session object (if it's not expired). Then it sends the session ID back to the browser with the response to that request (either as a cookie or encoded into the URLs in the page, which you have to do explicitly do for each URL). Click on a link, then the process starts again. The first time you go to a site, you have no session ID. The server just makes a new one.
    The only thing that domain names have any affect on is cookies. Cuz cookies are name/value data associated with a domain name of the server (amongst other things). The browser, for security reasons, only sends cookies in requests to servers that set the cookie in the first place. The server can't get cookies that it didn't set.
    So if you have a server running on your local machine, you can access that server in 3 ways:
    1) localhost
    2) network name
    3) domain name
    The browser can know quite easily that 1 and 2 are the same thing, and send cookies for either interchangably (not that it has to, but it seems you are seeing this happen, so...). But the browser will probably not make any assumption about 3's relation to 1 or 2. The association is generally to domain name, not necessarily IP address.
    And it's really a moot point anyway. You should not typically be accessing a server from those 3 different means within the same session. Someone connecting to your server isn't going to use anything but #3 anyway, the other 2 (definitely #1 and #2 only works on the same LAN) wouldn't make much sense. So there's not going to be this issue at all. The session ID itself has no relation whatsoever to a client's domain name.

  • ODI-1217 session fails with return code 904

    Hi all,
    I am anil, I new to ODI, can any one help me in it.
    I have just created a one on one mapping, and then executed it, and I am getting "ODI-1217 session fails with return code 904" this error, what to do, why it happens, can any have any idea.
    Thanks,
    Anil

    Hi,
    it just returns this error.Could you copy here all error  ?
    Regards

  • Session control with multiple web servers in IE

    to understand my problem do the following:
    make a page with this code:
    <%
    out.println("sessionID = "+session.getId());
    %>
    Run two (2) instance of web servers (can be a tomcat) in different ports...
    open IE and access the URL: http://localhost:8080/test/mytest.jsp
    see id number...
    access http://localhost:8081/test/mytest.jsp
    see id number...
    now access http://localhost:8080/test/mytest.jsp again
    and will see that IE lost the session and has a different session id.
    if you make this test in Nestcape it will keep the same session id when you access the 8080 server again, and is what i want :)
    anybody knows a solution to this?
    in the real world, my application has a frame with a menu that runs in 8080 server port and the application that are called by this menu will run in different ports in another frame. the problems is that when a call a application in another port, with IE i lost the session from the menu that runs on port 8080. With Netscape work perfect!
    somebody can help?

    this seems to have to do with the handling of sessoin cookies. IE creates one cookie for every browser instance whereas Netscape creates one session cookie for all browser instanced. Linke this Netscape shares a session cookie with the whole application wheres as IE does not.
    Just to make it clear: none of the both handling methodes are right or wrong. In my opinionen from the point of security, the IE solution is better.
    The only workaround i see is to implement a session id your own. Store it in the session object and the session object into a session manager that can be accessed from both application.

  • No session found with status "New" or "Error"

    Hi,
    I put the statement after the CLOSE GROUP to process the BDC automatically:
      SUBMIT RSBDCSUB AND RETURN
             EXPORTING LIST TO MEMORY
             WITH MAPPE = SESSION.
             WITH VON = SY-DATUM
             WITH BIS = L_NEXT_DAY
             WITH Z_VERARB = 'X'
             WITH FEHLER = ' '.
    And when I ran it I got an error that says
    <i>No session found with status "New" or "Error"</i>
    When I go to SM35, I see the session in the 'New' tab.  How can I get this to process completely without manual intervention or first thing first no error from running the program?
    Thanks,
    Will

    Hi Rob,
    I will try the COMMIT. I think because I processing mutltiple GS01 transaction in one program.
    Hi Sudheer,
    I am actually usinng the INCLUDE that was given to me when I did the recording.  Here is the complete code from the include.
    ***INCLUDE BDCRECX1.
    for programs doing a data transfer by creating a batch-input session
    and
    for programs doing a data transfer by CALL TRANSACTION USING
    SELECTION-SCREEN BEGIN OF LINE.
      PARAMETERS SESSION RADIOBUTTON GROUP CTU.  "create session
      SELECTION-SCREEN COMMENT 3(20) TEXT-S07 FOR FIELD SESSION.
      selection-screen position 45.
      PARAMETERS CTU RADIOBUTTON GROUP  CTU.     "call transaction
      SELECTION-SCREEN COMMENT 48(20) TEXT-S08 FOR FIELD CTU.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
      SELECTION-SCREEN COMMENT 3(20) TEXT-S01 FOR FIELD GROUP.
      selection-screen position 25.
      PARAMETERS GROUP(12).                      "group name of session
      SELECTION-SCREEN COMMENT 48(20) TEXT-S05 FOR FIELD CTUMODE.
      selection-screen position 70.
      PARAMETERS CTUMODE LIKE CTU_PARAMS-DISMODE DEFAULT 'N'.
                                          "A: show all dynpros
                                          "E: show dynpro on error only
                                          "N: do not display dynpro
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
      SELECTION-SCREEN COMMENT 3(20) TEXT-S02 FOR FIELD USER.
      selection-screen position 25.
      PARAMETERS: USER(12) DEFAULT SY-UNAME.     "user for session in batch
      SELECTION-SCREEN COMMENT 48(20) TEXT-S06 FOR FIELD CUPDATE.
      selection-screen position 70.
      PARAMETERS CUPDATE LIKE CTU_PARAMS-UPDMODE DEFAULT 'L'.
                                          "S: synchronously
                                          "A: asynchronously
                                          "L: local
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
      SELECTION-SCREEN COMMENT 3(20) TEXT-S03 FOR FIELD KEEP.
      selection-screen position 25.
      PARAMETERS: KEEP AS CHECKBOX.       "' ' = delete session if finished
                                          "'X' = keep   session if finished
      SELECTION-SCREEN COMMENT 48(20) TEXT-S09 FOR FIELD E_GROUP.
      selection-screen position 70.
      parameters E_GROUP(12).             "group name of error-session
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
      SELECTION-SCREEN COMMENT 3(20) TEXT-S04 FOR FIELD HOLDDATE.
      selection-screen position 25.
      PARAMETERS: HOLDDATE LIKE SY-DATUM.
      SELECTION-SCREEN COMMENT 51(17) TEXT-S02 FOR FIELD E_USER.
      selection-screen position 70.
      PARAMETERS: E_USER(12) DEFAULT SY-UNAME.    "user for error-session
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
      SELECTION-SCREEN COMMENT 51(17) TEXT-S03 FOR FIELD E_KEEP.
      selection-screen position 70.
      PARAMETERS: E_KEEP AS CHECKBOX.     "' ' = delete session if finished
                                          "'X' = keep   session if finished
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
      SELECTION-SCREEN COMMENT 51(17) TEXT-S04 FOR FIELD E_HDATE.
      selection-screen position 70.
      PARAMETERS: E_HDATE LIKE SY-DATUM.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN BEGIN OF LINE.
      SELECTION-SCREEN COMMENT 1(33) TEXT-S10 FOR FIELD NODATA.
      PARAMETERS: NODATA DEFAULT '/' LOWER CASE.          "nodata
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
      SELECTION-SCREEN COMMENT 1(33) FOR FIELD SMALLLOG.
      PARAMETERS: SMALLLOG as checkbox.  "' ' = log all transactions
                                         "'X' = no transaction logging
    SELECTION-SCREEN END OF LINE.
      data definition
          Batchinputdata of single transaction
    DATA:   BDCDATA LIKE BDCDATA    OCCURS 0 WITH HEADER LINE.
          messages of call transaction
    DATA:   MESSTAB LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
          error session opened (' ' or 'X')
    DATA:   E_GROUP_OPENED.
          message texts
    TABLES: T100.
      at selection screen                                                *
    AT SELECTION-SCREEN.
    group and user must be filled for create session
      IF SESSION = 'X' AND
         GROUP = SPACE OR USER = SPACE.
        MESSAGE E613(MS).
      ENDIF.
      open dataset                                                       *
    FORM OPEN_DATASET USING P_DATASET.
      OPEN DATASET P_DATASET
                   FOR INPUT IN TEXT MODE
                   ENCODING DEFAULT.
      IF SY-SUBRC <> 0.
        WRITE: / TEXT-E00, SY-SUBRC.
        STOP.
      ENDIF.
    ENDFORM.
      close dataset                                                      *
    FORM CLOSE_DATASET USING P_DATASET.
      CLOSE DATASET P_DATASET.
    ENDFORM.
      create batchinput session                                          *
      (not for call transaction using...)                                *
    FORM OPEN_GROUP.
      IF SESSION = 'X'.
        SKIP.
        WRITE: /(20) 'Create group'(I01), GROUP.
        SKIP.
      open batchinput group
        CALL FUNCTION 'BDC_OPEN_GROUP'
             EXPORTING  CLIENT   = SY-MANDT
                        GROUP    = GROUP
                        USER     = USER
                        KEEP     = KEEP
                        HOLDDATE = HOLDDATE.
        WRITE: /(30) 'BDC_OPEN_GROUP'(I02),
                (12) 'returncode:'(I05),
                     SY-SUBRC.
      ENDIF.
    ENDFORM.
      end batchinput session                                             *
      (call transaction using...: error session)                         *
    FORM CLOSE_GROUP.
      IF SESSION = 'X'.
      close batchinput group
        CALL FUNCTION 'BDC_CLOSE_GROUP'.
        WRITE: /(30) 'BDC_CLOSE_GROUP'(I04),
                (12) 'returncode:'(I05),
                     SY-SUBRC.
      ELSE.
        IF E_GROUP_OPENED = 'X'.
          CALL FUNCTION 'BDC_CLOSE_GROUP'.
          WRITE: /.
          WRITE: /(30) 'Fehlermappe wurde erzeugt'(I06).
          E_GROUP_OPENED = ' '.
        ENDIF.
      ENDIF.
    ENDFORM.
           Start new transaction according to parameters                 *
    FORM BDC_TRANSACTION USING TCODE.
      DATA: L_MSTRING(480).
      DATA: L_SUBRC LIKE SY-SUBRC.
    batch input session
      IF SESSION = 'X'.
        CALL FUNCTION 'BDC_INSERT'
             EXPORTING TCODE     = TCODE
             TABLES    DYNPROTAB = BDCDATA.
        IF SMALLLOG <> 'X'.
          WRITE: / 'BDC_INSERT'(I03),
                   TCODE,
                   'returncode:'(I05),
                   SY-SUBRC,
                   'RECORD:',
                   SY-INDEX.
        ENDIF.
    call transaction using
      ELSE.
        REFRESH MESSTAB.
        CALL TRANSACTION TCODE USING BDCDATA
                         MODE   CTUMODE
                         UPDATE CUPDATE
                         MESSAGES INTO MESSTAB.
        L_SUBRC = SY-SUBRC.
        IF SMALLLOG <> 'X'.
          WRITE: / 'CALL_TRANSACTION',
                   TCODE,
                   'returncode:'(I05),
                   L_SUBRC,
                   'RECORD:',
                   SY-INDEX.
          LOOP AT MESSTAB.
            SELECT SINGLE * FROM T100 WHERE SPRSL = MESSTAB-MSGSPRA
                                      AND   ARBGB = MESSTAB-MSGID
                                      AND   MSGNR = MESSTAB-MSGNR.
            IF SY-SUBRC = 0.
              L_MSTRING = T100-TEXT.
              IF L_MSTRING CS '&1'.
                REPLACE '&1' WITH MESSTAB-MSGV1 INTO L_MSTRING.
                REPLACE '&2' WITH MESSTAB-MSGV2 INTO L_MSTRING.
                REPLACE '&3' WITH MESSTAB-MSGV3 INTO L_MSTRING.
                REPLACE '&4' WITH MESSTAB-MSGV4 INTO L_MSTRING.
              ELSE.
                REPLACE '&' WITH MESSTAB-MSGV1 INTO L_MSTRING.
                REPLACE '&' WITH MESSTAB-MSGV2 INTO L_MSTRING.
                REPLACE '&' WITH MESSTAB-MSGV3 INTO L_MSTRING.
                REPLACE '&' WITH MESSTAB-MSGV4 INTO L_MSTRING.
              ENDIF.
              CONDENSE L_MSTRING.
              WRITE: / MESSTAB-MSGTYP, L_MSTRING(250).
            ELSE.
              WRITE: / MESSTAB.
            ENDIF.
          ENDLOOP.
          SKIP.
        ENDIF.
    Erzeugen fehlermappe ************************************************
        IF L_SUBRC <> 0 AND E_GROUP <> SPACE.
          IF E_GROUP_OPENED = ' '.
            CALL FUNCTION 'BDC_OPEN_GROUP'
                 EXPORTING  CLIENT   = SY-MANDT
                            GROUP    = E_GROUP
                            USER     = E_USER
                            KEEP     = E_KEEP
                            HOLDDATE = E_HDATE.
             E_GROUP_OPENED = 'X'.
          ENDIF.
          CALL FUNCTION 'BDC_INSERT'
               EXPORTING TCODE     = TCODE
               TABLES    DYNPROTAB = BDCDATA.
        ENDIF.
      ENDIF.
      REFRESH BDCDATA.
    ENDFORM.
           Start new screen                                              *
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
      CLEAR BDCDATA.
      BDCDATA-PROGRAM  = PROGRAM.
      BDCDATA-DYNPRO   = DYNPRO.
      BDCDATA-DYNBEGIN = 'X'.
      APPEND BDCDATA.
    ENDFORM.
           Insert field                                                  *
    FORM BDC_FIELD USING FNAM FVAL.
      IF FVAL <> NODATA.
        CLEAR BDCDATA.
        BDCDATA-FNAM = FNAM.
        BDCDATA-FVAL = FVAL.
        APPEND BDCDATA.
      ENDIF.
    ENDFORM.
    Thanks
    Will
    I awarded points to everyone. Thanks so much.
    Message was edited by:
            Will Ferrell

  • Replicated session state with WLS 5.1 sp 6 in cluster

              Hello, i've seen in BEA documentation this:
              Applications Using Frames Must Coordinate Session Access
              If you are designing a web application that utilizes multiple frames, keep in mind
              that there is no synchronization of requests made by frames in a given frameset.
              For example, it is possible for multiple frames in a frameset to create multiple
              sessions on behalf of the client application, even though the client should logically
              create only a single session.
              In a clustered environment, poor coordination of frame requests can cause unexpected
              application behavior. For example, multiple frame requests can "reset" the application's
              association with a clustered instance, because the proxy plug-in treats each request
              independently. It is also possible for an application to corrupt session data by
              modifying the same session attribute via multiple frames in a frameset.
              To avoid unexpected application behavior, always use careful planning when accessing
              session data with frames. You can apply one of the following general rules to avoid
              common problems:
              ·     In a given frameset, ensure that only one frame creates and modifies session data.
              ·     Always create the session in a frame of the first frameset your application uses
              (for example, create the session in the first HTML page that is visited). After the
              session has been created, access the session data only in framesets other than the
              first frameset.
              My environment is clustered(multi-tier) and jsp and servlets use frameset, could
              you explane this?
              I don't understand very well
              Thanks and regards
              Fabio
              

              Thanks for you suggest!
              Fabio
              "Mike Reiche" <[email protected]> wrote:
              >
              >It means that all the jsps executed from the same browser use the same
              >httpsession
              >- so be aware of it.
              >
              >If the jsp in the first frame does ---
              >
              > httpSession.put("MYNAME", "GOODVALUE");
              >
              >and the jsp the second frame does ....
              >
              > httpSession.put("MYNAME", "BADVALUE");
              >
              >then the jsp in the first frame does ...
              >
              > value = httpSession.get("MYNAME");
              >
              >You might get "GOODVALUE" or you might get "BADVALUE" since both
              >JSPs execute concurrently without synchronization and they both store
              >something under
              >the same key in the same httpSession.
              >
              >Mike
              >
              >"Fabio Rossi" <[email protected]> wrote:
              >>
              >>Hello, i've seen in BEA documentation this:
              >>
              >>Applications Using Frames Must Coordinate Session Access
              >>
              >>If you are designing a web application that utilizes multiple frames,
              >keep
              >>in mind
              >>that there is no synchronization of requests made by frames in a given
              >frameset.
              >>For example, it is possible for multiple frames in a frameset to create
              >>multiple
              >>sessions on behalf of the client application, even though the client
              >should
              >>logically
              >>create only a single session.
              >>In a clustered environment, poor coordination of frame requests can
              >cause
              >>unexpected
              >>application behavior. For example, multiple frame requests can "reset"
              >the
              >>application's
              >>association with a clustered instance, because the proxy plug-in treats
              >>each request
              >>independently. It is also possible for an application to corrupt session
              >>data by
              >>modifying the same session attribute via multiple frames in a frameset.
              >>To avoid unexpected application behavior, always use careful planning
              >when
              >>accessing
              >>session data with frames. You can apply one of the following general
              >rules
              >>to avoid
              >>common problems:
              >>·     In a given frameset, ensure that only one frame creates and modifies
              >session
              >>data.
              >>
              >>·     Always create the session in a frame of the first frameset your application
              >>uses
              >>(for example, create the session in the first HTML page that is visited).
              >>After the
              >>session has been created, access the session data only in framesets
              >other
              >>than the
              >>first frameset.
              >>
              >>My environment is clustered(multi-tier) and jsp and servlets use frameset,
              >>could
              >>you explane this?
              >>I don't understand very well
              >>
              >>Thanks and regards
              >>Fabio
              >>
              >
              

  • Stateful Session Bean with BMT: JDBCpmf or EEpmf?

    Quote:
    For the record: when using BMT as David described, you should use a JDBCPersistenceManagerFactory
    instead of an EEPersistenceManagerFactory. EEPersistenceManagerFactory is only appropriate when
    transaction synchronization is desired.
    -Patrick
    Hi Patrick,
    I wanted to follow up on this. In the case of Kodo, the JDBCpmf does not turn on the
    UserTransaction in a managed environment, while the EEpmf does. My question: isn't is necessary to
    turn on the UserTransaction in a stateful session bean with BMT? If this doesn't happen, isn't
    there a danger, if the bean allows transactions to span business method invocations, that the
    container will passivate the bean while a transaction is active? Since the PM can't be saved during
    passivation, the tx would be interrupted by passivation -- something that would not happen if the
    container were aware that a tx was active.
    David Ezzio

    David,
    My interpretation of your initial post was that you were using fully
    unmanaged transactions in your bean. That is, that you were not using the
    UserTransaction, but were just using the javax.jdo.Transaction for
    transactional data store access.
    In the situation I just described, using the EEPMF would result in changes
    to the UserTransaction. If your goal was to manage the UserTransaction in
    the bean, then yes, you'd still want to use the EEPMF.
    -Patrick
    On 7/25/02 7:17 PM, "David Ezzio" <[email protected]> wrote:
    Quote:
    For the record: when using BMT as David described, you should use a
    JDBCPersistenceManagerFactory
    instead of an EEPersistenceManagerFactory. EEPersistenceManagerFactory is only
    appropriate when
    transaction synchronization is desired.
    -Patrick
    Hi Patrick,
    I wanted to follow up on this. In the case of Kodo, the JDBCpmf does not turn
    on the
    UserTransaction in a managed environment, while the EEpmf does. My question:
    isn't is necessary to
    turn on the UserTransaction in a stateful session bean with BMT? If this
    doesn't happen, isn't
    there a danger, if the bean allows transactions to span business method
    invocations, that the
    container will passivate the bean while a transaction is active? Since the PM
    can't be saved during
    passivation, the tx would be interrupted by passivation -- something that
    would not happen if the
    container were aware that a tx was active.
    David Ezzio--
    Patrick Linskey [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • SRSS 4.2 All dtlogin sessions stuck with 26B

    Hi All,
    I have just installed latest Solaris 10 Jan-13, i am running SRSS 4.2 with SRWC 2.0
    everything was working fine for more than two weeks and then suddenly all sessions stuck with 26B
    at /var/opt/SUNWut/log/messages is showing fine and all desktop sessions are attached properly
    Oct 13 11:34:26 Al-Wusta utauthd: [ID 988051 user.info] Worker7 NOTICE: CONNECT IEEE802.00144fd3923c, pseudo.00144fd3923c, all connections allowed
    Oct 13 11:34:26 Al-Wusta utauthd: [ID 118801 user.info] Worker7 NOTICE: MTU = 1500
    Oct 13 11:34:26 Al-Wusta utdtsession: [ID 702911 user.info] Add (2,pseudo.00144fd3923c,normal)
    Oct 13 11:34:26 Al-Wusta utauthd: [ID 274016 user.info] Worker7 NOTICE: SESSION_OK pseudo.00144fd3923c
    But if you read the /var/opt/SUNWut/log/auth_ log file
    -bash-3.2# more auth_log
    /etc/opt/SUNWut/xmgr/notify: /bin/ps failed for PID 982
    /etc/opt/SUNWut/xmgr/notify: /bin/ps failed for PID 982
    /etc/opt/SUNWut/xmgr/notify: /bin/ps failed for PID 982
    /etc/opt/SUNWut/xmgr/notify: /bin/ps failed for PID 982
    /etc/opt/SUNWut/xmgr/notify: /bin/ps failed for PID 982
    -bash-3.2#
    Any help is highly appreciated...

    Hi Khalid,
    Are you still just getting 26Bs continuously?
    What policy have you configured on the server?
    Also, 5.2 is old too, you should be running 5.4.1 if this is a new system.

  • Associate Session ID with Client ip for improved security

    Hi,
    Id like to know if it's possible to associate session id with some more info like client's ip address and user agent, to ensure that no one can access my app by cookie injection.
    Do anyone knows what's the best/recomended/iWouldDoThisIfIWhereYou approach?
    Thanks!

    I don't think I've seen anything like this with WebLogic Server. I think the right approach in this case is to use SSL with httpOnly (default) and then unless someone has local access to your machine or the remote server (you have bigger problems!) then they can't hijack your session with a man-in-the-middle.
    You can email me at my user id at oracle.com if you have a concrete requirement.

  • Session Tracing tab is missing.

    Dear ISA Experts,
      I am using ISA 5.0.  When I goto logging in Admin, The session tracing tab is missing. Appreciate any pointers to display the session tracing tab to trace the session log.
    Thanks!

    Thanks Mark for your reply. My Java core is on SP14. SAP-SHRWEB, SAP-SHRAPP & SAP-SHRJAV are on SP11 & 12. I have gone through the note : 1090753 and noticed that the following parameters are already set.
    'appinfo' and 'logfiledownload' parameters to 'true'
    ForceSingleTraceFile to 'No'.
    When I goto : http://hostname:50000/b2b_xyz/admin/index.jsp and logging, I see only Log configuration and not "Session Tracing". Please advice.
    Thanks!
    Surya.

  • New session started with an advertizing page and all my tabs are lost

    New session started with an advertizing page and all my tabs are lost. Restore the previous session is not active. How can I restore my tabs?

    This advice might come too late, but, don't exit Firefox! Or if you already did, don't start it back up again!
    ''If Firefox is running:'' Open your current Firefox settings (AKA Firefox profile) folder using either
    * "3-bar" menu button > "?" button > Troubleshooting Information
    * (menu bar) Help > Troubleshooting Information
    * type or paste about:support in the address bar and press Enter
    In the first table on the page, click the "Show Folder" button. This should launch a new window listed various files and folders. For best results, change the view to "Details".
    (''If Firefox not running, get to this folder by pasting the following in the Run box on the start menu and pressing Enter: %APPDATA%\Mozilla\Firefox\Profiles and then double-click into the most recently updated semi-randomly-named folder you find there.'')
    In the window that launches, scroll down and double-click into the '''sessionstore-backups''' folder. Save all files here to a safe location, such as your Documents folder, so Firefox doesn't overwrite them. We may be able to use them to recover your lost tabs.
    Also, if you return to the main level of the profile folder, you may find some sessionstore files. Copy those to the safe location as well.
    Could you report back on what you found?
    Note: If Windows hides the .js file extension from you, you can change a setting so that you can see all file extensions (this helps when renaming files). This support article has the steps: http://support.microsoft.com/kb/865219 or http://windows.microsoft.com/en-us/windows/show-hide-file-name-extensions
    The kinds of files you may find among your sessionstore-backup files are:
    * recovery.js: the windows and tabs in your currently live Firefox session (or, if Firefox is closed, your last session)
    * recovery.bak: a backup copy of recovery.js
    * previous.js: the windows and tabs in your last Firefox session
    * upgrade.js-''build_id'': the windows and tabs in the Firefox session that was live at the time of your last update

  • DTP run Time Error : Dump: Internal session terminated with a runtime error

    Hi Experts,
    I'm facing a problem during loading data from PSA to DSO from DTP. It gives Dump: "Internal session terminated with a runtime error".
    When i went to PSA and see the no. of data packages, it is 1532.
    Could anybody please help me how to load the data.
    Thanks
    Ajay

    Thanks Srini!!
    the load is running for 15 min and then it is throwing dump without a single package extract.
    Ok...the same I'm also thinking to selective upload but can you please explain me how do i do that as it has only request in PSA.
    and it is a pricing data.
    Thanks
    Ajay

Maybe you are looking for

  • Album starter edition 3.2 won't let me copy/paste pictures

    hello, photoshop album starter edition 3.2,winxp home,dell dimension 5100,lexmark x3350,3gig ram. this program will not allow me to copy/paste any pictures from MY PICTURES/DOCUMENTS. they ALL go into the photoshop program. i have to right click on t

  • Third party tools

    What are the pros and cons for using 3rd party (partners) templates to develop Forms 6i applications. I am concerned with future upgrades of Oracle forms that might render the 3rd party templates obsolete. I experienced that problem using other GUI t

  • Mail 5.0 mailbox list and message list 1 and 2

    my mail had three columns ; mailbox list, message list and then individual message. the individual message disappeared and i don't see anyway of getting that column back! now i have  to double click a message to see its content whereas before i could

  • Adobe 11.0.09 update

    After installing the 11.0.09 Standard Update.  All documents are opening with just the document name bar visible.  The File Menu and Toolbars and Document are collapsed and hidden. 

  • Looking for Head_First_Plug-in_Development.pdf

    Hello all, I'm looking for the PDF originally found here:  http://blogs.adobe.com/ae-api/2006/07/stepbystep_xcode_project_creat.html which links to http://blogs.adobe.com/ae-api/files/ae-api/Head_First_Plug-in_Development.pdf but I get a 404 - File n