Browse Prior Art Database

Method and Aparatus to Provide JNDI Name Space Reference Suggestion to a Developer

IP.com Disclosure Number: IPCOM000076872D
Original Publication Date: 2005-Feb-24
Included in the Prior Art Database: 2005-Feb-24
Document File: 1 page(s) / 27K

Publishing Venue

IBM

Abstract

Disclosed is a system designed to provide developers more information about failed Java Naming and Directory Interface (JNDI) lookups.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 86% of the total text.

Page 1 of 1

Method and Aparatus to Provide JNDI Name Space Reference Suggestion to a Developer

Disclosed is a system designed to provide developers more information about failed Java Naming and Directory Interface (JNDI) lookups. JNDI lookups currently do not give a developer much information about what lookup the developer might perform in place of the one they unsuccessfully performed to achieve a successful lookup. The disclosed system aims to provide a specialized debug mode of a JNDI server where the server will return advice to the developer trying to perform a lookup. In the disclosed system, the JNDI server will have a specialized debug mode. This debug mode might have restricted access, only allowing certain users who are hitting the JNDI server with a designated, authorized, developer access to be returned privileged advice information in the exceptions they get back from the JNDI server. In this so called advice information, the developer will receive suggestions to what JNDI lookup code they might have meant to call. For example, if the developer tried looking up "jdbc/dn4datasource" the JNDI server might give back advice information of: "Did you mean jdbc/db2datasource ?" The advice information might be gathered by any pre-specified advice logic that the developer provides programmatically. In this simple case, logic of proximity of keys on the keyboard is checked. The letter "N" is found next to the key "B" on a typical keyboard. Since jdbc/dn4datasource was no...