TweetI have been working on an issue where HttpServletRequest.getHostName() always return the IP address, instead of the host name. The Tomcat 5.5 and Tomcat 6 documentation states enableLookups is set to true by default. Link to this post!
READ MORE »Posts in category java-javaee-j2ee
Akka actor thread utilization and optimization
TweetI am working on a project where we have http requests from an IVR Voice browser making VXML requests. Each request is a phone caller and each new caller in our application will spawn 6 Akka actor requests for various account look-ups. The issue I had was the concurrent new caller volume of ~20 was [...]
READ MORE »ContainerException The ResourceConfig instance does not contain any root resource classes
TweetI have been creating some REST services with Jersey, and I started getting this error I have searched for a while to find any reference to this error without luck. But finally, I found the issue. I am using glassfish 3.2 and Jersey 1.6 and I assumed, based on documentation that this was valid: Link [...]
READ MORE »PropertyNotFoundException Target Unreachable, identifier ‘patientBean’ resolved to null
TweetPropertyNotFoundException Target Unreachable, identifier ‘patientBean’ resolved to null I have been trying to get a simple @ManagedBean example working without the use of faces-config.xml. My bean is fairly simple: Link to this post!
READ MORE »No subclass matches this class; for this Aggregate mapping with inheritance.
TweetNo subclass matches this class [class com.baselogic.test.CustomerFixture$2$1] for this Aggregate mapping with inheritance I have been writing a chapter for my new book “Java EE6 Cookbook for Securing, Tuning and Extending Enterprise applications” today, and I ran across an interesting error based on a JPA testing pattern. Link to this post!
READ MORE »Unit Testing Springframework’s @Async annotation
TweetI had a task to make my current webservice calls asynchronous and wanted to use the @Async annotation in Spring 3.0x to accomplish the task. The @Async annotation can be provided on a method so that invocation of that method will occur asynchronously. In other words, the caller will return immediately upon invocation and the actual execution [...]
READ MORE »Reflecting on SpringOne 2GX
TweetThis was my first time attending SpringOne, and I must say, I was truly impressed. Springsource did an amazing job getting a wide breadth of technologies to make this a valuable conference. Some of the main sections I found personally valuable, and thus will be exploring and sharing with the team, are New Spring 3.1 [...]
READ MORE »JVM and Tomcat 6 Tuning new Grails application with legacy Java webservice
TweetRecently I ran into issues where a web application running on Tomcat 6.0 was crashing due to load spikes in requests. What I noticed in the diagrams below, was there was no issue with CPU or Memory, but rather issues with GC cycles and high Thread count/spike causing the Tomcat instance to become unresponsive and [...]
READ MORE »My road to the SCJP Sun Certified Programmer for Java 6 Exam 310-065
TweetI just wanted to relay my thoughts, experiences, and lessons learned on my road to getting Sun Certified as an SCJP 6 Java Programmer. First off, I have been working with Java since 1996 and just now, have I finally undertaken this challenge. I keep seeing a repeated theme that the SCJP does not really [...]
READ MORE »
