/rabbitmq_server-3.6.5/sbin ./rabbitmq-plugins enable rabbitmq_management
The following plugins have been enabled:
mochiweb
webmachine
rabbitmq_web_dispatch
amqp_client
rabbitmq_management_agent
rabbitmq_management
/rabbitmq_server-3.6.5/sbin ./rabbitmq-plugins enable rabbitmq_jms_topic_exchange
The following plugins have been enabled:
rabbitmq_jms_topic_exchange
Download rabbitmqadmin from http://localhost:15672/cli/rabbitmqadmin
Place it into /usr/local/bin
Make it executable (sudo chmod +x rabbitmqadmin)
Use rabbitmqadmin to create the new Exchange type topic:
rabbitmqadmin declare exchange name=sap.topic type=topic
exchange declared
Use rabbitmqadmin to create the new Exchange type x-jms-topic
rabbitmqadmin declare exchange name=jms.sap.topic type=x-jms-topic
exchange declared
List the Exchanges created (not necessary... just to show you that the creation of the Exchange worked)
rabbitmqadmin list exchanges
+--------------------+-------------+
| name | type |
+--------------------+-------------+
| | direct |
| amq.direct | direct |
| amq.fanout | fanout |
| amq.headers | headers |
| amq.match | headers |
| amq.rabbitmq.log | topic |
| amq.rabbitmq.trace | topic |
| amq.topic | topic |
| jms.sap.topic | x-jms-topic |
| sap.topic | topic |
+--------------------+-------------+
Create the bind from the jms.sap.topic Exchange to sap.topic Exchange with the binding -key binding.sap.topic:
rabbitmqadmin declare binding source="jms.sap.topic" destination_type="exchange" destination="sap.topic" routing_key="binding.sap.topic"
Traceback (most recent call last):
File "/usr/local/bin/rabbitmqadmin", line 1007, in <module>
main()
File "/usr/local/bin/rabbitmqadmin", line 413, in main
method()
File "/usr/local/bin/rabbitmqadmin", line 621, in invoke_declare
self.post(uri, json.dumps(upload))
File "/usr/local/bin/rabbitmqadmin", line 442, in post
return self.http("POST", "%s/api%s" % (self.options.path_prefix, path), body)
File "/usr/local/bin/rabbitmqadmin", line 504, in http
% (resp.status, resp.reason, path, resp.read()))
Exception: Received 500 Internal Server Error for path /api/bindings/%2F/e/jms.sap.topic/e/sap.topic
{"error":"Internal Server Error","reason":"{error,\n {exit,\n {{{error,\n {function_clause,\n [{erl_scan,string,\n [error,1,[]],\n [{file,\"erl_scan.erl\"},{line,152}]},\n {rabbit_jms_topic_exchange,decode_term,1,\n [{file,\"src/rabbit_jms_topic_exchange.erl\"},\n {line,218}]},\n {rabbit_jms_topic_exchange,generate_binding_fun,1,\n [{file,\"src/rabbit_jms_topic_exchange.erl\"},\n {line,202}]},\n {rabbit_jms_topic_exchange,add_binding,3,\n [{file,\"src/rabbit_jms_topic_exchange.erl\"},\n {line,137}]},\n {rabbit_binding,x_callback,4,\n [{file,\"src/rabbit_binding.erl\"},{line,568}]},\n {rabbit_binding,add,3,\n [{file,\"src/rabbit_binding.erl\"},{line,192}]},\n {mnesia_tm,apply_fun,3,[{file,\"mnesia_tm.erl\"},{line,833}]},\n {mnesia_tm,execute_transaction,5,\n [{file,\"mnesia_tm.erl\"},{line,813}]}]}},\n [{rabbit_misc,execute_mnesia_transaction,1,\n [{file,\"src/rabbit_misc.erl\"},{line,553}]},\n {rabbit_misc,execute_mnesia_tx_with_tail,1,\n [{file,\"src/rabbit_misc.erl\"},{line,575}]},\n {rabbit_channel,binding_action,9,\n [{file,\"src/rabbit_channel.erl\"},{line,1619}]},\n {rabbit_channel,handle_cast,2,\n [{file,\"src/rabbit_channel.erl\"},{line,457}]},\n {gen_server2,handle_msg,2,\n [{file,\"src/gen_server2.erl\"},{line,1032}]},\n {proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,237}]}]},\n {gen_server,call,\n [<0.13704.0>,\n {call,\n {'exchange.bind',0,<<\"sap.topic\">>,<<\"jms.sap.topic\">>,\n <<\"binding.sap.topic\">>,false,[]},\n none,<0.13678.0>},\n infinity]}},\n [{gen_server,call,3,[{file,\"gen_server.erl\"},{line,190}]},\n {rabbit_mgmt_util,'-amqp_request/5-fun-0-',4,\n [{file,\"src/rabbit_mgmt_util.erl\"},{line,585}]},\n {rabbit_mgmt_util,with_channel,5,\n [{file,\"src/rabbit_mgmt_util.erl\"},{line,604}]},\n {rabbit_mgmt_wm_bindings,accept_content,2,\n [{file,\"src/rabbit_mgmt_wm_bindings.erl\"},{line,81}]},\n {webmachine_resource,resource_call,3,\n [{file,\"src/webmachine_resource.erl\"},{line,186}]},\n {webmachine_resource,do,3,\n [{file,\"src/webmachine_resource.erl\"},{line,142}]},\n {webmachine_decision_core,resource_call,1,\n [{file,\"src/webmachine_decision_core.erl\"},{line,48}]},\n {webmachine_decision_core,accept_helper,1,\n [{file,\"src/webmachine_decision_core.erl\"},{line,612}]}]}}\n"}
So I've tried to create a Queue and try to Bind the Exchange jms.sap.topic directly to the Queue. First, I'm going to create the Queue:
rabbitmqadmin declare queue name=sap.queue durable=true
queue declared
Listing queues (not necessary... just to show you that the creation of queue worked)
rabbitmqadmin list queues
+-----------+----------+
| name | messages |
+-----------+----------+
| sap.queue | 0 |
+-----------+----------+
Now I've tried to bind the Exchange jms.sap.topic to this Queue:
rabbitmqadmin declare binding source="jms.sap.topic" destination_type="queue" destination="sap.queue" routing_key="binding.sap.queue.topic"
Traceback (most recent call last):
File "/usr/local/bin/rabbitmqadmin", line 1007, in <module>
main()
File "/usr/local/bin/rabbitmqadmin", line 413, in main
method()
File "/usr/local/bin/rabbitmqadmin", line 621, in invoke_declare
self.post(uri, json.dumps(upload))
File "/usr/local/bin/rabbitmqadmin", line 442, in post
return self.http("POST", "%s/api%s" % (self.options.path_prefix, path), body)
File "/usr/local/bin/rabbitmqadmin", line 504, in http
% (resp.status, resp.reason, path, resp.read()))
Exception: Received 500 Internal Server Error for path /api/bindings/%2F/e/jms.sap.topic/q/sap.queue
{"error":"Internal Server Error","reason":"{error,\n {exit,\n {{{error,\n {function_clause,\n [{erl_scan,string,\n [error,1,[]],\n [{file,\"erl_scan.erl\"},{line,152}]},\n {rabbit_jms_topic_exchange,decode_term,1,\n [{file,\"src/rabbit_jms_topic_exchange.erl\"},\n {line,218}]},\n {rabbit_jms_topic_exchange,generate_binding_fun,1,\n [{file,\"src/rabbit_jms_topic_exchange.erl\"},\n {line,202}]},\n {rabbit_jms_topic_exchange,add_binding,3,\n [{file,\"src/rabbit_jms_topic_exchange.erl\"},\n {line,137}]},\n {rabbit_binding,x_callback,4,\n [{file,\"src/rabbit_binding.erl\"},{line,568}]},\n {rabbit_binding,add,3,\n [{file,\"src/rabbit_binding.erl\"},{line,192}]},\n {mnesia_tm,apply_fun,3,[{file,\"mnesia_tm.erl\"},{line,833}]},\n {mnesia_tm,execute_transaction,5,\n [{file,\"mnesia_tm.erl\"},{line,813}]}]}},\n [{rabbit_misc,execute_mnesia_transaction,1,\n [{file,\"src/rabbit_misc.erl\"},{line,553}]},\n {rabbit_misc,execute_mnesia_tx_with_tail,1,\n [{file,\"src/rabbit_misc.erl\"},{line,575}]},\n {rabbit_channel,binding_action,9,\n [{file,\"src/rabbit_channel.erl\"},{line,1619}]},\n {rabbit_channel,handle_cast,2,\n [{file,\"src/rabbit_channel.erl\"},{line,457}]},\n {gen_server2,handle_msg,2,\n [{file,\"src/gen_server2.erl\"},{line,1032}]},\n {proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,237}]}]},\n {gen_server,call,\n [<0.18901.0>,\n {call,\n {'queue.bind',0,<<\"sap.queue\">>,<<\"jms.sap.topic\">>,\n <<\"binding.sap.queue.topic\">>,false,[]},\n none,<0.18875.0>},\n infinity]}},\n [{gen_server,call,3,[{file,\"gen_server.erl\"},{line,190}]},\n {rabbit_mgmt_util,'-amqp_request/5-fun-0-',4,\n [{file,\"src/rabbit_mgmt_util.erl\"},{line,585}]},\n {rabbit_mgmt_util,with_channel,5,\n [{file,\"src/rabbit_mgmt_util.erl\"},{line,604}]},\n {rabbit_mgmt_wm_bindings,accept_content,2,\n [{file,\"src/rabbit_mgmt_wm_bindings.erl\"},{line,81}]},\n {webmachine_resource,resource_call,3,\n [{file,\"src/webmachine_resource.erl\"},{line,186}]},\n {webmachine_resource,do,3,\n [{file,\"src/webmachine_resource.erl\"},{line,142}]},\n {webmachine_decision_core,resource_call,1,\n [{file,\"src/webmachine_decision_core.erl\"},{line,48}]},\n {webmachine_decision_core,accept_helper,1,\n [{file,\"src/webmachine_decision_core.erl\"},{line,612}]}]}}\n"}
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
As requested, this is the Thread to report the problem I'm facing with the plugin rabbitmq-jms-topic-exchange
MESSAGE SKIPPED TO SAVE SPACE
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
See my response in this very thread that explains *why* binding the way some on this listattempt it will not work.
On Fri, Sep 16, 2016 at 2:06 PM, Alexey Ivanov <www.a...@gmail.com> wrote:
Artur, any luck with bindings?
среда, 14 сентября 2016 г., 18:26:57 UTC+3 пользователь Artur Drummond написал:As requested, this is the Thread to report the problem I'm facing with the plugin rabbitmq-jms-topic-exchangeMESSAGE SKIPPED TO SAVE SPACECould you help me?Artur Drummond
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.