You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/11/20 18:47:44 UTC

[GitHub] [pulsar] ypt edited a comment on issue #3906: Multi-Topic subscription across tenant and namespace in Java client

ypt edited a comment on issue #3906: Multi-Topic subscription across tenant and namespace in Java client
URL: https://github.com/apache/pulsar/issues/3906#issuecomment-556229652
 
 
   +1. I also just ran into this. Reading the docs, I had assumed that I was able to create a consumer that could consume topics across different namespaces, but in trying to do so with the Java client, I'm seeing an `java.lang.IllegalArgumentException: Topics should have same namespace` exception.
   
   For what it's worth, my usage looks something like the following:
   
   ```kt
   client.newConsumer()
       .topics(listOf(
           "persistent://tenant/namespace-1/topic",
           "persistent://tenant/namespace-2/topic"
       ))
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services