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 threadfactory?

1092


what is a portable component?

2005


What is the difference between system.out ,system.err and system.in?

1100


How to pass parameters in RMI?

2258


What event results from the clicking of a button?

1243


What are the pros and cons of detached objects?

984


What is the relationship between local interfaces and container-managed relationships?

1117


How to implement RMI in Java?

2870


What is the argument type of a programs main() method?

1114


Where can I ask questions and make suggestions about seam?

1056


Define the remote object implementation?

2501


What is the difference between static and non-static with examples?

1939


What is aop(assepct oriented programing)?

1049


what are the activation groupworks?

2196


we use MainFrame and using os390 for operating system with DB2 data base in IRAN and interest programing with java and use webspere for world wide,please help me where i should start?

2418