Value-list handler, value-list iterator and session-facade strategy
Julien Martin
Ranch Hand
Joined: Apr 24, 2004
Posts: 383
posted
0
Hello all, Further to an earlier post, I rewrote my post trying to me more accurate in my question. Here is my problem: I am trying to implement the value-list handler design pattern using the session facade strategy. In the pattern as it is described here (http://java.sun.com/blueprints/corej2eepatterns/Patterns/ValueListHandler.html) the client accesses the value-list handler AND the iterator directly. As I chose the session-facade strategy having my value-list handler as a stateful session ejb, I don't know how the client is going to access the iterator. I see only one option: Having the client access the iterator through the ejb value-list handler. This requires adding new methods to the ejb. Is this the correct way of doing it? Is there another way of doing this? Thanks in advance, Julien Martin.
Roger Chung-Wee
Ranch Hand
Joined: Sep 29, 2002
Posts: 1683
posted
0
I don't think I understand the problem. Won't the session bean be returning a Collection of Transfer Objects to the client? In this case, the client can then locally iterate over the Collection.