Results 1 to 10 of 10
  1. #1
    toofast is offline Member
    Join Date
    Jun 2012
    Posts
    20
    Rep Power
    0

    Default Lost session in Weblogic

    Hi, I have two different web apps (let's name them A and B) running on Tomcat (v5). At some point, one of A's JSPs invokes one of B's through an iFrame that contains a form. Then, B does its bussiness and sends an answer to another one of A's JSPs, which now can continue doing its stuff.

    As I said, this runs on Tomcat with zero problems.

    But recently I tried to deploy both apps on Weblogic (v9.2) and found one big problem: just when B has sent the answer, A loses the session and has to stop.

    What could be the cause to this? Thanks!

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,365
    Rep Power
    6

    Default Re: Lost session in Weblogic

    Captain obvious answers:

    a) the server's session timeout is configured to be -really- short?
    b) the session management is not done through cookies / cookies for some reason are not being created?

    I can only guess. I wouldn't know where to look though, I have no experience with Weblogic. I assume it has documentation.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,224
    Rep Power
    20

    Default Re: Lost session in Weblogic

    I can't quite follow the flow there.

    Java Code:
    Client Browser          A               B
    Get page from A ------->
    <------ send page, including iFrame?
    Submit form ---------------------------->
                              <------  Reply to A?
                                     OR
    <--------------------------------------- Response
    Send something to A ---->
    (Apologies if that doesn't work)

    Essentially, you're talking about JSPs talking to other JSPs, but you don't mention where the client browser fits in.
    You say B talks to A...is that directly? In which case how can it have the same session? It's a different app.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  4. #4
    toofast is offline Member
    Join Date
    Jun 2012
    Posts
    20
    Rep Power
    0

    Default Re: Lost session in Weblogic

    Well, I tested the system this morning, being as I left it yesterday, and guess what: it works. I don't know what's worst: dealing with something that doesn't work or with something that works but you don't know why. The only llogical reason I can think of is that somebody changed something in the remote database that my apps (among others) access. They load some configuration parameters from there. Either that, or a very kind wizard made it work.

    Since we're already here, I'll take the occasion to ask something else.

    Would there be any way of introducing a timeout in the process described above? The goal is that app A can continue if B doesn't respond. This gets even harder as app B will be replaced by and external app of which I won't have any control.

    Let's see if I can explain myself better. The user, with its browser, interacts with app A. One of its pages has an iframe wich presents a form served by one of B's pages. When the user submits the form, A waits and B receives the request; B does its work and then sends a POST request to another one of A's pages so it can continue.

    I can imagine that introducing a timeout system in all this isn't trivial; surely a possible solution would go beyond programming and would need to introduce some kind of new technology in my apps. If you can think of something that could put me in the right way, it'd be great.

    Thanks!

  5. #5
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,224
    Rep Power
    20

    Default Re: Lost session in Weblogic

    You still haven't really explained the flow here.
    You're talking of "pages", but that implies HTML and a browser, but that makes no sense for B to be acting as a browser for a page from A.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  6. #6
    toofast is offline Member
    Join Date
    Jun 2012
    Posts
    20
    Rep Power
    0

    Default Re: Lost session in Weblogic

    I'm not sure if I can explain it better (plus, English is not my native language). When the user submits the form presented inside the iframe, app B receives it and sends the response to one of A's JSPs. That's a POST request. And then, A can continue working.

  7. #7
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,224
    Rep Power
    20

    Default Re: Lost session in Weblogic

    So WebApp B talks directly with WebApp A?

    So the flow above in my post is what's happening (before the OR)?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  8. #8
    toofast is offline Member
    Join Date
    Jun 2012
    Posts
    20
    Rep Power
    0

    Default Re: Lost session in Weblogic

    Yes and yes.

  9. #9
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,224
    Rep Power
    20

    Default Re: Lost session in Weblogic

    That makes no sense to me at all...
    I must be missing something.

    I could understand browser talking to A which talks to B, but not browser talks to A, then submits to B which talks to A.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  10. #10
    toofast is offline Member
    Join Date
    Jun 2012
    Posts
    20
    Rep Power
    0

    Default Re: Lost session in Weblogic

    I think there isn't more than this. It's like if B were a WebService, it offers a functionality that A needs. And more important: the data submited by the user is only known by B, not by A.

Similar Threads

  1. session.close() doesnt end database session.
    By ali_sakar in forum Hibernate
    Replies: 10
    Last Post: 12-12-2012, 11:53 AM
  2. Migrating Application from weblogic 8.1 to weblogic 10.0 - Urgent
    By phanindar in forum Enterprise JavaBeans (EJB)
    Replies: 3
    Last Post: 01-07-2011, 09:47 PM
  3. Replies: 1
    Last Post: 04-22-2009, 12:20 AM
  4. Replies: 2
    Last Post: 12-23-2008, 07:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •