-
15. Re: LookUp remote EJB from local EJB
fargus Jul 10, 2012 2:12 PM (in response to wdfink)Wolf-Dieter Fink wrote:
The jboss-app.xml should contain a distinctName, not the expression.
The expression can be used in the standalone.xml for the default-distinct-name
Now I try to put default distinct name to standalone.xml.
I add next string: <default-distinct-name>"${jboss.server.name}"</default-distinct-name> to ejb subsystem and don't get any results.
EJB still available from ejb:es-ear/es-core//Environment!com.service.Environment but should from ejb:es-ear/es-core/${jboss.server.name}/Environment!com.service.Environment
Tested on jboss.7.2.0Alpha1
-
16. Re: LookUp remote EJB from local EJB
wdfink Jul 10, 2012 2:14 PM (in response to fargus)Could you use a fix string first to ensure it works in general?
-
17. Re: LookUp remote EJB from local EJB
fargus Jul 10, 2012 2:51 PM (in response to wdfink)Sorry Wolf-Dieter, I put this string to standalone.xml of jboss.7.1.1 but run 7.2.0. I have already tired.
With 7.2.0 all work good.
Thanks.
If I will have another questions, I'll post to this thread.
-
18. Re: LookUp remote EJB from local EJB
fargus Jul 11, 2012 5:51 AM (in response to wdfink)Wolf-Dieter Fink wrote:
But from configuration I see no other posibility except to configure more than one remoting-ejb-receiver in the jboss-ejb-client.xml
As I understand , now if I use standalone servers I can't dynamically configurate remote connections(because I cant add new receiver to jboss-ejb-client.xml at runtime).
If yes, that please tell me this feature was added to jboss in the future?
Else if anyone know how to dynamically configurate remote connections of standalone servers please provide this information.
-
19. Re: LookUp remote EJB from local EJB
apakhunov Jul 11, 2012 11:31 AM (in response to wdfink)Is it possible to configure EJB receivers using JBoss EJB client api?
-
20. Re: LookUp remote EJB from local EJB
jaikiran Jul 11, 2012 11:38 AM (in response to fargus)Vadim Gusev wrote:
And one more question about jboss-ejb-client.xml
Now my jboss-ejb-client.xml contains this code:
<jboss-ejb-client xmlns="urn:jboss:ejb-client:1.0">
<client-context>
<ejb-receivers>
<remoting-ejb-receiver outbound-connection-ref="remote-ejb-connection"/>
</ejb-receivers>
</client-context>
</jboss-ejb-client>
and for example I want to use this receiver with to connections: to myserver1:4447 ant to myserver2:4447
Each EJB receiver corresponds to a distinct destination server. It's equivalent to each receiver using a connection to a destination server. So you can't have a single receiver for 2 different destinations. You'll need two receivers configured for that.
If however, your EJBs are deployed in clustered server, then you can just list one of those nodes and rest of the nodes will be automatically connected/managed by the server. More details about clustering is here https://docs.jboss.org/author/display/AS71/Clustered+EJBs
-
21. Re: LookUp remote EJB from local EJB
apakhunov Jul 12, 2012 9:06 AM (in response to jaikiran)Guys, what about my question above?
Thanks,
Alex
-
22. Re: LookUp remote EJB from local EJB
wdfink Jul 13, 2012 4:57 AM (in response to apakhunov)Alexander Pakhunov wrote:
Is it possible to configure EJB receivers using JBoss EJB client api?
What you mean by that? What you want to achieve?
-
23. Re: LookUp remote EJB from local EJB
jaikiran Jul 13, 2012 5:24 AM (in response to apakhunov)Please create a separate thread for that question.