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 ....

 

Logging JAX-WS SOAP messages in Spring

spring-interview-questions-answers

Whenever you’re using JAX-WS within Spring you’ll probably want to log the incoming and outgoing SOAP messages – if only for debugging during development. So the first thing to do is increase the log levels, right? Unfortunately this will have no effect. What you will have to do is to make use of the javax.xml.ws.handler.HandlerResolver interface. So how do we ...

Read More »

Updating code at runtime (spring-loaded demystified)

java-logo

When the development cycle from compile over deployment up to testing takes too long, one wishes to be able to replace the running code just in time without the need for restarting an application server and waiting until deployment has been finished. Commercial solutions like JRebel or open source frameworks like Grails help in such kind of situations. Replacing code ...

Read More »

Getting Started With Gradle: Integration Testing

gradle-logo

Because the standard project layout of a Java project defines only one test directory (src/test), we have no standard way to add integration tests to our Gradle build. If we want to use the standard project layout, we can add integration tests to our Gradle build by using one of the following options:       We can add our ...

Read More »

Using @Context in JAX-RS [part 1]

java-interview-questions-answers

JAX-RS provides the @Context annotation to inject a variety of resources in your RESTful services. Some of the most commonly injected components are HTTP headers, HTTP URI related information. Here is a complete list (in no specific order)           HTTP headers HTTP URI details Security Context Resource Context Request Configuration Application Providers Lets look at these ...

Read More »

Java Code Geeks are giving away FREE copies of their JSF 2.0 Programming Cookbook eBook!

jcg-logo

Want to boost your knowledge on JSF Programming ? Then we have something especially for you! Enter the contest now to win your very own copy of our JSF 2.0 Programming Cookbook eBook. JavaServer Faces (JSF) is a Java specification for building component-based user interfaces for web applications, using Facelets as its default templating system. It was formalized as a ...

Read More »

How to optimize Hibernate EllementCollection statements

jboss-hibernate-logo

Introduction Hibernate supports three data mapping types: basic (e.g String, int), Embeddable and Entity. Most often, a database row is mapped to an Entity, each database column being associated to a basic attribute. Embeddable types are more common when combining several field mappings into a reusable group (the Embeddable being merged into the owning Entity mapping structure). Both basic types ...

Read More »

How to show a Toast for a specific duration in Android

android-logo

In the Android SDK, an android.widget.Toast is a small message that pops up at the bottom of the screen to display an information. The toast will disappears by itself after a specified duration. Here is an example of what a toast looks like and how to display one :           Context context = getApplicationContext(); Toast.makeText(context, "Hello ...

Read More »

Coding: Visualising a bitmap

java-logo

Over the last month or so I’ve spent some time each day reading a new part of the Neo4j code base to get more familiar with it, and one of my favourite classes is the Bits class which does all things low level on the wire and to disk. In particular I like its toString method which returns a binary ...

Read More »

Sublime VS. Atom: Can GitHub Take the Lead?

software-development-2-logo

Comparing Sublime and Github’s Atom in 10 major categories Sublime has been the undisputed text editing champion for a while now. But a new contender – GitHub’s Atom – is stepping into the spotlight, making noise and trying to steal the not-so-old champion’s thunder. Some 30 versions after the release of Atom’s beta, we felt it would be a good time to test these two head-to-head. On ...

Read More »

Grails Goodness: Custom Data Binding with @DataBinding Annotation

grails-logo

Grails has a data binding mechanism that will convert request parameters to properties of an object of different types. We can customize the default data binding in different ways. One of them is using the @DataBinding annotation. We use a closure as argument for the annotation in which we must return the converted value. We get two arguments, the first ...

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