Building a Spring Integration 4.1 WebSocket Endpoint

Engineering | Pieter Humphrey | November 15, 2014 | ...

By Josh Long

Spring Integration 4.1 was just released and it includes a lot of great new features! One of my favorites? Smart integration with the Spring 4 WebSocket support. Now you can compose a integration flow whose final destination is a WebSocket client. There is also support for acting as the client to a WebSocket service.

In order to compile it, you will need Java 8 (we make heavy use of lambdas here) and the following Maven dependencies:

  • groupId:org.springframework.integration, artifactId:spring-integration-java-dsl, version: 1.0.0.RC1.
  • groupId:org.springframework.integration, artifactId:spring-integration-websocket, version: 4.1.0.RELEASE.
  • groupId:org.springframework.boot, artifactId:spring-boot-starter-websocket, version: 1.2.0.RC1.

This Week in Spring - November 11th, 2014

Engineering | Josh Long | November 12, 2014 | ...

Welcome to another installment of This Week in Spring! This week I'm back in Silicon Valley, talking to developers at a handful of large technology-driven companies about taking their first steps with a cloud-native architecture. Interesting feedback, as ever! This week I'll be doing a meetup here in the bay area on building Bootiful microservices with Spring Cloud. Next week, I look forward to seeing people at Java2Days in Sofia, Bulgaria! C'ya there!

  1. Spring Integration lead Gary Russell has just announced Spring Integration 4.1.0 and Spring AMQP 1.4.0 final are now available!

A quality @Qualifier

Engineering | Josh Long | November 04, 2014 | ...

Sometimes, teh Twitterz is an amazing place. Just last week I spent some time helping clarify the behavior of Spring's @Qualifier annotation, which is both older than JSR 330 and offers a richer superset of JSR 330's @Qualifier annotation. These misguided few seemed to be under the impression that Spring's annotation didn't offer the same degree of type-safety as the JSR 330 annotation. I don't know if it's because they simply hadn't read up on the support (which is fairly new, since it's only been around since 2007), or if it's because they work for companies that make their money if you…

This Week in Spring - November 4th, 2014

Engineering | Josh Long | November 04, 2014 | ...

Welcome to another installment of This Week in Spring! This week I'm on the road talking to enthusiastic Spring developers in Casablanca, Morocco at the JMaghreb conference and then it's off to London (again!) for the amazing Spring eXchange. If you're at either, be sure to say hi!

  • Artem Bilan, Spring Integration ninja and a personal hero of mine, has just announced the Spring Integration RC1 release. I don't know if you've seen the Java configuration DSL, but it makes writing complex integration flows a breeze! It takes advantage of Java 8's lamba support. Check it out! Remember, microservices aren't exclusively REST centric. If you're trying to build a microservice and expose it over any other mechanism, I'd start with Spring Integration.
  • Spring ninja Thomas Risberg just announced Spring for Hadoop 2.0.3

This Week in Spring - October 28, 2014

Engineering | Josh Long | October 29, 2014 | ...

Hello from New York City! Tonight I'll be addressing the Cloud Foundry User Group on how to build Spring Boot and Spring Cloud-based microservices that run on Cloud Foundry - I hope you'll join us! And if you're in Boston, then come hang out when I give the same talk there on Thursday!

  • Spring Social lead and all around Spring ninja Craig Walls announced the Spring Sync project and then wrote up a nice introduction to it, which - this is taken from the post because it's perfectly stated there - addresses efficient communication between client applications and Spring backends by employing patch-based exchanges. So, basically, the one piece of the pie (after basic REST, HATEOAS and hypermedia, OAuth and security in general, all of which Spring supports capably and in a first-class way) missing in client/server communication (like REST) is now here! If you read one

See how to build, test, secure, and add hypermedia with this new tutorial, "Building REST Services with Spring"

Engineering | Greg L. Turnquist | October 23, 2014 | ...

Greetings Spring Community!

Today we have released a new tutorial written by Spring geek Josh Long, the man who travels the globe talking about Spring: Building REST Services with Spring

In this sleek tutorial, you can read about the simplicity and power of building RESTful web services using Spring. You'll also see how to:

It's a really good read with LOTS of code (you know, the important stuff). What about the existing REST…

Introducing Spring Sync

Engineering | Craig Walls | October 22, 2014 | ...

Earlier today, I announced the first milestone release of Spring Sync, a new project that addresses efficient communication between client applications and Spring backends by employing patch-based exchanges. As this is a new project, I thought it would be a good time to show you what Spring Sync can do.

The examples given here refer to the Spring REST Todos example and/or the Todo class in that example project.

Creating and applying patches

At its lowest level, Spring Sync provides a library for producing and applying patches to Java objects. The Patch class is the centerpiece of this library…

This Week in Spring - October 21st, 2014

Engineering | Josh Long | October 22, 2014 | ...

Welcome to another installment of This Week in Spring! This week I'm talking to developers at the Neo4j GraphConnect conference with my pal (and Neo4j evangelist) Kenny Bastani, and then on Thursday I'll be doing a webinar with my one of my pals on the Vaadin team, Peter Lehto, on how to build Bootiful Vaadin applications - don't miss it!

Next week, I'll be doing a string of appearances at Toronto, New York City, and Boston meetups helping people better build microservices with Spring Boot, Spring Cloud and Cloud Foundry. Register now, come for the code, conversations, pizza and beer! Microservices are a big thing these days, and I'm sure there'll be a lot to talk about so don't miss these events!

As usual, we've got a lot to cover so let's get to it!

Reactor 2.0.0.M1 released with Reactive Streams integration!

Engineering | Jon Brisbin | October 21, 2014 | ...

The Reactor team is frankly a little giddy at finally being able to announce an initial milestone release of Reactor 2.0! This update includes a fully-compliant Reactive Streams implementation in the completely re-written Stream and Promise APIs! This is a huge step for Reactor users. It opens up integration with other Reactive Streams implementations like Akka Streams, Ratpack, RxJava and others. Reactor provides a solid foundation upon which to build modern #uberfastdata applications with demanding high-throughput and low-latency requirements.

Stream and Promise

The headline change in Reactor 2.0 is the Stream API. In fact, most other parts of the codebase were either just lightly refined or remain untouched between 1.1 and 2.0. Not so with Stream and Promise. These components have been completely…

Whats new in Spring Data Evans?

Engineering | Christoph Strobl | October 15, 2014 | ...

Spring Data Release Evans has been around for a while and it's more than time to finally introduce you to the latest and greatest features we shipped with it.

There's a lot to cover since major enhancements have gone into the commons module. Those changes already have made it into some store modules and will go on and sneak their way into others over time, too. All of them are already available for at least Spring Data JPA. That said, lets jump right in.

Advanced support for Java 8

Java8 has now been around for a while and previous Spring Data release trains already added fundamental support…

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