In the previous articles we have concentrated on testing using Glassfish. But can you use the same
recipe to do testing on Weblogic. The answer is YES, but ..... Yea you know there is always a caveat.
First make sure you have Weblogic installed properly. Note I did the testing with the latest 12c version,
so your mileage may vary.
Download the attached zip file again and follow along. In...
on Jan 13, 2012
In the previous article we described how to do testing with multiple containers. But since joining
the Glassfish team I have wondered how can I test applications against different versions of JSF on Glassfish?
As it turns out it is actually quite straightforward. This blog entry shows you how to do it. It will
allow you to test using a 2.1.2 version and up. All by using properties passed in...
on Jan 5, 2012
In the previous article we have worked out how to run the integration tests against Glassfish,
but what about other versions of Glassfish or even other servers?
Well, the infrastructure groundwork has been laid for that. Before we are going to reap the fruits
we are going to explain the difference between downloading, installing and configuring your server
The main reason...
on Dec 22, 2011
In the previous article we added the Glassfish application server into the mix for testing. This looks all nice,but one might wonder how this would work in a parent project (POM) and child projects setup. Well it is fairly easy to accomplish.
We will move all the bits first over to the new parent POM we are going to use. See below for what theparent POM will look like.
on Dec 20, 2011
In the previous article we described a setup for integration testing. It did not explain
how to do automatic deployment to an application server. Since we want to make it
convenient to do integration tests we are now going to add Glassfish into the mix.
Note that in the previous article we put the integration testing into a separate profile.
We are now going to put it back into the normal build...
on Dec 15, 2011
If you want to do integration testing using HtmlUnit and Maven the following sets you up for easy testing.
1. Create a Maven web application project
2. Add index.jsp page (or whatever flavor of framework you want to use).
3. Add HtmlUnit dependency
4. Write integration test for the index.jsp page
5. Add the profile to support running of the integration tests separate from the main build cycle...
on Dec 13, 2011
Perfection is achieved through times.
How someone can improve if he has no clear vision of what he could become? I'm asking this tough question to myself while reading to the definition of JSF. As it is written in its specification, JavaServer Faces is a user interface framework designed to significantly ease the burden of writing and maintaining applications that run on a...
on Nov 27, 2011
For prosperity to be sustained it must be shared.
Ladies and Gentlemen, today, while I'm writing this blog post, I'm one-eyed. I woke up last saturday, earlier in the morning, and noticed that I couldn't see out with my right eye. Then, I went to see an ophtalmologist to find the cause and the solution and...
on Nov 12, 2011
In the first blog entry of this series, we showed how to configure a message body reader (MBR) on an instance of Client. Specifically, our example required the registration of an MBR to convert an application/json representation of the Money bean.
Client client = ClientFactory.newClient();client.configuration().register(MoneyMBR.class);
As stated in that blog entry, a Client instance can be...
on Oct 28, 2011
Recently I had the privilege of writing an article for Java Tech Journal about using HTML5 Server Sent Events in a JSF 2 User Interface. I've made that article available here.
on Jan 4, 2012
A few weeks ago I updated my age to be a factor of 2 and 5. It is the perfect age to reflect what life is all about. Some men don a leather jacket and ride around on a Harley. But as a geek I know exactly where to turn - my beloved computer.
I needed a long-running method for the new concurrency course I am writing. Something that would take about 15 seconds and...
on Dec 22, 2011
This year is a good year for Meruvian, after 6 years work, now the student can achieve as winner in national competition, but we still have problem send them to APICTA for Asia Pasific ICT competition, because dunno why. Merit Award could be sent to Asia Pasific. but cant... I wish APICTA global organizer read my blog.
Edy is a 15 years, when in competition happen, he was still 2 year in...
on Dec 4, 2011
var headID = document.getElementsByTagName("head"); var cssNode = document.createElement('link');cssNode.type = 'text/css';cssNode.rel = 'stylesheet';cssNode.href = 'http://ridingthecrest.com/scratch/20110614-blog.css';cssNode.media = 'screen';headID.appendChild(cssNode);Here is my session presentation and attendence plan for JavaOne 2011.
Sunday, October 2
on Sep 28, 2011
JSF 2.2 Early Draft Review Available
Three days ago, the JSF 2.2 Early Draft Review Specification was
released. You can download it from
and the in-progress reference implementation can be obtained by
following the instructions
blog entry from 26 September 2011. With this blog entry, I want to
quickly survey the new and...
on Nov 11, 2011
var headID = document.getElementsByTagName("head"); var cssNode = document.createElement('link');cssNode.type = 'text/css';cssNode.rel = 'stylesheet';cssNode.href = 'http://ridingthecrest.com/scratch/20111111-blog-a.css';cssNode.media = 'screen';headID.appendChild(cssNode);JSF 2.2 and 2.1 Nightly Builds Running Again
I'm ashamed to say it, but we've gone over two years without having a...
on Nov 11, 2011
The Early Draft for JAX-RS 2.0 (JSR 339) has recently been submitted for publication. There are number of interested features in the new draft, and I'd like to start with the new Client API. The Client API is used to access Web resources. It provides a higher-level API than HttpURLConnection, and perhaps more importantly, integration with JAX-RS providers.
Let us start by defining a simple ATM...
on Oct 14, 2011
Tonight I bundled the cassandra command-line interface (CLI) into virgil. Since the CLI uses the thrift-based CassandraDaemon, the main method now starts a thrift server along side the REST server.
Now, when you (or your application) issues commands through the REST interface, you can verify that they worked through the command-line interface. For more information, check...
on Oct 24, 2011
Web Development Tools
Did you ever tried to visualize dependencies between pages on your average website? If so, you probably know what kind of pain it can be. The relations tend to be messy and any kind of chart displaying them is not easy to read.
The other night I was looking for some charting library and run across MooWheel.
Using the Wheel for rendering the deps you get reasonably readable chart for smaller site...
on Oct 19, 2011
Somebody shown me the tool called Red Bot the other day. The tool will check the headers of responses sent by your server, the compression of the content during transfer, server clock as well as modification dates claimed by your content. The info it gives about each page of the site is broken in 3 sections - General, Content Negotiation and Caching.
When I saw the tool, I thought it might...
on Oct 17, 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