This content has been marked as final.
Show 2 replies
-
1. Re: EJB Communication Across Multiple Servers
pferraro Sep 2, 2014 6:56 AM (in response to stuartw)This is a known issue: [WFLY-3290] Cannot use a cluster name other than "ejb" - JBoss Issue Tracker
-
2. Re: EJB Communication Across Multiple Servers
wdfink Sep 2, 2014 7:11 AM (in response to stuartw)From what I understand you have the same application but need to decide which one to use.
Are both deployed in a cluster?
Maybe you can set the EJB "distinct" name for the server's or the application, in that case you have all app's in your outbound connections listed.
But to select an application you modify the lookup instead of the InitialContext.
So you have something like lookup("ejb:my-app/my-ejb/my-distinct/MySessionBean!MyInterface")
Does this is an approach for you?