sophokles73 on master
Use VARCHAR type instead of CHA… Make logging less verbose when … Improve formatting Signed-off-… and 2 more (compare)
calohmn on 2.0.x
Fix empty KAFKA_TRUSTSTORE_PATH… (compare)
calohmn on master
Fix empty KAFKA_TRUSTSTORE_PATH… (compare)
from __future__ import print_function, unicode_literals
from proton import Message
from proton.handlers import MessagingHandler
from proton.reactor import Container
class HelloWorld(MessagingHandler):
def __init__(self, server, address):
super(HelloWorld, self).__init__()
self.server = server
self.address = address
def on_start(self, event):
print("connecting ...")
conn = event.container.connect(self.server, sasl_enabled=True, allowed_mechs="PLAIN", allow_insecure_mechs=True, user="consumer@HONO", password="verysecret")
event.container.create_sender(conn, self.address)
def on_sendable(self, event):
print("sending command")
event.sender.send(Message(body="Hello World!", address="command/DEFAULT_TENANT/4711", content_type="text/plain", subject="call"))
event.sender.close()
event.connection.close()
Container(HelloWorld("amqp://hono.eclipseprojects.io:15672", "command/DEFAULT_TENANT")).run()
properties
dict with keys to
and subject
but it seems that qpid wants it as separate properties address
and subject
directly (see here: https://qpid.apache.org/releases/qpid-proton-0.32.0/proton/python/docs/proton.html#proton.Message)
ttd
set
QuarkusMqttProtocolAdapterProperties
but couldn't find where this was populated. Do I have to provide the configuration in a different way for these quarkus containers?