PDA

View Full Version : Exporting the service using the RmiServiceExporter !


hevo
Dec 11th, 2004, 05:59 PM
In the Spring tutorial we have

16.2.1. Exporting the service using the RmiServiceExporter

Using the RmiServiceExporter, we can expose the interface of our AccountServer object as RMI object. The interface can be accessed by using RmiProxyFactoryBean, or via plain RMI in case of a traditional RMI service. The RmiServiceExporter explicitly supports the exposing of any non-RMI services via RMI invokers.

Except after some testing, i could only remotely obtain my RMI instance of the RMIServiceExporter using RmiProxyFactoryBean is this normal :?:

Alef Arendsen
Dec 11th, 2004, 07:34 PM
This is the case if you don't let your objects adhere to the RMI requirements (implement Remote, throw RemoteException). If you do code your objects as plain RMI services, you should be able to look them up without the PFB

hevo
Dec 12th, 2004, 01:52 AM
Thanks a lot.

Its working now.
:D :D :D