Do you want to know how to develop your skillset to become a Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!

1. JPA Mini Book

2. JVM Troubleshooting Guide

3. JUnit Tutorial for Unit Testing

4. Java Annotations Tutorial

5. Java Interview Questions

and many more ....

 

9 Security mistakes every Java Developer must avoid

java-logo

Checkmarx CxSAST is a powerful Source Code Analysis (SCA) solution designed for identifying, tracking and fixing technical and logical security flaws from the root: the source code. Check it out here! Java has come a long way since it was introduced in mid-1995. Its cross-platform characteristics have made it the benchmark when it comes to client-side web programming. But with ...

Read More »

FREE Programming books with the WCG Newsletter

wcg-logo

Dear fellow geek, it is with great honor that we announce the launch of Web Code Geeks! This is our sister site, targeted to Web programming developers. Come on, admit it, there is a web developer inside you too, so make sure to check it out. To celebrate this, we have decided to distribute 2 of our books for free. ...

Read More »

How to Access a Method’s Result Value From the Finally Block

java-logo

While the JVM is a stack-based machine, the Java language doesn’t really offer you any way to access that Stack. Even if sometimes, in rare occasions, it would be very useful. An example Method result values are put on the stack. If you look at the following example: public int method() { if (something) return 1; ... if (somethingElse) return ...

Read More »

Java EE, Docker and Maven (Tech Tip #89)

docker-logo

Java EE applications are typically built and packaged using Maven. For example, github.com/javaee-samples/javaee7-docker-maven is a trivial Java EE 7 application and shows the Java EE 7 dependency: <dependencies> <dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>7.0</version> <scope>provided</scope> </dependency> </dependencies> And the two Maven plugins that compiles the source and builds the WAR file: <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>1.7</source> <target>1.7</target> </configuration> </plugin> <plugin> <artifactId>maven-war-plugin</artifactId> <version>2.3</version> <configuration> <failOnMissingWebXml>false</failOnMissingWebXml> </configuration> </plugin> ...

Read More »

Immutable Infrastructure, hotdeploys, and the JVM

java-logo

Do you deploy and undeploy your JVM-based applications (regardless of JVM container/no-container) in production? ie, when you have new versions of an app or service, do you mutate the running JVM by “undeploying” and “hot deploying” the new, updated version of that app? Or, do you try to “move” a deployment of your application from one JVM to another at ...

Read More »

Apache Camel Wire Tap Examples

apache-camel-logo

If you want to monitor, debug, troubleshoot messages that are flowing through the route without the bother of permanently consuming the message off the channel, then you need to use a wire tap. The wire tap acts as a recipient list that consumes messages off the input channel and publishes it to both output channels. The first would be to the actual ...

Read More »

JavaFX, Project Jigsaw and JEP 253

javafx-logo

So Java 9 may break your code… This is particularly likely if your project uses JavaFX because many customizations and home-made controls require the use of internal APIs. With Project Jigsaw these will be unaccessible in Java 9. Fortunately, Oracle announced JEP 253 a couple of days ago. Its goal: Define public APIs for the JavaFX UI controls and CSS functionality ...

Read More »

Spring Integration Jdbc RowMapper Example

spring-interview-questions-answers

The JDBC inbound channel adapter’s basic function is to execute a SQL query, extract the data and pass the result set encapsulated in the form of a Message onto the local channels. You can read more about this in my example on JDBC Inbound Channel Adapter. The type of the payload is decided by the row-mapping strategy. The default one ...

Read More »

Apache Camel Log Component Examples

apache-camel-logo

Apache Camel Log Component Examples You want to log messages to the underlying logging mechanism, use camel’s log: component. Camel uses sfl4j as the logger API and then allows you to configure the logger implementation. In this article, we will use Log4j as the actual logger mechanism. Let’s start with our examples. Dependencies You need to add: slf4j-api – SLF4J ...

Read More »

Spring lookup-method Example

spring-interview-questions-answers

When a bean has dependency on another bean, we inject the bean using the setter property or through the constructor. The getter method will return us the reference that is been set but suppose you want a new instance of the dependent bean each time you invoke the getter method, then you will probably have to follow a different approach. ...

Read More »

Centralized System and Docker Logging with ELK Stack

docker-logo

With Docker there was not supposed to be a need to store logs in files. We should output information to stdout/stderr and the rest will be taken care by Docker itself. When we need to inspect logs all we are supposed to do is run docker logs [CONTAINER_NAME]. With Docker and ever more popular usage of micro services, number of ...

Read More »
Do you want to know how to develop your skillset and become a ...

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!
Get ready to Rock!
To download the books, please verify your email address by following the instructions found on the email we just sent you.

THANK YOU!

Close