In the application properties file
In InitialContext object
In web.xml file
It depends on naming service provider being used.
Objects are bound to names directly in Java code.
In configuration area of the application server