Discussions

EJB design: enumeration?

  1. enumeration? (3 messages)

    hi,
    EJB1.1 specifies that the findmethords must return a Collection.(ACollection of ejb Objects)
    Can we use an Enumeration as return type instead of a collection
    Thanks
    PREETHI

    Threaded Messages (3)

  2. enumeration?[ Go to top ]

    Hi,

    IN EJB1.1 it's enumeration, the return type for find methods..
    U mean EJB2.0.. there its Collection ..

    Saran
  3. enumeration?[ Go to top ]

    Hi,

    with EJB 1.0 finders must return an enumeration.
    In EJB1.1 with jdk 1.1 finders return an enumeration, with jdk 1.2 finders can return a collection.

     
  4. enumeration?[ Go to top ]

    You really can return either. In Sybase EAServer we added a feature where you can return in your bean say Collection, but when you generate stubs you can say you need to support a JDK 1.1 client and we generate a remote/home which returns Enumeration and we remap it all on the fly when we marshall it.

    Dave Wolf
    Internet Applications Division
    Sybase