OutTray |
IIOP_Z_HTTP_TransportFactory.getTransport(java.lang.String address)
this method returns a transport for this address. having called this
all you need to do to send a message is call Transport.send(Envelope);
HOW IT WORKS
1) check and see if the address starts with the key word(s) iiop/iiopname
2) split out the address (name.domain.type) and port (:9000) and use
them to initialise an orb
3) then churn through the naming contexts that it uses - if an address is
of the form iiop://name.domain.type:9000/xxx/yyy/zzz/acc then this means
that there are three naming contexts (xxx,yyy,zzz) which must be found before
we can get hold of acc.
4) when we have acc we will know because an ClassCastException will have been
thrown.. so handle it by trying to cast to either FIPA_Agent_97 or FIPA.MTS. |