[omniORB] Server on dedicated port
Wernke zur Borg
Wernke.zurBorg at anite.com
Fri Jun 11 11:12:03 BST 2004
I also use the omniINSPOA, and it works fine for me.
I guess your problem is the URI that you supply to
resolve_initial_references on the client, could you post it? It should be of
the form "corbaloc::<host>:<port>/<key>".
But the problem could also be on the server, where the INSPOA must activate
your object by calling activate_object_with_id. The OID passed to that call
is obtained from a call of PortableServer::string_to_ObjectId(<key>).
I do not use ORBpoaUniquePersistentSystemIds, I do not believe it is
necessary for this purpose.
Hope it helps.
Wernke
-----Original Message-----
From: omniorb-list-bounces at omniorb-support.com
[mailto:omniorb-list-bounces at omniorb-support.com] On Behalf Of Green,
Wallace J
Sent: 09 June 2004 19:33
To: omniorb-list at omniorb-support.com
Subject: [omniORB] Server on dedicated port
I am trying to develop a relatively simple server using OmniOrb on Linux.
I'd like the server to run on a dedicated port. I'd also like a client to
be able to resolve this server using "resolve_initial_references".
I'm trying to reduce the number of processes running so I'm avoiding the
nameserver.
I have set the server to create an object (with id) using the INSpoa. I run
the server with the ORBpoaUniquePersistentSystemIds and ORBendPoint Command
line options. When the server runs, I can see it listening on the desired
port by using "netstat".
I have set an InitRef entry in the omni configuration file and try to
"resolve_initial_references" in the client. The
resolve_initial_refererences does return a non-null object, but when this
object is narrowed, I get an error "omniORB: ERROR -- the application
attempted to invoke an operation on a nil reference.".
So, obviously I'm doing something wrong. Does anyone have any clues?
It would be real nice if someone had a set of example programs which do this
type of operation that work.
Wally Green
_______________________________________________
omniORB-list mailing list
omniORB-list at omniorb-support.com
http://www.omniorb-support.com/mailman/listinfo/omniorb-list
More information about the omniORB-list
mailing list