gensen / spring-amqp-protobuf

Message converter to and from Protocol Buffers for Spring AMQP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spring AMQP Protocol Buffer Converter

Message converter to and from Protocol Buffers for Spring AMQP. Usage is pretty easy, you'll just need to configure your RabbitTemplate to use a converter created for that particular Protocol Buffer descriptor:

val template = new RabbitTemplate
template.setMessageConverter(
    new ProtobufMessageConverter(Protobuf.getDescriptor)
)
template.convertAndSend(myProtobuf)
val anotherProtobuf = template.receive()

License

Copyright (c) 2012 Aaron D. Valade Licensed under the MIT license.

About

Message converter to and from Protocol Buffers for Spring AMQP


Languages

Language:Shell 82.7%Language:Scala 17.3%