cburghardt
Jan 16th, 2006, 09:15 AM
Hi,
I export 3 beans as RMI services. I want to programmatically set the serviceport to something different than 1099 so I retrieve the beans from the ApplicationContext and call RmiServiceExporter#setRegistryPort
But as the bean has already been initialized when I retrieve it I need to shutdown the registry (for all 3 beans), set the new port and restart. How can I do that? I already tried to call "destroy", set the port and then "afterPropertiesSet" but then I get an RMI exception that the "ObjectID" is already in use :confused:
Regards,
Carsten
I export 3 beans as RMI services. I want to programmatically set the serviceport to something different than 1099 so I retrieve the beans from the ApplicationContext and call RmiServiceExporter#setRegistryPort
But as the bean has already been initialized when I retrieve it I need to shutdown the registry (for all 3 beans), set the new port and restart. How can I do that? I already tried to call "destroy", set the port and then "afterPropertiesSet" but then I get an RMI exception that the "ObjectID" is already in use :confused:
Regards,
Carsten