Posts

Showing posts from 2010

Under Construction

Under Construction

Under Development

Under Development

UnDeR cOnStUcTiOn

UnDeR cOnStUcTiOn

Under Construction

Under Construction

Under Construction

Under Construction

Under progress

This blog is under construction.

Under development

This blog is under development.

Blog Under Construction...

Blog Under Construction...

Java Reflections-Reloaded

Coming Soon.....

JAVA Reflection API - An Example to invoke fields

Image
Assume that we have 50 Java Bean classes with each class having atleast 5 fields with getter/setter methods. Now its time for you to debug the contents of each object. So how do we have to debug all these classes? - Implement a toString() method inside each class. - Create a StringBuilder/StringBuffer object inside the toString() method. - Append each and every field present inside the class to buider/buffer object in the toString() method, and    then return this object by converting it into a String. - This process translates the object into a well-defined understandable textual format. Well, this is really a good process, but, keeping in mind that we have tens of classes resulting in hundreds of variables, how long do you think it'd take to debug all our classes. I bet this process sucks big time So,What is the alternative???? Lets get into programming for a while. Class-1: RootObject.java package com.devonline.reflec.samples; import java.io.Serializable;...

Coming soon.......

Image
  This blog is Under Construction.

Server Migration from JBoss-4.0.5 to JBoss-4.2.3.GA

As the subject line says, this write-up covers a small note on JBoss Server migration. Hopefully it may not be a tough task migrating from JBoss-4.0.5 to JBoss-4.2.3 server, but I rather had a different experience while doing this. The reason behind this was the pre-compilation of the JSPs * in my project, which was performed using the jar files present in jbossweb-tomcat55.sar folder. * If I say compile/compiling in this write-up, please read it as ‘pre-compiling JSPs’ I was supposed to do the same compiling as it was done earlier when we used JBoss-4.0.5. The jar files used to compile are jasper-compiler.jar, jasper-runtime.jar, commons-el.jar and as I said earlier these files resided in the jbossweb-tomcat55.sar folder. Now where can I find jbossweb-tomcat55.sar folder in JBoss-4.2.3.? After some time, with the help of google, I was able to find out that this directory is been replaced by a new Tomcat servlet engine which is been named as jboss-web.deployer . This r...