Skip to content

Make use of RabbitConnectionFactoryBean.setUri() #3328

Open

Description

Activity

  1. changed the title [-]Make use of RabbitConnectionFactory.setUri()[/-] [+]Make use of RabbitConnectionFactoryBean.setUri()[/+] on Jun 25, 2015
  2. added
    status: waiting-for-triage
    on Nov 30, 2015
  3. removed
    status: waiting-for-triage
    on Nov 30, 2015
  4. GurinderSinghBrar commented on Jan 18, 2018

    @GurinderSinghBrar

    I have used ConnectionFactory instead of RabbitConnectionFactoryBean in possible solution.

    URI uriObject = new URI(input);
    com.rabbitmq.client.ConnectionFactory factory = new com.rabbitmq.client.ConnectionFactory();
    factory.setUri(uri);
    this.username = uriObject.getUserInfo().split(":")[0]);
    this.password = uriObject.getUserInfo().split(":")[1]);
    this.virtualhost = uriObject.getPath();
  5. added this to the milestone on Mar 22, 2018
  6. modified the milestones: Backlog, Icebox on Aug 22, 2018
  7. ayudovin commented on Sep 9, 2018

    @ayudovin
    Contributor

    @wilkinsona, Should new property uri be added in RabbitProperties ?

  8. wilkinsona commented on Sep 10, 2018

    @wilkinsona
    MemberAuthor

    @ayudovin We've backed ourselves into a bit of a corner with Rabbit's configuration. We currently treat the addresses property in a somewhat similar way to how Rabbit treats a URI in that we parse various things out of it (although only from the first address when there's more than one), whereas Rabbit expects address to just be a host:port pair. RabbitProperties' addresses property should really align with Rabbit and only take host:port pairs. We could then add a new uri property. I'm not sure how we get from where we are now to where we want to be as it will be a breaking change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions