Posts

Showing posts from May, 2017

Debugging an externally launched WildFly

Image
Contents Introduction Prerequisites Remote debugging Introduction WildFly application server is the second most popular Java EE container, so there's a chance that you used it already or you will use it in the near future. One great problem during a delpoyment is when things go wrong in the production environment and you must find out what is wrong with your application. The first thing that comes to your mind is to look through the log files, but what happens when that isn't enough? In the following, i will show you how to run WildFly in debug-mode and how to remote debugging it using Eclipse IDE. Prerequisites IDE: Eclipse IDE for Java EE Developers Java EE container: WildFly 10.x OS: Windows Remote debugging To run WildFly in debug-mode you have to use the following command line: ${WildFlyInstallationPath}\bin\standalone.bat --debug 1044 meaning that it will allow remote debugging on the port specified (you can us...

Building a RESTful API with NancyFx

Contents Introduction Prerequisites The basics of NancyFx Model binding and validation Bootstrapping NancyFx Hosting NancyFx Authentication and security Putting it all together Introduction In the following, I will show you how easy is to build a simple RESTful API with NancyFx. As it is said by its creators "Nancy is a lightweight, low-ceremony, framework for building HTTP based services on .NET and Mono. The goal of the framework is to stay out of the way as much as possible and provide a super-duper-happy-path to all interactions." (the full documentation can be found at https://github.com/NancyFx/Nancy/wiki/Documentation ). To understand and apply this, basic knowledge of C# programming language and RESTful API concepts is required. Prerequisites IDE: Microsoft Visual Studio or Visual Studio Code NuGet packages: https://www.nuget.org/packages/FluentValidation/3.4.0 https://www.nuget.org/packages/Microsoft.Owin/3.1.0 https://www.nuget.org/packa...