This content has been marked as final.
Show 2 replies
-
1. Re: Two beans cannot specialize the same bean Session bean
marcial.atienzar Oct 7, 2015 7:26 AM (in response to marcial.atienzar)I've found this:
https://java.net/jira/browse/GLASSFISH-19288
But it was solved on weld 2.0.0 and wildfly 9.0.1 has 2.2.14
-
2. Re: Two beans cannot specialize the same bean Session bean
marcial.atienzar Oct 8, 2015 11:22 AM (in response to marcial.atienzar)I've solved it using alternatives. I've to use a @Priority to make it work, because the interface was in a jar inside every war, and the alternative was in the classes of the web-inf, like this:
EAR
+- WAR 1
+-- WEB-INF
+---- classes
+------ ALTERNATIVE1 OF CLASS1 with @Alternative @Priority(Interceptor.Priority.APPLICATION+10)
+---- lib
+------ COMMON-JAR CONTAINING CLASS1
+- WAR 2
+-- WEB-INF
+---- classes
+------ ALTERNATIVE2 OF CLASS1 with @Alternative @Priority(Interceptor.Priority.APPLICATION+10)
+---- lib
+------ COMMON-JAR CONTAINING CLASS1