• Post Reply Bookmark Topic Watch Topic
  • New Topic

CORBA Doubt  RSS feed

 
lp
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i am new to CORBA and was practising an example .i got a error when i was compling the server.java .the code is as follows
import test.*;
import org.omg.CosNaming.*;
import org.omg.CORBA.*;
public class Server
{
public static void main (String[] args) throws Exception
{
org.omg.CORBA.ORB orb=org.omg.CORBA.ORB.init();
org.omg.CORBA.BOA boa=orb.BOA_init();
test.Hello h1=new test._example_Hello("server");
boa.obj_is_ready(h1);
System.out.println("Server object ready");
boa.impl_is_ready();
}
}
when i am compiling the java file using Visigneic broker it is giving the error-Cannot resolve the symbol ,method BOA_init() and the location it is pointing to is the dot operatot in orb.BOA_init();
Could any one please tell me what is wrong in this .
Thanks in advance
Lakshmi
 
suria
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
generally the vbjc accepts only POA. So if u wanna use BOA u r supposed to use the tag -boa in IDL 2 java/c++ compliation. hope this mat solve ur problem.
suria
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!