I don't think I am wrong because same code with
lookup works.
BTW I use a flat namespace.
here are two snippets of code on
NamingService
lookup :
....
}
else if (ctx instanceof
Reference)
{ // Federation if (((Reference)ctx).get("nns") != null) { CannotProceedException cpe = new CannotProceedException(); cpe.setResolvedObj(ctx); cpe.setRemainingName(name.getSuffix(1)); throw cpe; } result = new ResolveResult(ctx, name.getSuffix(1)); // that will trigger NamingContext to ask the federated Context to lookup the value } else .... unbind :
....
}
else if (ctx instanceof
Reference)
{ // Federation if (((Reference)ctx).get("nns") != null) { CannotProceedException cpe = new CannotProceedException(); cpe.setResolvedObj(ctx); cpe.setRemainingName(name.getSuffix(1)); throw cpe; } else { // its going here throw new NotContextException(); // the code goes here when unbind executes and lets no further chance to the federated context to unbind } } else .....
|
- [JBoss-user] unbinding with a federated context Julien Viet
- Re: [JBoss-user] unbinding with a federated context Scott M Stark
- Julien Viet