laywin commented on issue #14859:
URL: https://github.com/apache/dubbo/issues/14859#issuecomment-2458832326

   i have tested dubbo 3.3.1, it successed  to register app instance 
programmatically.
   
   ```java
   ServiceConfig<Greeter> service = new ServiceConfig<>();
                service.setInterface(Greeter.class);
                service.setRef(new GreeterImpl());
                DubboBootstrap.getInstance().getCache().get(App.class);
   
                RegistryConfig registryConfig = new 
RegistryConfig("nacos://127.0.0.1:8848");
                registryConfig.setRegisterMode("instance");
                DubboBootstrap bootstrap = DubboBootstrap.getInstance();
                bootstrap.application(new ApplicationConfig("tri-stub-server"))
                                .registry(registryConfig)
                                .protocol(new 
ProtocolConfig(CommonConstants.TRIPLE, 50051))
                                .service(service)
                                .start();
                System.out.println("Dubbo triple stub server started");
   
                System.in.read();
   ```
   
   you can paste your code for further discuss.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to