Hey

Stuart Barlow wrote:
> Maybe a good question Rickard. :-)
> This is what TOPLink are doing in their JNDIConnector code when
> I pass them a string.
> 
> When should Composite and Compound names be used?
> What is the difference between the two?
> Basic info for a J2EE newbee.

>From the JNDI javadoc on CompositeName:
This class represents a composite name -- a sequence of component names
spanning multiple namespaces. Each component is a string name from
the namespace of a naming system. If the component comes from a
hierarchical namespace, that component can be further parsed into its
atomic
parts by using the CompoundName class. 

>From the JNDI javadoc on CompoundName:
This class represents a compound name -- a name from a hierarchical name
space. Each component in a compound name is an atomic name. 

So, you would use CompositeName if you had several namespaces to
traverse and CompoundName for single namespaces. A CompositeName can
contain CompoundNames. 

In this case there is only one namespace (unless they do something weird
inside their JNDIConnector) so CompoundName is the one to use.

Am I missing something here, or is this a TOPLink bug?

/Rickard

-- 
Rickard �berg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to