This project is a eventbus for Java Spring RESTFul services
@SpringBootApplication
@MektupScan("com.mektup.test")
public class TesterApplication {
public static void main(String[] args) throws MektupException {
ApplicationContext context = SpringApplication.run(TesterApplication.class, args);
MektupApplication.run(TesterApplication.class, context);
}
}
Publisher
try {
EventCreator.create(001L, "{ \"id\": 1, \"name\":\"Guven\" }".getBytes());
} catch (EventException e) {
//
}
Subscriber
@EventSubscriberService(eventId = 001L, queue = "TEST")
@EventRequestMapping(value = "/home2")
public String home2(Deneme deneme){
System.out.println("deneme2");
return "deneme2";
}
- Fork it ( https://github.com/guvencenanguvenal/mektup/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
- guvencenanguvenal Güven Cenan Güvenal - creator, maintainer