• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Value List Handler and Fast Lane Reader

 
Greg Mandel
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!
 
Ajaz A
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
 
Lann Lu
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic