Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SFSB

 
Ajai
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Can somebody pls validate my understanding on the below.

1. Are there any performance implications on how heavy(no of instance variables like vector ,hashmap etc) a SFSB is ?For instance one SFSB which uses VLH may have big resultset and other one is just holding shopping cart and still other is just holding say customer info .
My understanding is it would make differnece since during activation and passivation ..it will need more resources .

2.In a scenario where I can take some stuff out of SFSB and use a seperate SLSB facade .Are there any advantages other than that it becomes more modular(i am seperating conversation stuff from non conversational) given that SFSB will anyway be there for the whole client session.

3. In petstore WAF for search functionality they are not using Actions ...I guess the reason might be all other actions are passing through one entry which is SFSB .Had they used a SF VLH for search (behind main EJB controler)it might have made sense to include Search Function also in web command pattern impl.Is there any other reason of not doing so?


Thanks
 
Vishwa Bandhu
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Are there any performance implications on how heavy(no of instance variables like vector ,hashmap etc) a SFSB is ?For instance one SFSB which uses VLH may have big resultset and other one is just holding shopping cart and still other is just holding say customer info .
My understanding is it would make differnece since during activation and passivation ..it will need more resources .

I don't think this is of any significant issue unless we are talking of a huge object. In which case, there should be other alternatives to be thought of and a SFSB is a wrong choice for that.

2.In a scenario where I can take some stuff out of SFSB and use a seperate SLSB facade .Are there any advantages other than that it becomes more modular(i am seperating conversation stuff from non conversational) given that SFSB will anyway be there for the whole client session.

This depends on how effectively this can reduce any activation/passivation cylces on the SFSB.

3. In petstore WAF for search functionality they are not using Actions ...I guess the reason might be all other actions are passing through one entry which is SFSB .Had they used a SF VLH for search (behind main EJB controler)it might have made sense to include Search Function also in web command pattern impl.Is there any other reason of not doing so?

Petstore implementation is only for demoing the different patterns and not really optimized for the best case scenario.... I totally agree with your argument on this. I didn't find any argument supporting otherwise.
 
Ajai
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Vishwa!!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic