*
The moose likes Jobs Discussion and the fly likes SFSB vs SLSB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Careers » Jobs Discussion
Bookmark "SFSB vs SLSB" Watch "SFSB vs SLSB" New topic
Author

SFSB vs SLSB

Tina Desai
Ranch Hand

Joined: Mar 13, 2003
Posts: 365
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


Alongwith being a good coder, try to be a good professional as well!
K Riaz
Ranch Hand

Joined: Jan 08, 2005
Posts: 375
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

Joined: Mar 13, 2003
Posts: 365
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
soniya saxena
Ranch Hand

Joined: Nov 18, 2004
Posts: 300
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"
Rashmi Banthia
Ranch Hand

Joined: Dec 22, 2003
Posts: 79
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
Mohan Karthick
Ranch Hand

Joined: Apr 11, 2005
Posts: 199
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

Joined: Mar 13, 2003
Posts: 365
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
Damanjit Kaur
Ranch Hand

Joined: Oct 18, 2004
Posts: 346
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

Joined: Mar 13, 2003
Posts: 365
Thank you Damanjit. The explanation and the link both were very useful. It is clear now. Thanks again!

Tina
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SFSB vs SLSB