Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Producer message from file #198

Open
sir-farfan opened this issue Jul 1, 2021 · 1 comment
Open

Producer message from file #198

sir-farfan opened this issue Jul 1, 2021 · 1 comment

Comments

@sir-farfan
Copy link

sir-farfan commented Jul 1, 2021

Hey there
I'm new to this extension, I'm reading the documentation but haven't found if there's a way to load the message to be sent from a file.
If I write {{}} I can see some system.path stuff, but I'm not sure if I can use that to tell the producer to send the contents of a file

This is what I'm attempting to do:

PRODUCER message-from-file
topic: mytopic
{{path/to/file.xml}}
@fbricon
Copy link
Collaborator

fbricon commented Jul 1, 2021

This is not supported. In the meantime can just copy the content of the xml file into the .kafka file, eg.

PRODUCER my-producer
topic: mytopic
key: mykey

<foo>
  <bar />
</foo>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants