Non ho capito bene il tuo problema, comunque puoi bindare il tuo servizio anche con un nome a tuo piacere sulla porta che decidi tu, l'importante che te lo ricordi lato client.
Esempio:
codice:// Lato server: Registry registry = LocateRegistry.createRegistry(Integer.parseInt(tuaPorta)); registry.bind("mioServizio", new mioOggetto()); // Lato client: mioOggettoInterface obj = (mioOggettoInterface)(getRmiRegistry().lookup("mioServizio"));


Rispondi quotando