• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

SFSB vs SLSB

 
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello friends,

One interviewer asked me the diff today debating why one 'needs' SFSBs. After I explained, he started asking me more giving me clues as to 'suppose I have two clients - one is using through web and one through say palm top'..

Can anyone help me in finding what he was actually hinting about?

Regards,
Leena
 
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Tina Desai:
One interviewer asked me the diff today debating why one 'needs' SFSBs.



Oh no, EJB alert! Abominable "technology" with lots of bloat and extra layers to hamper development ( "AnnoyDeveloper Tier") with multifarious .NET-style business speak. I have seen a number of "How to do J2EE without EJB" type books, so it looks like I am not alone with my assessment.

I would have paused for a moment, and then whispered, "You really, really don't"
 
Tina Desai
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
But he didn't argue about EJBs. He argued about SFSB. Why SLSBs cannot be used everywhere instead of SFSB. I do not know the difference between these two depending on the clients that call them like palm top etcc

Regards,
Tina
 
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The point here was to help Tina out with the interview question.

Originally posted by Kashif Riaz:


Oh no, EJB alert! Abominable "technology" with lots of bloat and extra layers to hamper development ( "AnnoyDeveloper Tier") with multifarious .NET-style business speak. I have seen a number of "How to do J2EE without EJB" type books, so it looks like I am not alone with my assessment.

I would have paused for a moment, and then whispered, "You really, really don't"

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
SFSB vs SLSB : Stateful session beans and stateless session beans.
SFSB should be used when we want to maintain the session states - a typical example shopping cart - Maintaining the contents (or the state) of shopping cart while navigating through different pages of the website.

Stateless - when you don't want to maintain the state while navigating through the web site.
I don't know what difference does it make calling a session bean from Palmtop/PDA or a webpage.

Hope this helps.
Regards,
Rashmi
 
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually SFSB is used when you want to maintain session on business componenet in three tier architecture or multi tier architecture.Suppose you have manitained session in http servlet or JSP but can we reuse this session when client is not a web based client or client directly caling the business componenets(EJBmehtods). say a desktop application or PDA or XYZ any thing...
 
Tina Desai
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
mohan, he talked about similar thing you have mentioned about the session and all. I told that I was aware of the session being maintained using httpsession(or other url rewritting etc) method or in db but not the SFSB for it.

This all is so vague as I don't know the question clearly. I thought if this is a clear hint and someone can pick it up better than me, then may be I will get the answer.

Regards,
Tina
 
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tina, the interviewer might be asking about SFSBs use in comparison to HttpSession to store some state across various web pages/connections or its use for non-web clients.

A non-web client will just depend on SFSB to maintain the state of say class variables across diff. method calls to SFSBs, while a web client can use Sateless Session Beans and store the returned data in HttpSession to maintain state.

If a web client uses SFSBs then he/she needs to synchronize the session timeout period of SFSBs in EJB container with the session timeout period of HttpSession.

I found this link, might be helpful to you.
http://www.jguru.com/faq/view.jsp?EID=1082544
 
Tina Desai
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Damanjit. The explanation and the link both were very useful. It is clear now. Thanks again!

Tina
 
A tiny monkey bit me and I got tiny ads:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic