You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@dubbo.apache.org by GitBox <gi...@apache.org> on 2018/04/11 10:34:56 UTC

[GitHub] neesonqk opened a new issue #104: Will it share the same instance with Spring service?

neesonqk opened a new issue #104: Will it share the same instance with Spring service?
URL: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/104
 
 
   Simple question: 
   
   ```
   @Service
   @com.alibaba.dubbo.config.annotation.Service(
           version = "${message.service.version}",
           application = "${dubbo.application.id}",
           protocol = "${dubbo.protocol.id}",
           registry = "${dubbo.registry.id}"
   )
   public class MessageServiceImpl implements MessageService<MessageBean> {
        ....
   }
   ```
   I annotated with both spring @service and dubbo @service to my message service, by right it suppose to be a singleton (also my expectation),  I just wonder are they creating their own instance separately?
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services