i'm new-ish networking, , i'm swimming (drowning) in semantics.
i have vm runs java application. ideally, fed inputs host through rabbitmq queue. java application place results on rabbitmq queue on different port used host application. after researching bit, seems rabbitmq exists in localhost space listeners on different ports, correct in this?
do need 2 rabbitmq servers running in tandem, then, (one on vm , other on host) each listening same port? or need 1 rabbitmq server running while both applications pointed same ip address/port?
also, have read cannot connect 'guest/guest' unless on localhost, understand, how rabbitmq supposed configured/reachable besides localhost?
i've been researching several hours, documentation not point direct answer/how-to guide. perhaps lack of network experience. if elaborate on these questions or point me articles/helpful guides, obliged.
p.s. -- don't know code display give context. let me know , i'll edit code post.
rabbitmq listens tcp port 5672 on network interfaces out-of-the-box. includes "loopback" interface (to allow fast connections self) , interfaces visible other remote hosts (including vms).
for use case, need single rabbitmq instance both directions. application on host publish messages 1 queue , java application in vm consume messages queue , push result second queue. second queue can consumed application on host.
for user, need create new user appropriate rights. documented in access control article. create user, can management web ui (after enabled management plugin) or using rabbitmqctl
command line tool.
the last part networking between host , vm. depends on technology use. may work out-of-the-box or may have configure how vms connected network. refer documentation of hypervisor.
Comments
Post a Comment