This would happen in the naming convention in the A context did
not use '/' as the compound name seperator. You have to be careful
when using string names across federated namespaces as it may
not make any sense, or at least work the way you expect. What
type of naming service is bound under "A"?
 
xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx
----- Original Message -----
Sent: Wednesday, August 14, 2002 1:03 PM
Subject: [JBoss-user] unbinding with a federated context

Hi all,
 
 I have on question about naming. I am using a federated context through ExternalContext service.
My issue is about unbinding something in my federated context via NamingContext :
 
 For instance, if my context is bound under A and in my context I have an object bound under B
 
 The following code works :
 
ctx = (Context) new InitialContext().lookup("B"); // got a NamingContext and then my context
ctx.unbind("B"); // unbind on my context
 
 But the code that one doesn't work at all :
 
new InitialContext().undind("A/B"); // here I unbind directly in the NamingServer
 
 I gave a look at the code and unbind throw a NotContextException instead of forwarding
the unbind to the federated context.
 
  Is it normal behaviour ? a feature planned long ago but never achieved, or bug ?
 
Julien
 

Reply via email to