Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

whats is mean by jndi

Answer Posted / abhinandan

JNDI is used to create instances of object and passing a
reference of the object to the server.Through JNDI one can
access the particular object through an unique name
associated with the particular Object. Eg

Hashtable ht = new Hashtable();
ht.put("Context.InitialContext","---");
ht.put("URL.ProviderURL","t3://localhost:1099/");
Context cntx = new InitialContext(ht);
DataSource ds =(DataSource)cntx.lookup("TestDataSource");
Connection con = ds.getConnection();

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is TL and its use?

2490


why static class in java

1781


What is the purpose of the notifyall() method?

1043


Can you give me a simple example of using the requiredif validator rule?

1128


What is in-memory replication?

1069


How task's priority is used in scheduling?

2300


what are RemoteObjects?

2749


What is the difference between the string and stringbuffer classes?

1105


Explain RMI Architecture?

1099


How is a java object message delivered to a non-java client?

1054


What are the oops concept?

1083


Why is actionform a base class rather than an interface?

1070


What is an abstract method?

1073


Which javutil classes and interfaces support event handling?

1046


Explain about local interfaces.

1066