[~sunxiaoou] I haven't debugged the whole process but I would say Weld needs to build on top of those EJBs, possibly creating other subclasses and/or proxies. And for that it needs to know what is the "actual" class of given EJB to avoid problems with what each integrator expects from such instance (e.g. that it implements their own inner constructs perhaps).
Is it a no-go problem for WLS to have qualifiers in those subclasses? If so, can you describe more in depth how the structure works for wls and what could be done on weld side to make it work?
Also note that passing the subclass is optional, if your subclasses don't implement [SubclassedComponentDescriptor|https://github.com/weld/api/blob/master/weld-spi/src/main/java/org/jboss/weld/ejb/spi/SubclassedComponentDescriptor.java], Weld cannot know. You could try and pass the original classes to Weld and see what happens, but I would expect some really weird errors there :) |
|