Hello!
I have a C++ daemon, a method of it gets a number, and puts the double. I want 
to use a Java client for it, which works fine with tnameserv , but not with 
JBoss's Jacorb.
I tried with iiop way, tried with corba way but no success.
It throws:
org.omg.CosNaming.NamingContextPackage.NotFound: 
IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
        at 
org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:72)
        at 
org.omg.CosNaming._NamingContextExtStub.resolve(_NamingContextExtStub.java:406)
        at EchoClient2.main(EchoClien...

In the JMX console my ORB can be seen, so the problem is in tha java client I 
think, but cant find out what.
Here is the main part of the client:

String[] argum = new String[2];
argum[0]=new String("-ORBInitRef");
argum[1]=new String("NameService=corbaloc::[EMAIL 
PROTECTED]:3528/JBoss/Naming/root");
ORB myorb=ORB.init(argum,null);
org.omg.CORBA.Object ref=myorb.resolve_initial_references("NameService");
NamingContextExt rootNC=NamingContextExtHelper.narrow(ref);
Echo echo=EchoHelper.narrow(rootNC.resolve(rootNC.to_name("ECHO")));
IntHolder resp=new IntHolder();
echo.getValue(12,resp);
int data=resp.value;
System.out.println(data);

jboss 4.0.2
If someone would help, it would be really great.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926641#3926641

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926641


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to