Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Use of the rmi protocol of dubbo

Shulou Source: shulou.com Published: 2022-06-01 05:21:09 10月04日 Update

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

Tags: Configuration service interface normal consistent customer client provider service configuration consumer port path consumption Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Linux vpn Docker NVidia