Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

The case is here:

I decide to use Rabittmq-Server as interface for request input and using my own charm fro connect to the rabitt mq and process the the requests!.

How can I relate this two ( my charm and Rabittmq-server ) together?

Thanks

share|improve this question

1 Answer 1

If you want to write a charm, a good place to start is with the official documentation:

https://juju.ubuntu.com/docs/authors-intro.html

Specifically in your case, you will need to add a requirement to your charm's metadata.yaml file to indicate that it needs to access the RabbitMQ interface of the rabbit charm.

 requires:
  amqp:
    interface: rabbitmq

You will then need to create hook files to manage the connection between your charm and rabbit. I would suggest also looking at the source for the rabbit charm, which will give you a better idea of what information it is possible to transfer using this service

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.