• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SFSB

 
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Vishwa!!!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic