This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Value-list handler, value-list iterator and session-facade strategy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Value-list handler, value-list iterator and session-facade strategy" Watch "Value-list handler, value-list iterator and session-facade strategy" New topic
Author

Value-list handler, value-list iterator and session-facade strategy

Julien Martin
Ranch Hand

Joined: Apr 24, 2004
Posts: 384
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
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.


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
 
 
subject: Value-list handler, value-list iterator and session-facade strategy
 
Similar Threads
SOS Session EJB stategy for value-list handler
Design Pattern Help
Design Patterns covered in IBM 483 Exam
about a very BIG confusion in design pattern.
Session Facade implementation