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

Apache ActiveMQ create topic #241

Closed
grill2010 opened this issue Jun 23, 2016 · 3 comments
Closed

Apache ActiveMQ create topic #241

grill2010 opened this issue Jun 23, 2016 · 3 comments

Comments

@grill2010
Copy link

grill2010 commented Jun 23, 2016

Hi,

I could not create any topic on Apache ActiveMQ. Below you can find my code:

var client = new AMQPClient();
var brokerUrl = "amqp://localhost:5672/?clientid=ocm_server";
log.info("Broker url: " + brokerUrl);
client.connect(brokerUrl).then(function () {
    log.info("Established connection to broker");
    return Promise.all([
        client.createSender("topic://CallData"),
        client.createReceiver("topic://CallData")
      ]).spread(amqpHandler);
    });

Did I do something wrong? The weird thing is that when I look on the ActiveMQ Webinterface the only thing which was created is a queue element with the name topic:
Many thanks for your help.

@mbroadst
Copy link
Collaborator

@grill2010 hmm that looks like it should work. We don't actively test ActiveMQ, but have in the past.. could you possibly provide the debug logs for this attempt? (add the following environment variable: DEBUG=amqp*)

@grill2010
Copy link
Author

Hi, many thanks for your quick response. I figured out the problem. It seems that I have to pass the ActiveMQ standard policy to the AMQPClient.

var activeMQPolicy = require("amqp10").Policy;
var client = new AMQPClient(activeMQPolicy.ActiveMQ);

It works as expected now.

best wishes

@mbroadst
Copy link
Collaborator

👍

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