I tried that, got the JBoss (4.3) default Orb with
ObjectName ORB_NAME = ObjectNameFactory.create("jboss:service=CorbaORB");
ORB orb = (ORB)server.getAttribute(ORB_NAME, "ORB");
narrowed the POA, and added a servant, output its IOR to stdout, ran a client using this IOR, worked fine.
Next I wanted to put the servant into nameservice. I tried to access the nameservice with
ObjectName CN_NAME = ObjectNameFactory.create("jboss:service=CorbaNaming");
Object n = server.getAttribute(CN_NAME, "CorbaNaming");
This fails with
javax.management.AttributeNotFoundException: not found: CorbaNaming
I got a dependeny to
Anybody got an idea how to get the nameservice?