Before you deploy a library, you must create a properties file that contains the information necessary to connect to an initial context. Once you, as administrator, have deployed a library, you must distribute a properties file to all users. Therefore, the easiest way to distribute this file is to put it on a Web server and distribute the URL of the properties file. Once you have deployed a library, you can publish objects to the library. By objects, I mean instances of Java classes.
Objects play the role of abstract containers of information.
As such, the simplest object is probably an instance of the String class. The Publish command requires the URL of the properties file mentioned above. It also accepts any number of additional pairs of arguments. The first value in each pair is the name of the object. The name must conform to whatever naming policy the JNDI service provider requires.