Name: Rocky

Email:

Posts by rjaiswal

    Google App Engine + Maven + JSF2

    I have tried to put all the keywords in the title of this blog, hoping that it will turn some heads. Google App Engine (GAE) provides a great hosting platform for open source apps written in Java/Python. So if you have no qualms about hosting you Java applications on a public server then you have no better choice than GAE.

    The only catch however is, that GAE does not support certain APIs (see the white-list here - http://code.google.com/intl/de/appengine/docs/java/jrewhitelist.html). This restriction makes it difficult to host certain apps / frameworks.

    GAE provides the infrastructure, a modified Jetty server included in the GAE SDK (http://code.google.com/appengine/downloads.html) though which you can test your app. If it runs on the local GAE Jetty server then it will also run on GAE itself. The project structure that Google asks you to create for uploading an app is also quite typical (unless you use Ant) which brings me to my next point.

    Read more »

    From Zero to a CRUD App (without writing a single line of code!) using JRuby

    This blog introduces you to JRuby and Rails. We will create a simple web application with CRUD features and deploy it on Tomcat.

    Required Software -
    - JDK 6
    - Tomcat 6
    - MySql
    - JRuby (http://jruby.org/download)

    Read more »

    Hello jQuery!

    JavaScript libraries/frameworks have gained a lot of popularity lately. A small though significant reason for the development / adoption of these libraries has been the large number of browsers, even writing a small piece of JavaScript which works on IE6, IE7, IE8, Firefox 2, 3+ and Chrome can be pain, on the other hand inclusion of a library that can work across browsers can ease the development immensely.

    A simple Google search will give you many alternatives like prototype, dojo, yui, extjs and jQuery. Though each library is really good at something (like Scriptaculous for animation, extjs for rich UI), I found jQuery to be generally most useful and functionally very rich. In this blog I will discuss the basic usage of jQuery, its syntax and applications, hope you find it useful.

    Read more »

    Doing it with Gnome-Do

    I heard about Gnome-Do a while back and I thought, "Oh no! not another dock creator for Linux to emulate the Mac look", there are many who have been there and failed, so I left it alone for a while. In my never-ending quest for the perfect desktop, I finally installed* it a while back. And now I am completely hooked.

    Read more »

    Accessing JBoss managed resources using MBeans

    Recently I was working on an application that enables users to view the message count and the message content on all Queues deployed on a JBoss instance. Mainly, this application can be used by administrators to manage JMS Queues, it also provides a simple interface to create / delete queues as well as monitor messages on them.

    The challenge was to dynamically retrieve all the Queues deployed on the server and to make this application portable to any JBoss server instance.

    The Solution
    In JBoss all components/services are Mbeans. An MBean is a Java object that implements one of the standard MBean interfaces and follows the associated design patterns. The MBean for a resource exposes all necessary information and operations that a management application needs to control the resource.

    So using the MBeans API you can, let's say create a queue at runtime programatically. In the following exercise, we look at the code that will retrieve all JMS Queues deployed on a particular JBoss instance.

    Read more »