daily pastebin goal
25%
SHARE
TWEET

Untitled

a guest Feb 4th, 2016 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. buildscript {
  2.     ext {
  3.         springBootVersion = '1.3.2.RELEASE'
  4.     }
  5.     repositories {
  6.         mavenCentral()
  7.     }
  8.     dependencies {
  9.         classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
  10.     }
  11. }
  12.  
  13. apply plugin: 'java'
  14. apply plugin: 'spring-boot'
  15.  
  16. repositories {
  17.     mavenCentral()
  18.     maven { url 'https://repo.spring.io/snapshot' }
  19.     maven { url 'https://repo.spring.io/milestone' }
  20. }
  21.  
  22. dependencies {
  23.     compile(
  24.             'org.springframework.cloud:spring-cloud-starter-stream-rabbit',
  25.     )
  26. }
  27.  
  28. dependencyManagement {
  29.     imports {
  30.         mavenBom "org.springframework.cloud:spring-cloud-dependencies:Brixton.BUILD-SNAPSHOT"
  31.     }
  32. }
  33.    
  34. server.port=8010
  35. spring.cloud.stream.binder.rabbit.default.prefix=z.
  36. spring.cloud.stream.bindings.input=start
  37. spring.cloud.stream.bindings.output=testchannel
  38. spring.rabbitmq.addresses=host1:5672,host2:5672
  39. spring.rabbitmq.username=user
  40. spring.rabbitmq.password=psw
  41.    
  42. @EnableBinding(Processor.class)
  43. ...
  44. @ServiceActivator(inputChannel = Processor.INPUT, outputChannel = Processor.OUTPUT)
  45. public byte[] handleIncomingMessage(byte[] payload) {}
  46.    
  47. server.port=8011
  48. spring.cloud.stream.binder.rabbit.default.prefix=z.
  49. spring.cloud.stream.bindings.input=testchannel
  50. spring.rabbitmq.addresses=host1:5672,host2:5672
  51. spring.rabbitmq.username=user
  52. spring.rabbitmq.password=psw
  53.    
  54. @EnableBinding(Sink.class)
  55. ...
  56. @ServiceActivator(inputChannel = Sink.INPUT)
  57. public void handleIncomingMessage(byte[] payload) {}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top