Discussions

EJB design: Question about ValueListHandler pattern

  1. Question about ValueListHandler pattern (3 messages)

    Hi,
    i recently saw a ValuListHandler question on this forum from a couple days ago, this helped me a little with my forwarding quetion, but i still have more doubts.

    I`m developing a complete j2ee app (jsps, servlets, ejbs). Is the ValueListHandler pattern really usefull?

    If so ...
    - Is it better to implement with Statefull sessions or as a POJO?
    - Does it matter if i use the ValueListHandler to access the db via DAOs or CMPs (cause i`m using CMPs basically)?

    Thanks,
    ltcmelo
  2. In case, If you havent seen this ..

    http://java.sun.com/blueprints/corej2eepatterns/Patterns/ValueListHandler.html

    The 'Stateful Session Bean Strategy' explained in that link. I am concerned about the amount of Remotes calls we make, which would'nt be a good idea considering its expensive.

    In my opinion use a normal Java ValueListHandler class, which uses stateLESS session bean or DAO imp class for the Data List creation with the help of CMP/JDBC and then ValueListHandler can iterate the list as normal.


    -arun
  3. Take a look at: http://mlavwilson.sourceforge.net/vlh . The ValueListHandler pattern is implemented as a bean, configured by spring. It can be wrapped by a stateless bean with little effort.
  4. Take a look at: http://mlavwilson.sourceforge.net/vlh . The ValueListHandler pattern is implemented as a bean, configured by spring. It can be wrapped by a stateless bean with little effort.
    Or better yet the ValueListHandler sould be local to the client and the adapters
    could make the remote calls if needed.