aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Shopping Cart - Part 2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Shopping Cart - Part 2" Watch "Shopping Cart - Part 2" New topic
Author

Shopping Cart - Part 2

Murat Balkan
Ranch Hand

Joined: Sep 10, 2002
Posts: 127
Hi all,
I have seen different posts about placing a SLSB as Facade in front of the Shopping Cart , which is SFSB. I have one question here. SLSB wont remember its state on the next method call. So how will it find the right EJBObject for the Shopping Cart SFSB?
Thanks for your answers,
Murat
Andr� Salvati
Greenhorn

Joined: Mar 21, 2005
Posts: 24
In your database...
Murat Balkan
Ranch Hand

Joined: Sep 10, 2002
Posts: 127
Hi Andre,
Can you be more spesific? It is about storing current sessions in a table?
Thanks,
Samuel Pessorrusso
Ranch Hand

Joined: Jul 21, 2005
Posts: 164
Originally posted by Andr� Salvati:
In your database...


This would work for logged customers, what about not logged customers or users without profiles ?

Besides, doing this you would use much resources in you business tier for users that are just curious about your site and won't buy anything.

Regards
[ June 23, 2006: Message edited by: Samuel Pessorrusso ]
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1180
Hi Murat,

My advice is not to rush to SLSB as a Facade in front of the Shopping Cart. BTW, the discussions about stateless or statefull beans can become quite emotional at times and therefore you really need to use _your_ own best judgment.

Regards,
Dan


William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Andr� Salvati
Greenhorn

Joined: Mar 21, 2005
Posts: 24
Originally posted by Samuel Pessorrusso:


This would work for logged customers, what about not logged customers or users without profiles ?

Besides, doing this you would use much resources in you business tier for users that are just curious about your site and won't buy anything.

Regards

[ June 23, 2006: Message edited by: Samuel Pessorrusso ]



Ok. You could put the state in a HttpServletSession, before service invocation. This is a lighter design than the first one I've suggested.
[ June 26, 2006: Message edited by: Andr� Salvati ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Shopping Cart - Part 2