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
-
enumeration? (3 messages)
- Posted by: preethi s
- Posted on: February 07 2001 12:17 EST
Threaded Messages (3)
- enumeration? by Vel Saran on February 07 2001 12:25 EST
- enumeration? by Michael Eismann on February 08 2001 06:23 EST
- enumeration? by Dave Wolf on February 08 2001 22:25 EST
-
enumeration?[ Go to top ]
- Posted by: Vel Saran
- Posted on: February 07 2001 12:25 EST
- in response to preethi s
Hi,
IN EJB1.1 it's enumeration, the return type for find methods..
U mean EJB2.0.. there its Collection ..
Saran -
enumeration?[ Go to top ]
- Posted by: Michael Eismann
- Posted on: February 08 2001 06:23 EST
- in response to preethi s
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.
-
enumeration?[ Go to top ]
- Posted by: Dave Wolf
- Posted on: February 08 2001 22:25 EST
- in response to Michael Eismann
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