Originally posted by Justin Chang:
I found this old post, I have the same question.
Do we need something like ShoppingCart in the class diagram for FBN?
and if we do, will it be OK if it's named ShoppingCart?
(I think it is not the appropriate name.)
Any comments appreciated...
Originally posted by Justin Chang:
Thanks for the reply.
But in my opinion, 'ItineraryManager' sounds that it acts as a processor which is a stateless session bean, similar to 'OrderProcessor', rather than 'shoppingcart'.
Any thoughts?
SCJP 1.5, SCEA, ICED (287,484,486)
Originally posted by Justin Chang:
Anil
SearchProcessor and ItineraryManager are both required, I think. But I wonder whether or not something like CreditCardProcessor or MileageProcessor is also required?
Originally posted by Justin Chang:
Parag
I'm a bit confused now. If the Itinerary acts as a ShoppingCart(SFSB), then which class is used to be persisted?![]()
I think the Itinerary is EB, rather than SFSB. But I'm not sure which class will be used as a ShoppingCart. Any suggestions?
Originally posted by Ramon Gill:
Hi everyone,
I've been looking through the blueprints and other resources to try to give some input to this thread. From what I've seen I would use a 'cart' as a VO (or DTO - data transfer object) and have it set up as a variable within a SFSB ShoppingCart in the EJB tier.
When I'm ready to buy the cart contents, the 'cart' DTO would pass to the EJB where it would be added to the an orders database via approriate EJB's.
Hope this helps with the 2 options you came up with, Parag.
Ray
SCJP 1.5, SCEA, ICED (287,484,486)
Originally posted by Anil Vupputuri:
Maybe you can have one intermediatery object as VO (carrier of all the vital information like Itinerary and Payment details) which is passed between User and Itinerary Manager (which is Stateless Session Facade).
I feel Servlet is best place to maintain user session without having any Stateful Session Bean.
Originally posted by H. Hafer:
Parag,
though I took a quite different shot at the shopping cart, the steps regarding state maintenance are just the same as in your proposal.
HTH,
Harbo
[ September 13, 2004: Message edited by: H. Hafer ]
Originally posted by Parag Doshi:
Are you persisting them or not?
A simple yes/no would be alrite [...]
Originally posted by H. Hafer:
Parag,
your type of question made a simple yes/no impossible.![]()
However, since the requirements doesn't state what to do with unpaid itineraries, I did it the lazy way.![]()
Oh, and it doesn't state what to do with paid itineraries, either ...
HTH,
Harbo
[ September 13, 2004: Message edited by: H. Hafer ]
Originally posted by Parag Doshi:
Thanks Ray. It definitely helped in clearing my doubt. I am leaning towards a stateless session facade and using a SFSB for my shopping cart. That way, I can have a light weight facade and only the state relevant to the client would be stored in the SFSB.
SCJP 1.5, SCEA, ICED (287,484,486)
Originally posted by Anil Vupputuri:
In summary,
User --(VO)--> SFSB (Shopping Cart) --> SLSB (Itinerary Manager- Sessoin Facade)
isn't that you're trying to say.
Actually its :
BD ---> SLSB(SessionFacade) ---> SFSB(Shopping cart) [holds onto a VO]
Parag
James<br /> <br />SCJP,SCWCD,SCBCD,SCDJWS,SCEA
Originally posted by James Wang:
Is SLSB on the front of the SFSB? if so, do you transfer the remote or local interface of the SFSB from web client or swing client to SLSB? I am trying to use SFSB to hold the cart, but my invoke sequence as following:
BD->SFSB->SLSB. Am I wrong?
[ September 14, 2004: Message edited by: James Wang ]
Originally posted by Parag Doshi:
BD ---> SLSB(SessionFacade) ---> SFSB(Shopping cart) [holds onto a VO]
SCJP 1.5, SCEA, ICED (287,484,486)
Originally posted by Anil Vupputuri:
But SLSB is a non-conversational business process, so how do u maintain client state during multiple method calls...should your SessionFacade be SFSB?
What are the pros on choosing SLSB --> SFSB.
Curious to know, how does the Petstore deal with Shopping cart.
SCEA, SCJD, SCWCD, SCBCD, SCJP<br />IBM WebSphere Portal certification
Originally posted by calvin zhu:
Parag, why do you still need to consider a shopping cart should be stateful or stateless if you already have a stateful session object for user? Can't you just have an object array as shopping cart and let this SFSB hold the reference?
I must admit I haven't think about this shopping cart yet, and didn't study the pet store sample. So please point out this model's shortcoming.
[ September 16, 2004: Message edited by: calvin zhu ]
SCEA, SCJD, SCWCD, SCBCD, SCJP<br />IBM WebSphere Portal certification
Originally posted by Joseph Zhou:
The discussion about SFSB is helpful, but it said we have two web servers and an application server, that means the web server is clustered, how can we make it work if we use SFSB for "shopping cart"?
It wasn't my idea to go to some crazy nightclub in the middle of nowhere. I just wanted to stay home and cuddle with this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|