[omniORB] Connecting to Sybase's jaguar

Leopoldo Salvo Lsalvo@msdw.es
Fri, 17 May 2002 12:49:12 +0200


Hello all,

First of all Im new to CORBA so please excuse me if the following code isnt
right.

Im trying to instantiate a bean in a jaguar 3.6.1, im using this code:


	int argc = 0;
	CORBA::ORB_ptr orb = CORBA::ORB_init(argc, NULL,"omniORB3");

	CORBA::Object_var       obj =
orb->resolve_initial_references("RootPOA");
	PortableServer::POA_var poa = PortableServer::POA::_narrow(obj);

    PortableServer::POAManager_var pman = poa->the_POAManager();
    pman->activate();

	try{
		CORBA::Object_var       obj_jag = orb->string_to_object
("corbaloc:iiop:jagserver:9000/myBean");
		CBMururoa_ptr p_obj = CBMururoa::_narrow (obj_jag);

...

	At this point, i get a CORBA::INV_OBJREF exception, and the jaguar
server log shows the line "May 17 11:36:22 2002: SystemException: INV_OBJREF
(?/_is_a - @25.4.15.146)", wich is the client machine ip address.

I have tried using -ive seen this format in some sybase newsgroup-:
		CORBA::Object_var  obj_jag = orb->string_to_object
("corbaloc:iiop:1.2@jagserver:9000#myBean");
but i get a CORBA::SystemException straight away.

Can anyone help me out on this please?, any help very much appreciated`,
Leo.