Spring for Apache Kafka Milestone 1 Available

Engineering | Gary Russell | March 14, 2016 | ...

I am pleased to announce that the spring-kafka (Spring for Apache Kafka) first milestone is now available (1.0.0.M1).

The existing spring-integration-kafka extension project - currently at version 1.3.0.RELEASE supports Kafka 0.8.x.x and is used in Spring XD (Kafka MessageBus) and Spring Cloud Stream (Kafka Binder).

This new project (spring-kafka) breaks out the core components into a separate project. It is based on the new 0.9.0.x pure Java Kafka clients.

spring-kafka brings the familiar Spring programming model to Apache Kafka for any Spring user, not just those using Spring Integration. An upcoming spring-integration-kafka release will be a complete rewrite, utilizing the spring-kafka

This Week in Spring - March 8th, 2016

Engineering | Josh Long | March 08, 2016 | ...

Welcome to another installment of This Week in Spring! This week I'm in Bruhl, Germany for the amazing JavaLand show, then it's off to Scotland to visit a large customer, and then it's off to Romania for Voxxed Days Bucharest. If you're in any of those places, I'd love to connect!

Core container refinements in Spring Framework 4.3

Engineering | Stéphane Nicoll | March 04, 2016 | ...

Spring Framework 4.3.RC1 is around the corner and brings nice core container refinements which we are going to explore in this post...

Implicit constructor injection for single-constructor scenarios

Consider the following service class:

@Service
public class FooService {

    private final FooRepository repository;

    @Autowired
    public FooService(FooRepository repository) {
        this.repository = repository
    }
}

Quite a common use case but if you forget the @Autowired annotation on the constructor, the container will throw an exception looking for a default constructor, unless you explicitly indicate autowire mode 'constructor' in your bean definition setup (e.g. in an XML <bean>

This Week in Spring - March 1, 2016

Engineering | Josh Long | March 01, 2016 | ...

Welcome to another installment of This Week in Spring! This week, I'm in Shenzhen, China and Zurich, Switzerland for Voxxed Days Zurich. It's going to be a busy week indeed though I sure hope to see you there! Anyway, we've got a lot to cover this week so let's get to it!

This Week in Spring - February 23, 2016

Engineering | Josh Long | February 23, 2016 | ...

Welcome to another installment of This Week in Spring! We're already staring down the last weeks of February!

Spring AMQP 1.6.0 Milestone 1 (and 1.5.4) Available

Engineering | Gary Russell | February 16, 2016 | ...

We are pleased to announce the availability of the first milestone of the 1.6 version of Spring AMQP.

Some highlights of this release:

  • A new jar spring-rabbit-test containing a test harness to help with testing @RabbitListener methods; see the testing chapter.

  • Multiple @RabbitListener annotations on a method (when using Java 8) and the @RabbitListeners annotation (for pre-Java 8), each allowing the same method to be the listener method for multiple listener containers.

  • Full support for the Delayed Message Exchange RabbitMQ plugin.

  • An AsyncRabbitTemplate returning ListenableFuture<?> for request/reply messaging.

  • An option to publish ApplicationEvents when listener containers go idle.

This Week in Spring - February 16th, 2016

Engineering | Josh Long | February 16, 2016 | ...

Welcome to another installment of This Week in Spring! It's been a busy week for all of us on the Spring team, as you're about to see! I've just finished my presentation at the epic DevNexus show and now I'm off to visit customers in Hartford and Los Angeles before making my way to the epic ConFoo conference in Montreal, Canada. If you're in the area, be sure to ping me and say hi!

We've got a lot to cover, so let's get to it!

Developing Spring Boot applications with Kotlin

Engineering | Sébastien Deleuze | February 15, 2016 | ...

Update: a comprehensive Spring Boot + Kotlin tutorial is now available.

Just in time for Kotlin 1.0 release, we are adding support for Kotlin language to https://start.spring.io in order to make it easier to start new Spring Boot projects with this language.

This blog post is also an opportunity for me to explain why I find this language interesting, to show you a sample project in detail and to give you some tips.

What is Kotlin?

Kotlin is a language created by JetBrains. It runs on top of the JVM (but not only), it is an object oriented language that includes many ideas from functional programming. I won't go too much in details about all Kotlin features (PDF, HTML

Distributed Tracing with Spring Cloud Sleuth and Spring Cloud Zipkin

Engineering | Josh Long | February 15, 2016 | ...

I was inspired by OpenZipkin contributor and Spring Cloud Sleuth and Zipkin contributor Adrian Cole's epic talk introducing Zipkin to write this particular post. There's so much epic stuff in that talk, so once you're done reading this, go watch that!

Advances in technology and cloud computing have made it easier to stand up and deploy services with ease. Cloud computing enables us to automate away the pain (from days or weeks (gasp!) to minutes!) associated with standing up new services. This increase in velocity in turn enables us to be more agile, to think about smaller batches of…

Spring Data Couchbase 2.0

Engineering | Josh Long | February 10, 2016 | ...

This is a cross-post blog from Simon BASLÉ from Couchbase. You can find him on twitter (@simonbasle) or github. Learn more about Couchbase and the Couchbase Java SDK on the developer portal. Thanks again, Simon and great job to you and your team! -Josh

Spring Data Couchbase 2.0 is a rewrite of the original Spring Data Couchbase 1.4.x connector. It is based on the Couchbase Java 2.2 SDK and makes heavy use of the new query language N1QL (which was introduced in Couchbase Server 4.0) to offer more features for Spring Data users.

The first Milestone has been released last august, then a Release…

Get the Spring newsletter

Stay connected with the Spring newsletter

Subscribe

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Tanzu Spring offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all