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 must a class do to implement an interface?

1101


What are JTA/JTS and how they used by client?

2177


How primary key is implemented in Oracle?

2383


What restrictions are placed on the values of each case of a switch statement?

960


What is threadfactory?

1040


What is the difference between java class and bean?

1031


Write a program to show synchronization?

1091


Which characters may be used as the second character of an identifier, but not as the first character of an identifier?

1002


Can constructors be synchronized in java?

1067


Can I use javascript to submit a form?

1101


Where can I find seam examples and documentation?

1048


What is bean? Where can it be used?

1072


Why are some of the class and element names counter-intuitive?

1061


What are the pros and cons of detached objects?

934


What are the types of scaling?

1050