[jboss-user] [JBoss Remoting] - Is it possible to influence which EJB is called (remote / local)?
Adriaan Wisse
do-not-reply at jboss.com
Tue Sep 4 12:20:06 EDT 2012
Adriaan Wisse [https://community.jboss.org/people/a3aan] created the discussion
"Is it possible to influence which EJB is called (remote / local)?"
To view the discussion, visit: https://community.jboss.org/message/757854#757854
--------------------------------------------------------------
At our project we are successfully using the remote EJB lookup as can be found in https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+server+instance https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+server+instance.
Our setup is the following: we have two instances of JBoss running in domain setup on a remote server. The first one is our webapplication jboss and the second one runs all our backend services (as EARs containing EJBs). The webapplication JBoss 'knows' the backend JBoss so remote EJB calls from the webapplication JBoss to the backend JBoss are working fine.
Locally we also run a JBoss instance for development purposes in standalone mode. This local JBoss also 'knows' the backend JBoss so when developing for instance a webapplication this webapplication can call the remote EJB's as well. This also gives our developers the opertunity to deploy an EAR containing one or more EJBs (which is also running on the backend JBoss) locally. This way the EJBs can easily be debugged and developed. And by just undeploying the EAR the locally running webapplication will call the remote EJB on the backend server again.
But... somehow at the moment we are facing the problem that it is not default behaviour that when the same EJB can be found locally and remote it will prefer the local EJB above the remote one. Is this some configuration option or something that we can influence?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/757854#757854]
Start a new discussion in JBoss Remoting at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2050]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120904/e7844620/attachment.html
More information about the jboss-user
mailing list