HttpSession gets generated again and again!! PLEASE HELP ME!!!!

Discussion in 'Java' started by che, Oct 10, 2005.

  1. che

    che Guest


    I'm working with JBoss (4.0.3) and EJB 3.0.

    I have developed a petsore web application, with ejb 3.0 and jsp.
    I have some entities and session beans (one stateful for a cart and
    theothers are stateless), one servlet and and 5 jsp pages.

    Every JSP page calls the controller servlet which holds the ejbs and
    puts them into session or request scopes and then calls the jsp pages
    to show the objects. I guess it is called "facede" pattern o.s.l.t.!

    I'm working with two computers, which are connected, one is a pc and
    the other is a notebook.

    JBoss is installed on the pc an I invoke the application on my

    If I invoke the app remotely like described above (with this call:

    everything is working fine, but if I try to work on the pc, where
    jboss is installed, and the app is deployed (with his call:


    the httpSession is getting generated again and again; everytime when
    the controller Servlet is invoked!

    Can someone tell me - please - what I'm doing wrong?

    Why does it work remotely, but not locally?
    che, Oct 10, 2005
    1. Advertisements

  2. Should work the same both locally and remote, try to use the
    192.168-adress in both cases and see what happens. Maybe it's a
    jboss-feature, try look it up in the jboss-forum.
    Jon Martin Solaas, Oct 10, 2005
    1. Advertisements

  3. che

    che Guest

    Hi Jon Martin,

    thank you for your reply.

    I have already done that. It dosen't work, neither with the
    http://localhost:8080 nor with the IP, just when
    I work locally with the network IP address, it works locally. But
    normaly, it should also be possible to use the localhost or, without any drastic changes!!

    I have also made a thread in jboss forum:
    But there is no reply yet!

    Anyway, I will post the soloution here, if I should find one!
    che, Oct 10, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.