Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Spring AMQP 1.6 RELEASE Available

DZone's Guide to

Spring AMQP 1.6 RELEASE Available

We are pleased to announce that the Spring AMQP 1.6 GA (1.6.0.RELEASE) is now available in the spring release repo, as well as in the Maven Central.

· Integration Zone
Free Resource

Modernize your application architectures with microservices and APIs with best practices from this free virtual summit series. Brought to you in partnership with CA Technologies.

We are pleased to announce that the Spring AMQP 1.6 GA (1.6.0.RELEASE) is now available in the spring release repo, as well as in the Maven Central.

First of all, thanks to everyone who contributed to the project anyway: JIRAs, GitHub issues, Pull Requests, blog posts & articles and even just with simple StackOverflow questions!

You can find the full feature pack in the previous Spring AMQP 1.6 RC1 blog post. You can refer to the what’s new in the reference documentation as well as the closed JIRA Issues for the entire 1.6 version.

Nevertheless we encountered with the couple last minute features which we would like to share here as well:

  • The User Id message property can now be populated in the RabbitTemplate viauserIdExpression. Typically we can use username from the ConnectionFactory:
<rabbit:template id="rabbitTemplate"
                 connection-factory="connectionFactory"
                 user-id-expression="@connectionFactory.username" />
  • Another community contribution feature is Builder fluent API for Queue andExchange definitions:
@Bean
public Queue fooQueue() {
    return QueueBuilder.nonDurable("foo")
                  .autoDelete()
                  .exclusive()
                  .withArgument("foo", "bar")
                  .build();
}
...
@Bean
public Exchange fooExchange() {
    return ExchangeBuilder.directExchange("foo")
                  .autoDelete()
                  .delayed()
                  .durable()
                  .internal()
                  .withArgument("foo", "bar")
                  .build();;
}

This is the last 1.x line release, although any maintain 1.6.x releases are possible, but as just bug fixes and minor improvements. Next up (2017) is 2.0, which may require Spring 5 and include some Reactive Streams effort and Java 8 code base.

As usual, we welcome any feedback, questions, or help, using the usual mechanisms:

Project Page | JIRA | Contribution | Help

The Integration Zone is proudly sponsored by CA Technologies. Learn from expert microservices and API presentations at the Modernizing Application Architectures Virtual Summit Series.

Topics:
spring ,java ,amqp ,spring amqp ,jvm

Published at DZone with permission of Artem Bilan. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}