aspose file tools*
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 Soft Skills this week in the Jobs Discussion 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Value-list handler, value-list iterator and session-facade strategy