• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Session variable (JSP/JBoss) behaving inconsistently on different machines.

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

We have been working on a web application where after login, there are two tabs Home/Admin. When the user clicks on Admin tab, the Admin page appears. The Admin page has a new portlet developed by us and inside it there is a link "Change Home Page Message". The functionality of the link is to simply allow the user to modify the message that will be show on the top of all pages while user is using the web application.
We are setting the message value in session. And while testing on some machines, the modified message gets displayed in all pages of the application. but on some machine it still shows old message on some jsp.

As the code is working on some machine, we are not able to understand if this is some browser issue or environmental issue or some settings in JBOSS.

Please help us asap...

Thanks in Advance!
 
Ranch Hand
Posts: 489
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
While it is very difficult to pin point the exact cause, here are some worthwhile debug measures you can adopt.

1. In the environment where it isn't working, check if the session attribute has indeed been changed on the backend.
2. If #1 isn't a cause, check if the page isn't served by the browser cache.
3. If #2 isn't a cause, check if the portlet content itself is cached on the server (google for jboss portlet cache).
4. Try the same in a page served by an ordinary jsp rather than a portlet and see if you have an issue.

ram.

 
Good night. Drive safely. Here's a tiny ad for the road:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic