This post demonstrates how to use Java JDBC API with try-with-resources database resources in the following order – ResultSet, Statement, and Connection. The try-with-resources is a new exception handling mechanism
Java classes and their variables and methods can use access modifiers – private, public, protected, and package-level (no keyword). These access modifiers set the classes’ visibility, constructors, and instance or
Given a simple Java application with a Thread object, we want to block the main thread until the Thread object completes its execution. The main thread is where the Thread object is created and its start method invoked.
When we have applications that call native commands via java.lang.Runtime.exec(), be wary of the invocations. It could potentially output an overwhelmingly large number of texts to the standard output—for example, the
JPoller is a general purpose Java component to poll directories and asynchronously notify client code of incoming files.
This post demonstrates how to generate Java classes from WSDL files using cfx-codegen-plugin. This means we require Maven for this purpose.
The fastest way to configure authentication in Tomcat is Basic Authentication. However, it is one of the weakest forms of authentication and we should not use it in real-life applications.
This post demonstrates how to identify and list the differences between two objects using a set of classes and interfaces from Apache Commons Lang. Classes, Intefaces, and pom.xml The classes
This is the second part of the blog I wrote about EJB2.0 with OpenEJB. On the first part, we created a stateless session bean and deployed it in OpenEJB. On this part, we write, and test a simple Java class that remotely uses the deployed session bean.