Archive
OpenEJB
An open source, embedded, lightweight, easy to configure EJB Container and EJB Server. Using OpenEJB turned out to be the salvation when developing EJB applications. Even if your requirement is not to start with the test first approach you still need to run your EJB class and can’t wait until to deploy. And deployment is not so fast as well unless you use special tools like JRebel or so on. You can find more information on web about OpenEJB and if there is something better than that. But when you have decided to use OpenEJB then you could face some problems which I took few hours for me to fix. Anyway let’s slide through the problems. Read more…
Vaadin Framework
is a Java web application framework. It is designed for creating rich and interactive applications that run in the browser, without any plugins. No HTML, XML or JavaScript necessary just like GWT. GWT applications run in the browser, while Vaadin applications run on the server using GWT as a “rendering engine” on the browser side, so you can combine Vaadin and GWT. Read more…
At Devoxx (15 and 16 nov)
On my day 2 still there were few new people coming in so the registration was still open. My day started with a keynote from Google which was about different Google technologies from Android to Chrome and so on. Then I opted to go for a talk on “Effective Dependency Injection”. The talk focused on using Dependency properly and effectively showing some patterns and anti-patterns. The other interesting talk was on “The Evolution of Java Persistence” by Shaun Smith from Oracle. He demonstrated a polyglot persistence (see EclipseLink project for more details). Read more…
My first day at Devoxx (14 nov)
Is one of the biggest vendor-independent Java conference with about 3500 attendees which is clearly apparent from the halls that are filled with Java folks. The event is being held at Kinepolis (a Belgian movie theater chain in Europe) in Antwerp. So if you want to have a seat better be there before time to the conference hall. The commuting was a little problem but we managed to get on time on the first day and do the registration. The halls are quite big and easy to find. I have planned my entire schedule using the apps on my iPad and Android mobile which were easy to use but a glitch sometimes that it did not open! Read more…
Maven – Basics and plugins
This article targets building multi module project (with some basics) and showcasing different plugins. Before getting started let’s go through some Maven basics. Maven serves similar purpose to Ant but in a different manner. The configurations are defined in a POM (Project Object Model) file which is an XML file. In this file dependencies are defined, build-order is set, plugins are configured etc. Below is the typical structure of the Maven project. Read more…
Representing a service both as RESTful and SOAP based using Apache CXF
Apache CXF is an open-source Web Services framework supporting both JAX-WS and JAX-RS. This means that we could create a service and offer it both as RESTful Web Service and traditional SOAP based Web Service. With CXF when you get the WSDL file (we will see how) or WADL (REST equivalent of WSDL) you can pass the link to the ones who are to write a client application and they can use it to configure the plugin and the required code is generated. With Maven things become even simpler. Read more…
TestNG(Next Generation) a unit testing framework
There might be other unit testing frameworks available which maybe better than TestNG but for me coming from a JUnit test framework background it was easy to adapt to TestNG (which has got inspiration from JUnit and NUnit). The requirement I had was to have a test framework where it was:
- Easy to pass data as parameters to the test from a resource file Read more…
Javascript libraries using JAX-RS implementations
Modern JavaScript libraries are very powerful and efficient. Most of the UI features that one needs in an Enterprise Application are offered by these libraries. This is the faster and easier way to develop applications without reinventing the wheel (with an expense of the fact that we don’t learn Javascript but we learn to use a library). We are talking about jQuery, Ext-JS, GWT/SmartGWT (output is DHTML), Dojo and some more. All these libraries have a lot of fan following and it is easy to get help, also there is a lot of documentation on web. You will find a lot of resources on web about the pros and cons of using the pure Javascript libraries, the point here is to use only Javascript library on client with RESTful Webservices. Why? Read more…
RichFaces and PrimeFaces – JSF 2.0
When the question of J2EE standard component library is raised then the attention is drawn to JSF 2.0 which is the base for all the ‘Faces libraries’ example RichFaces, ICEfaces, PrimeFaces, MyFaces and some more.
Taking about ICEfaces it makes itself quite clear “When should I use the ICE Components?” The components offered by ICEfaces (demo) are quite interesting but the version 3.0.x i feel overkill’s the usage of annotations (the demo shows 1.8 and there is a link for 3.x demo at the bottom of the page, both offers demo with source code). Read more…
Using HTML5 features
Firefox 11.0 is out; Chrome is running 17.x; IE 9.0.x and so on as of today. It feels like all the browsers are competing for higher version numbers, and of-course features are being added, mostly HTML5 features with Chrome and Firefox leading the race. For me as a developer it is important to know what HTML5 is offering and need to share the area together with the Web Designers. There are new tags <header>, <article>, <footer> and the one I am most interested in, <canvas> (this just defines the canvas but the actual magic is done using Javascript). Read more…