Getting an Object's Fully Qualified Name This example gets an object's fully qualified name in its own namespace. try { Context obj = (Context)childCtx.lookup( "grandChild"); String fullname = obj.getNameInNamespace(); } catch (NamingException e) { }