Java VM has a standard option called -verbose as shown by java -help:
-verbose[:class|gc|jni] enable verbose output
To diagnose class loading issues, you need to specify -verbose:class. It's straight forward to use if you are launching the Java process yourself. How does a...
on Feb 23, 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
GlassFish 4 will be the JAVA EE 7 reference implementation. This new version is to be released on Q3, 2012 but promoted builds can already be downloaded : http://dlc.sun.com.edgesuite.net/glassfish/4.0/promoted/. The main idea of this future release is to provide GlassFish as a PAAS solution.
GlassFish 4 will be shipped with a new component called PAAS console. This component is a GUI that...
on Dec 8, 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
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
Easy-Cassandra is a framework ORM API and a high client for Apache Cassandra in java, with this is possible persist information from the Java Object in easy way. For this is only necessary add some annotations in some fields and your class. It works like an abstraction's tier in the Thrift, doing call for Cassandra.
on Feb 21, 2012
Nowadays the Enterprise applications beyond persist String and number also can save file. Persist this information is very interesting, for example, a civil process there are information about the process (name of author, date, number of protocol) and the document which represents, or a twett with an image. In Apache Cassandra, you can save file, but for large file you should use...
on Feb 1, 2012
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
Eclipse is famous IDE in em Java, follows the open source model. The Eclipse project was stated by IBM that does the first version, then donated like open source for the community. The begin costs was above 40 millions. Nowadays, the Eclipse is one of the most used worldwide. Has important feature how the SWT uses and not the Swing, there are too many plug-ins...
on Nov 26, 2011
From 1995, when was launched the first Java's version, to 2012 the Java evolute obtained seven versions, many improvements and fixes bugs. In 2011 the biggest “boom” in the java world was about the openjdk recently it's grew in exponential way, but there are some myths arount it, for example, some people know the openjdk like “poor brother” of SUN's JDK (actually Oracle...
on Jan 17, 2012
In 1996, a group that I was working with devised a development process which we called Defect Driven Design, otherwise known as D3. We were a bit disappointed by not surprised that D3 never really caught on but just recently I saw a glimmer of hope for a revival. It was quite a surprise when about a year ago when Cameron Prudy started telling me about this great methodology called Defect...
on Nov 29, 2011
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
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
Web Development Tools
The second edition of Java Magazine (November/December) will go out in few days. In the Part 2 of the my article, you will see in detail how to use JSON to handle the response returned to the HTML5 client.
The first Part 1 of my article published in the first edition of Java Magazine (available here http://tinyurl.com/65jos8n) has shown how you can create and deploy quickly a Java EE...
on Nov 13, 2011
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
This is a follow-up to last week's blog in which we introduced the new Client API in JAX-RS 2.0. In that blog, we defined a simple AtmService and showed how to use the Client API to access its resources. For example, the following code was used to check an account's balance:
Client client = ClientFactory.newClient();String bal = client.target("http://.../atm/balance") ...
on Oct 20, 2011