-
1. Re: Does JBoss 7 support RMI programming
jaysensharma Jun 3, 2012 11:36 PM (in response to gandon)1 of 1 people found this helpfulHI Gan,
There are various options available to achieve your goal of invoking the tests on Server VM and getting the results in Client VM. EJBs are RMI Based technology. EJBs are one of those where an EJB Client can trigger an operation on server side Remotely and the Client VM can get the result back as well , Like http://middlewaremagic.com/jboss/?p=1466
There is another better approch like using the SAR (service Archives) in JBoss AS7 http://middlewaremagic.com/jboss/?p=1081 NOTE: once you create a Service archive then using any JMX utility like JConsole or VisualVm etc... you can access the data from your SAR MBean, by invoking it's various operations remotely.
-
2. Re: Does JBoss 7 support RMI programming
gandon Jun 4, 2012 1:35 AM (in response to jaysensharma)Hi Jay,
Thanks for the quick reply. For some reason we would like to use approaches other than EJB. I'll try the SAR option.
Regards,
Gan
-
3. Re: Does JBoss 7 support RMI programming
wdfink Jun 4, 2012 5:50 AM (in response to jaysensharma)Jay Kumar SenSharma wrote:
The linked article is not completely correct, it will mix two different approches. See the description in the JBoss manual for that.
-
4. Re: Does JBoss 7 support RMI programming
gandon Jun 12, 2012 4:27 AM (in response to gandon)Thanks to all, I think I managed to get it worked, though not using remote:// protocol.
I deployed the application as a sar file, then use the generic RMI approach, which start a registry on 1099 port and do a normal bind and lookup via rmi protocol.