<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi all,<br>
<br>
I'm in the dark about the topics and subscriptions in Enmasse.<br>
I'm currently using a standard addressspace in Enmasse 0.24.1 and using the documentation from
<a class="moz-txt-link-freetext" href="http://enmasse.io/documentation/0.24.1/openshift/#con-standard-address-space-messaging">
http://enmasse.io/documentation/0.24.1/openshift/#con-standard-address-space-messaging</a>. Also I'm using qpid-bow as the consumer and publisher (<a class="moz-txt-link-freetext" href="https://github.com/Bynder/qpid-bow">https://github.com/Bynder/qpid-bow</a>).<br>
I'm having two questions:<br>
My first questions is about the wildcards:<br>
<blockquote>The documentation states that:<br>
<ul>
<li>a/#/b matches a/foo/b, a/bar/b, and a/foo/bar/b </li><li>a/+/b matches a/foo/b and a/bar/b, but would not match a/foo/bar<br>
</li></ul>
I've created a topic address "addressspace/test".<br>
I'm performing my subscriptions using following command: "qb message receive addressspace/test".<br>
I'm performing my publications using following command: "qb message send addressspace/test message".<br>
<br>
When I'm subscribing to "addressspace/test" and publishing to "addressspace/test" the subscriber receives the message.<br>
When I'm subscribing to "addressspace/test/foo" and publishing to "addressspace/test/foo" the subscriber receives the message.<br>
However, when I'm subscribing to "addressspace/test/+" and publishing to "addressspace/test/foo" the subscriber does not receive the message although stated by the documentation. When I publish to "addressspace/test/+" it is received by the subscriber.<br>
Also, when I'm subscribing to "addressspace/test/#" and publishing to "addressspace/test/foo" the subscriber does not receive the message although stated by the documentation. When I publish to "addressspace/test/#" it is received by the subscriber.<br>
When I'm subscribing to "addressspace/test.*" and publishing to "addressspace/test.foo" the subscriber also receives the message. I got this from the automated tests.<br>
Can somebody point me towards what I'm doing wrong or did I wrongly interpreted the documentation?<br>
</blockquote>
<br>
My second question is about the subscription address.<br>
<blockquote>Just verifying my assumptions:<br>
Say I have a topic "test" and I create a subscription, called "foo", on topic "test/foo/+" every message on topic "test/foo/[anything]"(if my assumption in the previous question is correct) should be forwarded and stored in the subscription "foo". When a client
 connects to "foo", it receives all messages in the queue.<br>
When I have the same topic "test" and I create an additional subscription, called "bar", on topic "test/foo/bar" every message on topic "test/foo/bar" should be forwarded and stored in both subscription "foo" and "bar". When a client connects to "foo", it will
 receive all messages to "test/foo/+" including the ones to "test/foo/bar". When a client connects to "bar" it will receive all message to "test/foo/bar".<br>
Are my assumptions correct?<br>
<br>
Additional sub question:<br>
I'm trying to create a subscription using following yaml template, is this correct?<br>
- kind: Address<br>
  apiVersion: enmasse.io/v1alpha1<br>
  metadata:<br>
    name: foo<br>
  spec:<br>
    address: foo<br>
    topic: test/foo/+<br>
    type: topic<br>
    plan: standard-small-topic<br>
</blockquote>
<br>
Can somebody please clarify these things for me and maybe provide working examples?<br>
Thanks!<br>
<br>
Bob Claerhout<br>
<div class="moz-signature">-- <br>
<title></title>
<br>
<div class="moz-signature">
<table>
<tbody>
<tr>
<td><img src="cid:part1.38951037.C7A83628@aloxy.io" alt=""></td>
<td><b>Bob Claerhout</b><br \="">
Software developer<br \="">
M +32 479 34 84 92<br \="">
The Beacon, Sint-Pietersvliet 7, 2000<br \="">
Antwerp<br \="">
<a href="mailto:bob.claerhout@aloxy.io">bob.claerhout@aloxy.io</a> | <a href="http://www.aloxy.io">
www.aloxy.io</a></td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>