Page 1 of 1

About Question enthuware.ocejws.v6.2.202 :

Posted: Mon Oct 19, 2015 3:09 pm
by disznoperzselo
Isn't it problematic to use "new LocalSub();" in a stateless session bean where
LocalSub is a Singleton?

Re: About Question enthuware.ocejws.v6.2.202 :

Posted: Tue Oct 20, 2015 12:16 pm
by fjwalraven
Yes, good point, I can't think of any practical reason when you want an implementation like this. However it is allowed by the JAX-RS specifications.

Regards,
Frits

Re: About Question enthuware.ocejws.v6.2.202 :

Posted: Thu Nov 17, 2016 10:21 am
by sttaq0442
Hi,

If we have a class which implements an interface and extends another class both having annotations then will it ignore ALL the annotations from the interface? or will it keep only those annotations from the interface which are not present in the base class?

Thanks

Re: About Question enthuware.ocejws.v6.2.202 :

Posted: Thu Nov 17, 2016 1:51 pm
by fjwalraven
Good question! (you won't find a tricky one like this because it is ambiguous, the specs are not clear)
If we have a class which implements an interface and extends another class both having annotations then will it ignore ALL the annotations from the interface?
My interpretation of the specs: Yes, but I agree: it has room for a different interpretation...

Regards,
Frits