Tuesday, February 21, 2017

Using Apache HttpClient Fluent API

The Apache HttpClient provides reach functionality and flexibility for implementing of HTTP client java applications.
The Fluent API is an easy facade to the basic HttpClient functionality. It may be quite sufficient for simple applications, which should not deal with connection management, resources allocation or other advance stuff. The fluent API concept is designed to call methods in chain, which makes code rather compact and intuitive.

Tuesday, February 14, 2017

Proxy setting for Play activator and sbt

When running behind the proxy the activator should be provided with the appropriate proxy settings. Since the activator is using the sbt as a build tool, actually it is the sbt, which should be configured.

The sbt respects any HTTP, HTTPS, or FTP proxy settings from the standard environment variables.

Friday, February 3, 2017

How to fix Log4j2 problem with maven shade plugin

The maven shade plugin is used for packaging of the project classes and dependencies in a single jar (so called uber-jar).
Having one fat jar is very convenient for execution: it is enough to specify in the class path the uber-jar name instead of the long list of dependency jars.

About the author

My Photo
I trust only simple code and believe that code should be handsome. This is not a matter of technology, but professional approach, consolidated after years of software development. I enjoy to cause things working and feel very happy, when I manage to solve a problem.
Back to Top