1 of 1 people found this helpful
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.
Thanks for the quick reply. For some reason we would like to use approaches other than EJB. I'll try the SAR option.
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.
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.