RE: AW: AW: [jade-develop] Agent search from remote platform


Subject: RE: AW: AW: [jade-develop] Agent search from remote platform
From: Bellifemine Fabio (Fabio.Bellifemine@TILAB.COM)
Date: Mon Feb 03 2003 - 12:08:48 MET


I think that the best way to connect 2 remote platforms is via the federation of their DFs. In such a way, you should not hardcode any address, rather you should search with the DF for a list of DFs, and then get the address of the DFs living in remote platforms.

Probably it also usefull to know that both the ORBacus implementation of the IIOP MTP (see add-ons of JADE) and the HTTP MTP allow platforms to have persistent addresses, i.e. when you reboot a platform, it gets the same address.

Fabio.

> -----Original Message-----
> From: Tero Kivimäki [mailto:tero.kivimaki@elisa.fi]
> Sent: 03 February 2003 11:45
> Cc: jade-develop@sharon.cselt.it
> Subject: Re: AW: AW: [jade-develop] Agent search from remote platform
>
>
> Thanks again Dirk,
>
> So I have to hard code the remoteplatformaddress etc in my
> source code,
> and this means that I have to change my code if new remote
> platforms are
> connected or disconnected.
> Is there any way to get a list of remoteplatforms connected?
>
> Tero
>
>
> Dirk Pawlaszczyk wrote:
>
> >Hi Tero,
> >
> >that depends on the mtp you are using. Yet, I've tested it
> with http only.
> >It is also possible to establish an IIOP connection.
> >
> >When using http as mtp you have to create an according AID
> object containing
> >the address of the remote plattform and the container, where
> the DF is
> >registered.
> >
> >To use http you have to make sure that the httpMTPAddOn is
> installed and
> >both platforms
> >are started correctly, like in the following example:
> >
> >java jade.Boot
> >-mtp jamr.jademtp.http.MessageTransportProtocolhttp:// ip
> >address>:<port>/<container>)
> >
> >Then you can use the following lines to create an AID of the
> remote DF:
> >
> >AID remoteDF = new
> >AID("<NameOfTheDF>@<remoteplatformaddress>:<port>/JADE",true);
> >remoteDF.addAddresses("
http://>:<port>/
> <remotecontaine
> >rname>");
> >
> >Regards
> >
> >Dirk
> >
> >-----Ursprüngliche Nachricht-----
> >Von: jade-develop-admin@sharon.cselt.it
> >[mailto:jade-develop-admin@sharon.cselt.it]Im Auftrag von T. Kivimäki
> >Gesendet: Montag, 3. Februar 2003 09:15
> >An: jade-develop@sharon.cselt.it
> >Betreff: Re: AW: [jade-develop] Agent search from remote platform
> >
> >
> >ok,
> >
> >thanks.
> >How can I get the AID of the remote DF?
> >
> >Tero
> >
> >Dirk Pawlaszczyk wrote:
> >
> >
> >>Hi,
> >>
> >>to search for an agent on a remote platform you need to
> know the AID of
> >>
> >>
> >the
> >
> >
> >>remote DF first. Then you can search
> >>for the agent by calling:
> >>
> >> search(Agent a, AID dfName,DFAgentDescription
> dfd,SearchConstraints
> >>constraints)
> >>
> >>from the DFService class.
> >>
> >>Regards
> >>
> >>Dirk
> >>
> >>
> >>
> >>-----Ursprüngliche Nachricht-----
> >>Von: jade-develop-admin@sharon.cselt.it
> >>[mailto:jade-develop-admin@sharon.cselt.it]Im Auftrag von
> T. Kivimäki
> >>Gesendet: Freitag, 31. Januar 2003 12:13
> >>An: jade-develop@sharon.cselt.it
> >>Betreff: [jade-develop] Agent search from remote platform
> >>
> >>
> >>Hello all,
> >>
> >>How can I get agents of specified type from remote platform?
> >>I am using the following code, but it returns only agents from local
> >>containers.
> >>
> >>ServiceDescription sd = new ServiceDescription();
> >> sd.setType("KauppiasAgentti");
> >>DFAgentDescription ad = new DFAgentDescription();
> >> ad.addServices(sd);
> >> try{
> >> DFAgentDescription kauppiasAgentit[]=
> >> DFService.search(myAgent, ad);
> >>
> >>
> >>
> _____________________________________________
> Tero Kivimäki
> Elisa Communications Research Center
> tero.kivimaki@elisa.fi +358 10 2621230
>
>
>
> _______________________________________________
> jade-develop mailing list
> jade-develop@sharon.cselt.it
>
http://sharon.cselt.it/mailman/listinfo/jade-develop
> UNSUBSCRIBE INSTRUCTIONS AT
> http://jade.cselt.it/mailing.htm#unsubscribe
>



This archive was generated by hypermail 2a22 : Mon Feb 03 2003 - 12:08:50 MET