In this post I introduce Samplr: an open source, intelligent sampling profiler that can be embedded in any Java application for automatic identification of performance bottlenecks
Tools of the Trade
If you read the Developer Power story in the July/August issue of Oracle Java Magazine, you already know that I love VisualVM. It is the best tool I know for inspecting the inner workings of a...
on Aug 6, 2012
My JavaOne talk about Apache Wicket went really well: the room was almost full, lots of interesting questions and I met a lot of nice people. Thanks to all atendees!
You can find the presentation in the link below:
on Oct 6, 2011
Some Wicket goodies for my JavaOne talk.
If you go to my JavaOne 2011 talk "Productively Fun Web Development with Apache Wicket and Java EE 6" you will see a demo where Bean Validation is used in conjunction with Apache Wicket.
In order to accomplish that, all that you need is a single Java class that bridges the Wicket validation framework and the JSR 303 validation engine.
on Oct 5, 2011
There is one talk I would like to comment on today: "Don't Be Pwned: A Very Short Course on Secure Programming in Java".
This talk, presented by Robert Seacord and Dean Sutherland from SEI/CERT, was the scariest Java talk I have ever been to.
Do you believe the software you write is secure enough? Believing it or not, I suggest you take some time...
on Oct 4, 2011
JavaOne started for me today with the Glassfish Community Event.
It was a nice opportunity to meet the Glassfish Development Team as well as people I have interacted with but not met in person until today.
The event, as well as the community party afterwards, had more people than last year. That is also my perception for the entire conference: there are more people attending this year than in the...
on Oct 2, 2011
I had originally planned to write a blog post per day during JavaOne 2010. That being my first JavaOne I was of course completely unprepared for the hectic routine of sessions, meetings, parties and more sessions. I wrote blog posts in the first two days and disappeared ever since.
I am alive, well, and back to Brazil. I had a terrific time in San Francisco where I got to meet a lot of...
on Oct 7, 2010
There was a lot happening at day 1. The amount of simultaneous activity can be dazzling at times and I felt i needed a good nights rest in order to digest the enormous amount of information fed into my brain yesterday.
I am writing this post from the Mason Street tent and the vibe around here is electrifying. Its hard to remember as one goes about the day-to-day development activities that there...
on Sep 21, 2010
It was my first day at JavaOne 2010 today. And what a day!
The kick off for me was the Glassfish community event. The room was packed with Glassfish users and developers. It was nice meeting in person people I have been reading and interacting with online for such a long time.
There was a presentation on the Glassfish product roadmap and a break out for discussion of many Glassfish-related topics...
on Sep 20, 2010
JavaOne 2010 is going to be my first time on the conference. Even tough I have been developing in Java in the past 12 years I never managed to attend. The fact this is the first JavaOne under Oracle stewardship makes it yet more exciting.
Living south of the Equator doesn't make it particularly easy for me to travel, but this is not the main reason why I have missed JavaOne in the past....
on Sep 15, 2010
Heroku, the PaaS cloud owned by salesforce.com, announced a few days ago support for the Java language. In the process they declared Java EE to be irrelevant in the cloud world. Is that so?
I try to embrace anything that helps me develop, test or deploy code faster. Cloud Computing has the potential to bring radical improvements to all these areas, hence I have been following its...
on Aug 29, 2011
Next week I will be presenting a free webinar about Java EE 6 and Glassfish 3.1.
The title can be translated to English as: "Java EE 6 and Glassfish 3.1: Simplicity + Ligthness = Productivity". The reason the title is in Portuguese is because this will be a webinar targeted at Brazilian Java EE and Glassfish users - as far as I know it will be the first webinar in Portuguese on these...
on Jun 14, 2011
One of the exciting things about teaching is the fact no matter how well you prepare for a class, events will always surprise you.Yesterday I was caught by surprise in the middle of a class by what seemed like a global Glassfish admin console outage.
I was teaching my Software Architecture students at IGTI how to change the default maximum thread pool size for the HTTP listener in Glassfish 3.0.1...
on Nov 10, 2010
I have been a Java developer since the 1.02 days. It has been a long and fun ride, and in spite of what people said over the years, the Java language and Java platform didn't die and are in fact stronger than ever. But sometimes I wish it would evolve faster.
Java EE has come a long way, to the point Java EE 6 can be considered a lightweight development platform. When Glassfish v3 was...
on Aug 23, 2010
Btrace is a wonderful tool for debugging complex application problems. I have used it recently to debug a strange finalizer problem in an application running on Glassfish V3. Since getting it to work with v3 wasn't very straightforward, I will share my findings here in case someone else is trying to do the same...
BTrace works as a JVM Agent, which means it gets the chance to modify classes...
on Jul 14, 2010
CDI (Contexts and Dependency Injection for the Java EE platform) is defined in JSR-299 and enhances support for dependency injection in Java EE 6. The more I use CDI the more I like it...However, I couldn't find a simple example of how to configure your application with CDI by reading configuration attributes from a file. Here is an example of how it can be done:
Specifying injection points...
on May 18, 2010
Just a quick note to annountce the availability of RainToolkit 1.3.
It can be downloaded at: http://www.logicstyle.com/raintoolkit.html
If you manage Amazon EC2 resources from the command-line, Rain Toolkit can make your life easier by automating a lot of common repetitive tasks.
New features in this release include:
Support for micro instances
Support for EBS instances
Support for Amazon...
on Apr 4, 2011
Apache maven is supposed to solve the classpath hell; or so I´ve been told...
Started using maven 2 in a multi-pom project. One of the requirements is to be able to deploy EAR files to Weblogic.
After looking around it seemed like the most stable way of doing this with maven and Weblogic 10.x is to use the Weblogic Ant task. Not ideal since we are migrating away from Ant, but still okay.
on Dec 14, 2010
I know what you are thinking...consulting has always been a service. But the Cloud is making it evolve.
Cloud Computing has been one of my favourite topics in the last couple of years. Coming from a sysadmin background I am frequently in awe of how easy it is nowadays to conjure up vast amounts of computing and storage resources out of thin air. Of course I know that its not "out of...
on Feb 16, 2011
Automated functional tests are key to ensure the quality of large applications in incremental development processes. In contrast with unit tests where each test is supposed to be independent from the outside environment, functional tests are really integration tests: in order for them to run properly the process must start from a well known state.
The majority of enterprise applications use a...
on Oct 14, 2010
One of the not-so-great things about developing Java web applications is the fact that, after a few redeployments, sooner or later the web container JVM needs to be restarted due to Out Of Memory errors. This has been true in every combination of development environment and web server I have used so far, and until last week Netbeans 6.8 + Glassfish 3.0.1 was no exception.
The cause of Out Of...
on Jun 10, 2010