3 Replies Latest reply on Mar 26, 2015 6:45 AM by Rakesh Shukla

    jboss-ejb-client.xml vs. dynamic ejb receiver registration

    Alexander Pakhunov Newbie

      I'm running jboss in standalone mode and I want to have an ability to call EJBs from other remote servers in standalone mode.

       

      Part of the procedure in described here https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+server+instance.

      In addition remote servers should have distinct name defined either in jboss-app.xml in ear or in standalone.xml. This distinct name should be provided to InitialContext during lookup.

      Discussed here https://community.jboss.org/thread/202268?start=0&tstart=0

       

       

      In order to add new connection to remote server instance, we need to describe connection in standalone.xml plus add corresponding remoting-ejb-receiver to jboss-ejb-client.xml in war/ear.

       

      One of the requirements for the app we develop is to have ability to add connections to remote servers at runtime (using web UI).

       

      Connection can be added dynamically at runtime without having to restart the server. We can use JBoss MAnagement API to achieve that.

       

      But in order to add remoting-ejb-receiver we will have to manually edit jboss-ejb-client.xml and repackage and redeploy war/ear.

       

      Is it possible to add remoting-ejb-receiver at runtime (e.g. using jboss-ejb-client api http://docs.jboss.org/ejbclient/1.0.5.Final/, using code similar to one in DescriptorBasedEJBClientContextService)?