Hi,
Consider the following scenario:
I have any local entity bean A which implements interface X. I have another local entity bean B which implements the same interface X.
Can I have another entity bean C which can use either A or B entity bean at runtime based on some business logic ? The
EJB 2.1 spec mentions that entity beans support 'interface inheritance' when dealing with local entity beans.In
Java language this is simple, I can keep an instance variable of type X and create an object of A or B at runtime, but I am not sure whether this feature is supported in Entity EJBs.
thanks
Ashish