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

Why do threads block on i/o?

1313


What are the call back methods in entity bean?

1110


cud u help me ... i am struggling with this question... to find all the subsets of a given set for ex.... a,,b,c shud give all the subsets.... i gt the program in c bt nt able to get it in java..... help needed ..

2270


Name the class that is used to bind the server object with RMI Registry?

2217


How to deploy Jar, War files in J2EE?

2732


What is clustering? What are the different algorithms used for clustering?

1122


What is chat area? Explain.

1063


what is a non-repeatable read?

2518


Why does the option tag render selected=selected instead of just selected?

1238


What are the pros and cons of detached objects?

1037


In inglish: How to convert jar to exe files? Em português: Como converter arquivos .jar para .exe?

2708


wahts is mean by dynavalidatorform in struts/

2115


what is handle?

2419


What is scalable, portability in the view of J2EE?

2571


What is table mutation and how do you avoid it?

2515