Hi All,

I have a weird problem with JRun 2.3.3 build 153 running on WINNT 4

I have a LoginBean(scope="session") that implements the
HttpSessionBindingListener. For some reason it gets bounded to the session(I
used system.out's to trace it) and immediately gets unbounded and then gets
bounded again whereas throughout my code I only put this bean in session
ONCE when I login. Here's the system.out's from stdout.log.

DBManager Constructor Invoked
LoginBean: Constructor Invoked
I just got Bounded
Loading JDBC driver oracle.jdbc.driver.OracleDriver

Connecting to jdbc:oracle:thin:@taxl:1526:d1,user
Login--DBManager:coi.DBManager@e7a65f8e
I just got UN-Bounded
I just got Bounded

Here's the JSP Code:
Login.jsp

<jsp:useBean id="login" scope="session" class="coi.LoginBean" />
<jsp:setProperty name="login" property="*" />
<%

        login.Login();
        if (login.getStatus().equalsIgnoreCase("Connected")) {
                session.putValue("login",login); %>
                <jsp:forward page="tax_sotp_search.jsp" />
<%      }
        else {
%>
        <blink><h2> Ooops!!!!! </h2></blink>
        <%=     login.getStatus()%>
        <a href="/coi/default.htm">Try Again </a>
<%      }       %>

and heres the snippet of the LoginBean.java

        public void Login() {
                if (dbm==null){
                        dbm = new DBManager();
                }
                if (!getStatus().equalsIgnoreCase("Connected")){
                        status = dbm.connect(username,password,dbInstance);
                }
                else{
                        System.out.println("Already Connected");
                }
                System.out.println("Login--DBManager:"+dbm.toString());

        public void valueBound(HttpSessionBindingEvent event){
                System.out.println("I just got Bounded ");
        }

        public void valueUnbound(HttpSessionBindingEvent event){
                System.out.println("I just got UN-Bounded ");
                if (dbm!=null){
                        dbm.close();
                        dbm=null;
                }
                status = "Not Connected";

        }

Oh yea the important things:

I have the following session tracking options:
Max Sessions:1024
Invalidation Time:1800000 ms
Invalidation Interval:10000 ms

Any suggestions??? Greatly appreciate any help

Thanx

Asim Imam
Application Developer
@AT&T Tax Systems Group

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to