To change the JNDI settings, select 'Configuration' from the JNDI menu.
JNDI Configuration help
This dialog will control how this profile connects to a JNDI repository. At it's basic, you need just two things to connect to a JNDI repository: An InitialContextFactory and a Provider URL. The InitialContextFactory is a class that knows how to perform operations on a particular type of directory, whether that be a File System or LDAP server or whatever. You need to select which InitialContextFactory corresponds to your type of repository. Five default ones will always appear:
Select the InitialContextFactory you wish to use for your repository and the type in the provider URL for the repository. The format of this will totally depend on the repository type but some examples are given here:
This information will allow you to connect to most repositories. If
your repository requires some advanced connection properties, see below.
The GUI itself will also provide some default options which are
shown here.
When you click OK the changes will be applied and if you are
already connected to a repository, you will be disconnected
and then re-connected with the modified properties. This information is
saved in the current configuration profile when you choose the 'Save' menu option. You
will be prompted to save the file when you are closing the application
if you have not done so yourself.
Advanced properties
Some repositories require authentication before allowing them to
connect. If this is the case, select the authentication method the
repository is expecting. Then when you next connect, you will be
prompted for an appropriate user name and password.
If you click the 'Specify advanced properties' option, then you will be
given two more settings that you can customize.
If you are unsure of any of these settings it is recommended that
you leave them unset which will automatically activate the
default values:
Default advanced properties
LDAP | Name Prefix = 'cn=' Use InitialDirContext = yes |
Other types | Name Prefix = '' Use InitialDirContext = no |
To add your own InitialContextFactory to the drop down list
This program maintains a configuration file that contains information such as window positions and recent files. This is located in the current users home directory and is named '.jmsadmin.cfg'. Locate this file and add the following line(s) to it:
'InitCtxFactx=com.mycomp.myfactory
...where x is a number starting at 1 and incrementing for every extra factory you add and com.mycomp.myfactory is the class name of your InitialContextFactory. Next time the program starts, the factory will appear in the drop down list.
Note: To use other InitialContextFactory classes with this program you need to make sure that the class can be located on the classpath that the GUI runs under.