As we all know we can get a data-source reference or any JNDI reference from server using InitialContextFactory
Ex. When it comes to Websphere Application Server using below properties we can get reference: com.ibm.websphere.naming.WsnInitialContextFactory corbaloc:iiop:localhost:2809
The InitialContextFactory varies based on server instance you are using.
Question:
While configuring spring data source or JNDI we dont provide server details ( like name of server, type .. etc) and in which port corbaloc running.
If I really write my own program to get data-source then I have to know above details to get but
How Spring code is so generic and without knowing those details how it is getting JNDI reference?
thanks for your answers..