Java Unit Testing: Best Practices

java_startingJunit is a java based tool that offers good, robust test facility. But, if you use it in a wrong way, it produces horrendous output. This article gives you some insight to test java code with the help of the JUnit toolkit. Full article (456 words) »

How to develop JMX MBean in 5 minutes

java Java Management Extensions (JMX) allows remote clients to connect with JVM, and manage, monitor as well as run applications in that JVM. At the core of JMX specification lies the Mbeans that manages the JMX facility.  MBeans are controllable end-points of an application for a developer, where the remote clients can view the activity and simultaneously control the inner workings. Most of the developers are hesitant to adopt and utilize the JMX specification. In actuality, JMX offers an easy way to explore the key inner workings of the application, which helps in optimizing the manageability and monitoring facilities of the application. To reduce the complications we decided to would show you how to develop JMX MBean in 5 minutes.

Full article (178 words) »

Java Performance and Load Testing: Best Practices

j2ee The performance test for J2EE application is a difficult task unless you plan well earlier. During development, you need to gather user requirements, understand the business need and make a formal schedule for testing. The performance test is supposed to be based on some use cases. This can be based on past data or anticipated data from future usage. Once you know what needs to be tested , the next approach is how you are going to test it.  I prefer benchmark test in the early stage of development to figure out any repeatable performance regression. The best way to conduct benchmark test is to change one parameter between tests.  You can gather critical information  of repeatable result through benchmark test. Suppose, your application is impacted when you change the JVM memory setting.  You increase the memory in different stages of the test. Then you study the result and corresponding data and record the information.

Full article (391 words) »

Tamil women begin new hunger strike off Indonesian coast

Merak (Java, Indonesia), - Ten women among a group of almost 250 Sri Lankan asylum seekers refusing to leave their boat in Indonesia have begun another hunger strike.

Full article (176 words) »

Java blacksmith and family shocked to know they were saved by Obama’s mum

NEW YORK - In a remote corner of rural Java, a blacksmith and his family were astounded last week to learn that the American woman who helped save them from poverty 26 years ago was Ann Dunham, an anthropologist better known as the late mother of US President Barack Obama.

Full article (336 words) »

How to serialize Java Objects to XML and deserialize back from XML

java2XML has set ubiquitary standards for representing data. There are several XML technologies that can be used to serialize Java objects to XML. Some of the most commonly technologies used by Java developers include the Simple API for XML (SAX) and the Document Object Model (DOM) APIs.  For a smooth control over parsing and serialization SAX, or Stax offers better performance. However, the programmers prefer to use technologies that can accomplish immediate tasks. However, we would provide you two simple and quick howto's for serialization of Java Objects to XML and deserialize back to XML.

Java API for XML Binding (JAXB) provides a simple and quick Java-XML mapping or serialization. With JAXB you can performs a number of tasks that include binding of class data from XML schema, and serializing object data to and from XML. We would show you how to do simple Java-XML serialization with JAXB.

Again, Java has the inherent benefit of Library that enables almost everything.  XStream is simple and easy to use library for serializing Java-Objects to XML and read them back. It converts the existing Java objects clean XML and restores them again without any modifications. XStream 2.1.0 is currentl.y available for the users.  Here's how to serialize Java Objects to XML and deserialize back from XML

Full article (1160 words) »

10 Best Java Web Development Framework

java1There are a majority of enterprises running Java applications and working on Java web development framework. What remains to be seen is that a number of companies are tied to the conventional web development framework and  haven’t actually started to anticipate what could be the best Java web development framework. Even the JavaOne might hold no unified voice for what web framework is best. There are several easy to use Java web frameworks that are out now a days, and they are too many. Essentially choosing the best web development framework has become more intricate, specifically due to three reasons. On a broader perspective, the web technology landscape has undergone a sea change; far more choice of technology; and changing requirements for modern web applications. After an extensive research we assorted the 10 best Java web development framework that we would like to share with you.

Full article (1729 words) »

Top 10 features of JDK 7

javaWe had already focused on JDK 7 features in our post - Java/JDK 7 downloaded. According to the roadmap in OpenJDK site, JDK 7 would be arriving at the first quarter of 2010. Going by the schedule 6 milestone are expected in 2009, with the milestone M3 encompassing JSR 292's VM Support for non-Java languages, support for SCTP (Stream Control Transmission Protocol) and SDP (Sockets Direct Protocol) on Solaris, as well as an upgrade to Unicode 5.1 and an updated class loader.. JDK 7 would includes several enhanced features with respect to performance, usability and security of Java platform. We can wait till the current draft of the development process is published as a Feature Proposal Template. However, as the draft is available we decided to dig deep into the JDK 7 to sort out the top 10 features for JDK 7.

Full article (1078 words) »

Komodo Dragon most likely evolved in Australia 3-4 mln yrs ago

WASHINGTON - A team of palaeontologists and archaeologists, who studied fossil evidence from Australia, Timor, Flores, Java and India, has shown that Komodo Dragons most likely evolved in Australia around 3-4 million years ago and dispersed westward to Indonesia.

Full article (369 words) »

How to install / enable Java Plugin / Applets in Firefox on CentOS 5

CentOS comes with OpenJava JRE installed. However that doesn't provide the required libraries to run Java from browsers (read: applets). Here are the steps to install and enable applets / Java plugin in Firefox browser on CentOS 5.

Note: The instructions may be applicable to other versions of CentOS, Fedora, others Linux distros too. However it has only been tested on CentOS 5.3. Full article (310 words) »

Protected by Comment Guard Pro