Win a copy of Pipeline as Code this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Shopping Cart - Part 2

 
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In your database...
 
Murat Balkan
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Andre,
Can you be more spesific? It is about storing current sessions in a table?
Thanks,
 
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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 ]
 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Andr� Salvati
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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 have always wanted to have a neighbor just like you - Fred Rogers. Tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic