Quick Look: Spring XD

Posted by: bunkertor

http://docs.spring.io/spring-xd/docs/1.0.0.M6/reference/html/ https://github.com/spring-projects/spring-xd-samples/tree/master/analytics-dashboard http://projects.spring.io/spring-xd/ https://blog.codecentric.de/en/2013/09/spring-one-wrap-up-spring-batch-spring-hadoop-and-spring-xd/ Pivotal-Field-Engineering/retail-demo-xd https://github.com/spring-projects/spring-xd/wiki/Getting-Started https://github.com/spring-projects/spring-xd/wiki/Type-Conversion https://github.com/spring-projects/spring-xd/wiki/Sources#sources https://github.com/spring-projects/spring-xd-samples http://blog.gopivotal.com/pivotal/products/spring-xd-for-real-time-analytics?utm_source=rss&utm_medium=rss&utm_campaign=spring-xd-for-real-time-analytics https://blog.codecentric.de/en/2013/09/spring-one-wrap-up-spring-batch-spring-hadoop-and-spring-xd/   Spring XD:  A really quick way to batch process data from an easy to run shell.   It’s very easy to setup to run a one node version of XD and use it on Windows, Mac or Linux.   Looks like a great […]

Quick Loop: JHipster and Spring Boot Tools

Posted by: bunkertor

Install Yeoman and other JavaScript Tools npm install -g yo npm install -g bower npm install -g grunt-cli npm install -g gulp npm install -g karma <code>npm install jshint</code><br clear="none" /> npm install -g ngmin Install JHipster npm install -g generator-jhipster Update your version of JHipster with: npm update -g generator-jhipster And then you can […]

Quick Look: Mocking Options

Posted by: bunkertor

JMock is cool, because of this awesome book! JMockIt can test private and static doesn’t need to worry about injections, works through class loader mocks statics, 3rd party library, … Mockito vs PowerMock vs JMockit http://abhinandanmk.blogspot.in/2012/06/jmockit-tutoriallearn-it-today-with.html https://github.com/robert-bor/jmockit-vs-mockito http://www.vogella.com/tutorials/EasyMock/article.html http://lordofthejars.github.io/bjugbank-decks/slides.html http://jmock.org/ http://natpryce.com/articles/000761.html https://code.google.com/p/mockito/ https://code.google.com/p/mockito/wiki/MockitoVSEasyMock      

Quick Tip: Spring REST Utility for Current HTTP Request

Posted by: bunkertor

Utility Method for Spring REST public static HttpServletRequest getCurrentRequest() { RequestAttributes requestAttributes = RequestContextHolder.getRequestAttributes(); Assert.state(requestAttributes != null, "Could not find current request via RequestContextHolder"); Assert.isInstanceOf(ServletRequestAttributes.class, requestAttributes); HttpServletRequest servletRequest = ((ServletRequestAttributes) requestAttributes).getRequest(); Assert.state(servletRequest != null, "Could not find current HttpServletRequest"); return servletRequest; } Sometimes it’s easier to get the underlying Servlet request to get some headers […]

Quick Tip: Maven Cleaning

Posted by: bunkertor

Purge Cache Or you can manually delete all or some of the directories under your .m2 directory. We find if anything majorly changes in a few related modules, this is the safest course of action.   Delete all directories, delete .m2 directories, fresh clone from Git, mvn clean and enjoy.