• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Value List Handler and Fast Lane Reader

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am doing the old SCEA exam, and I have bypassed the session facade which is stateful for searches. When searching for flights, a stateless session bean is used so that the system can scale. I am using a fast lane reader to return a potentially large data set. My problem is that now I want to use a value list handler to cache the search results, I realise that the search thing might actually have to be stateful.

How can I take advantage of stateless session bean/DAO (fast lane reader) as well as implementing a value list handler? If I don't make it stateful, I am going to have to store the value list somewhere, and this seems to negate the benefit of bypassing my stateful facade.

This is quite confusing to me!
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
__________________________________________________________________________
Hi

I am doing the old SCEA exam, and I have bypassed the session facade which is stateful for searches. When searching for flights, a stateless session bean is used so that the system can scale. I am using a fast lane reader to return a potentially large data set. My problem is that now I want to use a value list handler to cache the search results, I realise that the search thing might actually have to be stateful.

How can I take advantage of stateless session bean/DAO (fast lane reader) as well as implementing a value list handler? If I don't make it stateful, I am going to have to store the value list somewhere, and this seems to negate the benefit of bypassing my stateful facade.

This is quite confusing to me!
____________________________________________________________________
Hi Greg,
Make suitable assumptions and ensure that your returned list is not big enough.

If it still is too big to handle, then you need to use stateful session bean to keep the cursor /position information at one centralized location.

Hope this answers your question.

Regards,
Ajaz
 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assumption: your search result set is potentially big, but not TOO big, then you can use Value List Handler.

Unfortunately, if you don't want to use HttpSession mechanism to cache your data (you know it is ugly), you have to use Statefull session bean. There is no decent workaround.

This is real life with JEE. (far from ideal)

Cheers,
Tao
 
Story like this gets better after being told a few times. Or maybe it's just a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic