Rajmahendra's Blog

Friday, December 07, 2007

Link to call me for free

I am using jaxtr, and if you also sign up, we can talk for free on the phone at any time.


P.S. Here is the link to sign up:

Monday, May 22, 2006

you are born to live

Don't go the way life takes you.
Take the life the way you go.
And remember you are born to live and
not living because you are born.

Tuesday, May 09, 2006

Semantic Breakthrough

Yesterday i am going throught the articel Semantic Breakthrough in magazing Oracle Magazine.

it says

By any measure, the World Wide Web is an immense success, helping everybody from preschoolers to CEOs share information, simplify research, and conduct business online. Still, many researchers aren't happy with the state of Web technology. They think that something is missing: intelligence.

For example, to assemble information from several sites with today's Web, you have to visit them individually and then cut and paste the content to create a cohesive presentation. This pastime has become routine for many; yet if you ask a computer to do the same thing, it wouldn't know where to start. That's because the Web's HTML pages are designed for humans, not machines, to read.

I am not sure how far this will be a good to discover. If you see this issue in one angle its really useful. but if you see another side of the coin. this be a illegal to grab info easily "without any stress". YES i agree there are some website grabbers to download the whole site. but this mails the people so easy to get valuable info's very very easily.

Wednesday, May 03, 2006

15 year old java programmer NetBeans...

Collin Doering

My name is Collin Doering; I am 15 years old and from a small town about an hour away from Toronto, Ontario in Canada. I am still in high-school but my favorite hobby, and hopefully future job, is Computer Science. I specifically enjoy programming in Java but do a little of C++,C.


Monday, May 01, 2006

Sun Identity Management Solutions

Identity Management Solutions

Sun's comprehensive portfolio of identity management solutions can help you manage, protect, store, verify, and share identity data throughout the enterprise and across extranets.


Saturday, April 29, 2006

I like this day.

I like this day.

I am very much free to think and decide :)

expecting a nice new tech to learn.

Thursday, April 27, 2006

Sample program for Log4J and Class Loader

Following is the program I tryed recently to learn Class Loader and Log4J.

Really good program simple to write and easy to understand.

Please provide your comment.

If you cant understand, Let me know

package com.test.loader;

import java.lang.reflect.Method;
import org.apache.log4j.Logger;

public class MyClassLoader {

public static Method findMethod(String name,Method methods[])


Method method = null;

for (int i=0; i < methods.length; i++)

if (methods[i].getName().equals(name))



i = methods.length;


return method;


public static void main (String args[])


Logger log = Logger.getLogger(MyClassLoader.class);

String cls = "com.test.loader.TestClass";

String mtd = "sayHaiTo";

Object objClass = null;



log.debug(cls +" class goint to be loaded");

Class clazz = Class.forName(cls);

objClass = clazz.newInstance();

log.debug("Loading class success : " + cls );

Method methods[] = clazz.getMethods();

log.debug(methods.length + " Methods found for " + cls );

for (int i=0; i < methods.length; i++)

log.debug( i+1 + ") " + methods[i].getName());

log.debug("Finding Method '" + mtd + "' in class '"+cls+"'");

Method method = findMethod(mtd,methods);

if (method == null)

log.warn("Method '" + mtd + "' not found in class '" + cls + "'");


log.info("Method '" + mtd + "' found in class '" + cls + "'");

log.debug("invoking Method '" + mtd + "' in class '" + cls + "'");

method.invoke(objClass,new String[]{"Ram"});

log.debug("initializing method sayMyAge");

Method method1 = findMethod("sayMyAge",methods);

log.debug("calling method sayMyAge");
method1.invoke(objClass,new Object[]{new Integer(25)});


catch(ClassNotFoundException e)


log.error("Loader class '" + cls + "' Not Found.");


catch(IllegalAccessException e)


log.error("Illegal Access of class '" + cls + "' .");


catch(Exception e)


log.error("Exception in class '" + cls + "' Invocation. Thrown : " + e.getMessage());


Technorati Tags: