REST in Java for Payment Gateway Integration
In case you are in need of code snippet that needs to access REST APIs securely (e.g. payment gateway integration), here is a sample client code in Java using Apache HttpComponents.
read more...In case you are in need of code snippet that needs to access REST APIs securely (e.g. payment gateway integration), here is a sample client code in Java using Apache HttpComponents.
read more...Most recent applications rely on push notifications to alert users of events that they are interested in. Just like how Facebook alerts users of new friend requests or messages.
This can be implemented in several ways… and this article talks about the ideal solution.
read more...Maven is considered by many only as a build tool. Maven, as defined by the project’s website, is a project management and comprehension tool. Aside from helping on managing a build, maven is also useful in documentation, reporting, managing dependencies, SCMs, releases and distributions.
read more...This article talks about the the different Java cloud providers and our first hand experience working with them. Our last project involves deploying an Open-Tides (Spring, Spring MVC, JQuery, Hibernate) application to the cloud and as such, we explored and played around with the different cloud providers.
read more...Generic types added in JDK 5.0 provided enhancement to type safety in Java. For example in using Collections, generic types allow restricting the type the collection would contain as opposed to pre-JDK5 wherein collection classes accept anything that extends from java.lang.Object (which means almost everything!).
read more...There are two types in Java Programming Language. The first is primitive type such as int, double,
and boolean
. The second is the reference type such as String, List,
and Set
. Every primitive type has a corresponding reference type, called a boxed primitive.
I recently came across this Java code snippet we created for Open-Tides and still find it very useful in developing flexible and dynamic applications.
So, why is there a need to retrieve values using reflection? The answer is simple – to allow your application rules to be configurable through the database.
read more...I noticed that every time my code will be reviewed by someone, they will ask me something about the purpose of a variable or the logic of the method or even the comments and so on. Because of that, I tend to do a lot of explaining for others to understand my code. I thought to myself, “Is my code really that chaotic?”
read more...