EnterpriseBean.getClassInterceptors() only returns annotations?

If I have class interceptors defined in ejb-jar.xml for example
when I call getClassInterecptors() on my EnterpriseBean that represents HotelBookingAction I get an empty list.

Is this by design?
If so: Is there a simpler way than

and then iterate over the result myself and check each interceptor if it applies?

Please sign in to leave a comment.