Use of the rmi protocol of dubbo
Common interface and implementation class
Public interface DemoService
{
String sayHello (String msg)
}
Public class DemoServiceImpl implements DemoService
{
@ Override
Public String sayHello (String msg)
{
Return "hello" + msg
}
}
Dubbo service provider configuration
Dubbo service consumer configuration
SpringRMI service configuration
SpringRMI client configuration
Note that dubboRMI and springRMI call each other
Ports must match
To be consistent with springRMI configuration, dubbo defaults to the full path of the interface