-
1. Re: CORBA servant MBean?
dimitris Apr 15, 2005 4:43 AM (in response to jiwils)Looks interesting. At the very least, it could be used as a skeleton for people that want to do this sort of things.
-
2. Re: CORBA servant MBean?
swardi Dec 11, 2009 9:00 AM (in response to jiwils)Do you have a simple example how to get started using CORBA in JBoss5.1.0.
Thanks. -
3. CORBA servant MBean works, cannot get CorbaNaming
weberj Jun 17, 2010 7:13 AM (in response to jiwils)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
Neither works
orb.resolve_initial_references("NameService")
I got a dependeny to
<depends>jboss:service=CorbaNaming</depends>
Anybody got an idea how to get the nameservice?
Thanks,
Juergen
-
4. Re: CORBA servant MBean works, cannot get CorbaNaming
weberj Jun 17, 2010 7:52 AM (in response to weberj)OK, found a way to get the NamingService.
InitialContext ctx = new InitialContext();
Object jcn = ctx.lookup("java:JBossCorbaNaming");
No idea why it is called java:JBossCorbaNaming and not java:CorbaNaming