EAServer initial context

The naming service relies on an “initial” or default name context for each server. You set the initial context when you set up the server’s Naming Service properties.

The server name context syntax follows a specific organization or schema. You can use this schema to represent the hierarchy of objects in the namespace, for example by geographic region, organizational unit, and so on.

If you use EAServer as the name server, and do not use an external naming service, the initial context for your server uses this format:

<Level 1>/<Level 2>/<Level 3>/...

The number of levels depends on the hierarchy you want to represent. For example:

US/sybase/finance US/sybase/marketing US/sybase/sales

If you use an LDAP server as an external naming service, the initial context must follow the syntax and schema of the LDAP server. LDAP servers have predefined schema for common objects such as country, organization, and organizational unit. EAServer uses the following format for an LDAP-compatible initial context:

ou=<organizational unit>, o=<organization>, c=<country>

Using the previous examples, the initial contexts would be:

ou=finance,o=sybase,c=US ou=marketing,o=sybase,c=US ou=sales,o=sybase,c=US

On start-up, the name server binds all object implementations on EAServer to the initial context of the server on which the object is installed. Once the server binds an object, the structure of the resulting name context is:

<initial context>/<package>/<component>

where

<initial context> is the initial context property for the server where the component is installed.

<package> is the name of the package being bound, as displayed in EAServer Manager.

<component> is the name of the component being bound, as displayed in EAServer Manager.

If you have multiple EAServer installations, and one of them is designated as the name server, the name server binds the objects on those servers using the initial contexts of their respective servers. If you do not specify an initial context for any of those servers, the name server binds the objects with the initial context of the designated name server.

NoteYou can set the server properties to enable password protection for name binding on an EAServer name server. See “Name binding password security”.