This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Where to keep the session data  RSS feed

 
Alexi G Jordanov
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

I want to see some other opinions on the session management.

Let's assume we have the following two scenarios:
1) desktop application (client tier) working with EJB App Server (business tier)
2) web application (web tier) working with EJB App Server (business tier). In these two scenarios, the following options for keeping the the session data are available:
1) http session (web app), in some variables (desktop app)
2) statefull session bean.

Statefull session beans are more expensive comparing to stateless session beans. Business services (session beans) would require to have access to some of the session data, but this data can be passed from the client invoking the session bean. Therefore, some people might suggest to keep the session data in statefull session bean to avoid sending it forth and back each time. Well, others then would say that the presentation layer would need this data too. If so, keeping it in the preceding tier (web or client depending on the type of the application) and sending it to the business (EJB) tier seems to have the same performance as to keeping it in the business (EJB) tier and sending it back to the preceding tier (web or client depending on the type of application).

I am curios to get more comments on the pros/cons of these two options. Which one is the best approach, or which one is better for which specific situation.

Thanks,
Alexi
 
Alexi G Jordanov
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

Any thoughts on this?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!