Data « Session « Java Enterprise Q&A





1. Data in J2ME RecordStore does not persist across sessions    stackoverflow.com

I'm building a mobile app with J2ME, and I've found that the data I write into a RecordStore can be accessed while the program is still running but it is lost ...

2. How much session data is too much?    stackoverflow.com

We are running into unusually high memory usage issues. And I observed that many places in our code we are pulling 100s of records from DB, packing it in custom data ...

3. removing data from session    stackoverflow.com

I am using the following code to remove a attribute from session

List<User> l=(List<User>) sess.getAttribute("allUserslist");
for(int ii=0;ii<l.size();ii++){
    System.out.println("bef"+l.get(ii).getLoginName()+optionSelected[i]);
    if(l.get(ii).getLoginName().equals(optionSelected[i])){
        ...

4. Can I use multiple data sources in a single stateless session bean (EJB3)?    stackoverflow.com

Does anybody know whether I can use multiple data sources in a single stateless session bean in EJB3? I want to develop a session bean to aggregate a lot data and return, ...

5. Logging And Easily Viewing Large Amounts Of Session Data In Java    stackoverflow.com

I need to set up a logging system for my java web application that not only logs the usual stuff (error message, error level, etc) but can also log additional information ...

6. How to save data in TCP socket connection session?    stackoverflow.com

I want to code a server in java which will accept the information from many devices and store the information in database. The devices will keep sending the packets. The first ...

7. how can i store data in groovy application as (session,flash) in web application    stackoverflow.com

i have a groovy application, i want to store a value to re use it in another form (as me.tag in vb.net)

8. Getting session data of logged in users in java    stackoverflow.com

I am working with servlets. When my user logs in, my application is setting his userId and deviceId in a session variable. Some other part of my application now needs the list ...

9. Moving data from stateless session bean to file    stackoverflow.com

I have a session bean which retrieves data from the database and formats it. In the near future it will need to call a utility (which wraps XML-RPC) to forward ...





10. Saving large amounts of dynamic user input    stackoverflow.com

I have a client application program that has 10+ classes each with 100+ components that need to be kept track of. when the program is run the user inputs numbers, selects ...

11. Store data in session, how and when to detect if data is stale    stackoverflow.com

The scenario I have is this.

  1. User does a search
  2. Handler finds results, stores in session
  3. User see results, decides to click one of them to view
  4. After viewing, user clicks to "Back to ...

12. Set session data during functional test    stackoverflow.com

I am looking for a way to set session data during functional test. I want to test a logout action. Ideally, I would like to do something like that

   ...

13. Persistent Data Object Implementation    stackoverflow.com

I have a page where a user can edit a lot of information, right now about 100 lines worth of DDLs and a text area, I want to update a data ...

14. Session data renders incorrectly in template    stackoverflow.com

I store user.displayName in the session, when users authenticate:

session.put("udn", user.displayName);
and the template renders it using:
${session.udn}
but strange things occur:
  1. login as "Sam", display "Sam";
  2. logout;
  3. login as "Jim", display "Sam", too!
  4. restart play;
  5. login as "Jim", display ...

15. Java MDC mixing session data    stackoverflow.com

I am using Log4j as a logging framework. I am using MDC to hold some values across application so that when finally do log and get those inside eventhelpers. But in ...

16. How to pass session data between 2 Portlets???    coderanch.com

The answer is yes and no. Not only can portlets not share session data with other portlets, they can't even share session data between the exact same type of portlet if that portlet appears more than once on the same page (portlet instance, I guees). However, JSR168 introduced something called APPLICATION_SCOPE for portlet session. With application scope, you can share session ...





17. retrieving Data from Portal Session    coderanch.com

18. How to update Session variable with Form Data ?    coderanch.com

Hi All , I have a JSP page that gets data from database and displays. One of the Form fields(It is a Drop down box.) on this page has a 'Edit' button . This field is populated with data from a bean which has session scope(jsp:useBean id="..." class="java.util.Vector" scope="session"). When this 'Edit' is pressed , it brings up a popup JSP ...

19. Session data    coderanch.com

hi here i would like to add that if you make any changes to that particular variable don't forget to add it again to the session with the same name.if you would not do this then when you try to retrieve the variable in the next page it would not show the updated value regards namita ------------------

20. Losing Session Data!!!    coderanch.com

Hi All, I am making a LoginServlet in which after all the validation i am creating a new session object(In which i am putting all the relevant data which will be require during the session). After this i am redirecting the the request to the ControlServlet which will display the appropiate page on the Browser . When User put up the ...

21. Session Data Vs Session Overhead    coderanch.com

Hai All! This is not question entirely related to server processing. But it demands some server side design decisions to be made. Pls go through and suggest me your valuable feedback. I am designing a HTML page that Contains two tabs. While displaying page i have two sets of data(one for each Tab..). This HTML page is part of an application ...

22. Storing large data in session    coderanch.com

Hello My application needs to cache a large amount of data. I can do it at application scope or at session scope in JSP.But i think it will degrade performance as it might consume lot of RAM. This data is as good as static and i dont want to go back to database to get same data. Please suggest me alternative ...

23. Sharing session data between web apps    coderanch.com

We were discussing this a while back and its heavily vendor specific - what app serbver are you on? I was looking to allow a Single Sign On ability between applications on Websphere, but also had a look at Tomcat at the same time. Websphere allows Single Sign On between separate web-apps, but only if it has been enabled via config ...

24. Is session data thread safe?    coderanch.com

Different browser windows opened by the same user and belong to the same session is extremely common. Just use your yahoo account, log in mail.yahoo.com, then if you click the browser icon on your desktop, you get another session, to verify it, you found you need to re-login. However, if you open a new browser from the already-login browser window File->New->Window, ...

25. Session data passed through header line or body ?    coderanch.com

Hi, I didn't understant the questions very well, however: a) The data is sent from client --> Server, in the body or in the request line, according to the HTTP method used, i.e. GET = request_line, POST = body. b) The attributes you add to the session are only stored in the server, in an instance of an object of HttpSession. ...

26. how many data can be set in context ,session ,and request ? 500M is OK ?Thank you!    coderanch.com

I am now building a wireless service system,the system goal is it can service 500,000 people,our system will provide 10,000 items that can be ordered by custom,and each items can be packed in a low price package. I am now considering load all our items and package into context when our system get start.and every day , our system will automatic ...

27. How to persist data between sessions when using a Filter?    coderanch.com

Hello all in the ranch, I've come against a tough barrier! I'm using a Filter that handles all requests to JSPs. The way the filter works is that any call to a JSP first instantiates a specific servlet from a specific class, which does some processing and binds some objects to the session before the command is passed in the filter ...

28. Expiring session data    coderanch.com

Is there a way to make objects that are stored in the session "expire" after a set amount of time even though the session is still valid? I know I could add some sort of time stamp to the data structure and check that timistamp the next time I retrieve the object from the session. What I really want is for ...

29. How to replicate session data at the user level?    coderanch.com

Hi all, my client has users who use laptop/tablet computers in the field with wireless connections. The application requires the users to complete long multi-page forms where the data is only submitted to the EIS layer at the end of the process. The connections regularly drop out which understandably is a cause of some grief. In addition, the users want to ...

30. Pass data between Sessions - How to?    coderanch.com

Rajesh, It would be helpful if you explained more about the context of the two sessions. Do you envisage both sessions being for the same user, perhaps the second being created when the user logs on after the first one times out? If so, it would make sense to store the preferred colour for each user in a database so that ...

31. get the data after Session expired    coderanch.com

32. Regarding Storing large data structures in Session or Request or Context    coderanch.com

Hi, Is it a good practice to store a Map object or any data structure available in Java, containing large number of data(for e.g a result set containing lots of rows obtained by executing a query ) as a SESSION or REQUEST or CONTEXT Attribute and then using that attribute to share data across the web-application in other servlets or jsp ...

33. Session Data Crossover Problem    coderanch.com

I am experiencing a session data crossover issue (immediately after logging on to the application, user A views the session data of user B). I have investigated the issue up to a particular point - by also adding some pertinent logging to the application - and it appears that, while the session is correctly populated with the user data and the ...

34. Large Web Form Losing Session Data    coderanch.com

Hi, I've been having problems with my web application where I have a large multi-paged form that the users need to fill out. Currently this form's fields are populating a POJO object sitting in the session scope. As you navigate between tabs the form on the page is submitted and a homegrown "beanfiller" takes the parameters being passed up and populates ...

35. Storing large chunks of data in sessions    coderanch.com

Hi Guys I am in need of some suggestions. The app I am working on is going to really strain the DB server, so to lower the load on the server I decided to use sessions. What happens is the servlet gets the data from the server, it is placed into a session and the customer will access the sessions rather ...

36. enable DWR access to Portal Session data - WebSphere Portal 6.x    coderanch.com

Hi - I have some DWR Java methods called via js calls in our Portal JSPs. I need to be able to access the portlet session data (but not at Application Scope) from these DWR Java methods. {This data has been set in the Spring Controllers}. I do not wish to go to the Application Scope but within our framework (which ...

37. session data in sessionDestroyed method    coderanch.com

39. How can i get session data into business objects.    coderanch.com

Hi all, I have many number of flows in my web application. All the flows uses one generic method for getting data from the db. In this generic method, i want to check one condition from the session data. How can i do this? If i pass request object from action class till that 'generic method' it becomes too tedious. Do ...

41. deleting data from session    forums.oracle.com

42. Retrive data from a session in struts1    forums.oracle.com

I am new in java and developing an online shopping basket. I have a productForm with scope="session". After selecting products from this form, I need to view the selected products in another jsp where I can confirm the selection. Can someone please give me an idea on how to retrive this data from the productForm and put them in a view ...

43. Problem while reteriving data from session    forums.oracle.com

I am using struts and in my Action class i have written String query = "select Category_name from category_info where category_parent_level = 1"; rs = stmt.executeQuery(query); while(rs.next()){ menlist.setCategory_name(rs.getString(1)); menArraylist.add(0, menlist); session.setAttribute("menArrayList", menArraylist); Where menlist is a class object and menArrayList is an ArrayList And in my Form Class i have getter and setter methods for my menArrayList In my JSP i ...

44. putting data in session    forums.oracle.com

45. session data    forums.oracle.com

It is a servlet and when I load the browser first time it prints out "something" if I load the pag in the same session again it starts printing out "many letters". I tried to design it so that it always prints out "many letters" I do not understand why it prints "something" at first time loading the page. I set ...