we're trying to overcome a firewall issue, specifically with our clients. I need to control the port a client listens on and I think the java equivalent is;
vbroker.se.iiop_ts.scm.iiop_tp.listener.port=<port>
vbroker.se.iiop_ts.scm.iiop_tp.listener.type=Callback-IIOP
However I'm running C++ so I need to do this programatically. Do I specify this string at startup? If yes is it simply a matter of;
-ORBvbroker.se.iiop_ts.scm.iiop_tp.listener.port=<port> -ORBvbroker.se.iiop_ts.scm.iiop_tp.listener.type=Callback-IIOP ?
There is the possibility that the same appliction will be launched two or more times on the same machine so I would like to be able to activate my callback object with a poa created with policies that control its port number. Is that possible? Actually now that I think of it, I absolutely must do this programmatically (as opposed to command line args). i.e. if there is already an instance of the app running on port 10, say, then I need to launch this instance on port 11, say.
the callback is not created at startup (it could be hours after the app initialiases that callbacks are created), so I really need to do this via a C++ api. Anybody have any ideas how to do this with visibroker?
thanks much, have a nice day.
Graham
I'm going to have to do a release build with Orbix using wellknownaddressing if we can't get a borland option.... and I really don't want them to switch all this architecture over to IONA techno as I'm the one tasked with it if needs be.
HELP! :) cheers
GrahamO
>to put this question another way.... is it possible to programmatically
>configure ports used by callback objects on a callback by callback basis?
>I can only see ORB level options which we don't want/need.
I believe what you want to do is possible, but unfortunately most of my
experience is with VisiBroker for Java so I don't know the steps necessary
to configure a C++ application to do the same.
Your best bet would be to contact Borland support.
--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/
Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html
thanks for the reply, appreciate it. If its possible to do this with java than I can do the equivalent with C++. Do you have any java code knocking around that does it? that works for me.
cheers and ahve a good weekend.
G
>thanks for the reply, appreciate it. If its possible to do this with java
>than I can do the equivalent with C++. Do you have any java code knocking
>around that does it? that works for me.
Actually, I think I found what you want. Check out the VisiBroker for C++
Developer's Guide and look for the string "listener.port". You'll find
multiple instances of this string; it is used to specify the listener port
for a variety of objects in the VisiBroker realm. You should be able to
find the appropriate object and therefore configuration property without
much difficulty.
thanks for that info.. you're a Jedi. Works a treat!! :)
cheers mate.
Grahamo
"Kevin Dean [TeamB]" <NkOdS...@datadevelopment.com> wrote: