Sorry for late reply...i am using Jboss 5.1.x .
In this Datasource usage object is giving erros . Could please tell me how to use the binded object with naming convention into java program with simple code,,

You are using a stand-alone client to access a data source from the server, which is a practice hat is frowned upon. While it is possible, it is not recommended. When using a remote JNDI lookup, you don't use the "java:" prefix. Thus line 21 should read: