View RSS Feed

Recent Blogs Posts

  1. A JNDI Example

    by , 07-07-2012 at 05:06 PM
    In naming systems, an object could be accessed by creating initial context for sake of a naming system so that an entry point could be gained into a naming system. Once initial context is present, an object could be looked up by name.

    Java Code:
    import java.util.Properties;
    import javax.naming.*;
    public class Lookup {        
      public static void main(String[] args) {        
        String name = "";
        if (args.length > 0)
    Tags: jndi example Add / Edit Tags