Agent Creation Failure message problem

View: New views
3 Messages — Rating Filter:   Alert me  

Agent Creation Failure message problem

by KyawThu Win :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
         I face another problem. In my system, number of mobile agent vary according to the user request.I create mobile agent by sending Master agent to AMS for creating agent.After creating the mobile agent means inform message received from AMS, Master agent send ACL message to perform the mobile agent tasks. Mobile agent migrate to its destinaton and perform its task there.After finished, it migrate back.And then send the inform message to Master agent. After all of them,it kills itself. But, when the another request message arrived, Master agent send AMS to create agent again with the killed mobile agent name.In that process, AMS reply Failure message with "already registered". What's wrong with its?How to solve this?
Thanks!

_______________________________________________
jade-develop mailing list
jade-develop@...
https://avalon.cselt.it/mailman/listinfo/jade-develop
UNSUBSCRIBE INSTRUCTIONS AT
http://jade.tilab.com/community-mailinglist.htm

Re: Agent Creation Failure message problem

by aravinth kumar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

can i know how to create agent and compile it....

On 10/31/09, KyawThu Win <ktwcumdy2009@...> wrote:

> Hi,
>          I face another problem. In my system, number of mobile agent vary
> according to the user request.I create mobile agent by sending Master agent
> to AMS for creating agent.After creating the mobile agent means inform
> message received from AMS, Master agent send ACL message to perform the
> mobile agent tasks. Mobile agent migrate to its destinaton and perform its
> task there.After finished, it migrate back.And then send the inform message
> to Master agent. After all of them,it kills itself. But, when the another
> request message arrived, Master agent send AMS to create agent again with
> the killed mobile agent name.In that process, AMS reply Failure message with
> "already registered". What's wrong with its?How to solve this?
> Thanks!
>


--
have a nice day
_______________________________________________
jade-develop mailing list
jade-develop@...
https://avalon.cselt.it/mailman/listinfo/jade-develop
UNSUBSCRIBE INSTRUCTIONS AT
http://jade.tilab.com/community-mailinglist.htm

RE: Agent Creation Failure message problem

by Caire Giovanni-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi,

 

Likely there is a race condition: The MasterAgent requests the creation of a new MobileAgent before the AMS has deregistered the old one.

A simple way to test if this is the case is to insert a delay (let’s say 10 seconds) between when the MasterAgent receives the INFORM from the Mobile Agent and when it requests the AMS to create the new Mobile Agent.

Another option is to use different names for Mobile Agents: e.g. At first time the Master Agent requests the AMS to create Mobile Agent MA1, at second time MA2 and so on.

 

Bye,

 

Giovanni

 


From: jade-develop-bounces@... [mailto:jade-develop-bounces@...] On Behalf Of KyawThu Win
Sent: sabato 31 ottobre 2009 12.04
To: jade-develop
Subject: [jade-develop] Agent Creation Failure message problem

 

Hi,
         I face another problem. In my system, number of mobile agent vary according to the user request.I create mobile agent by sending Master agent to AMS for creating agent.After creating the mobile agent means inform message received from AMS, Master agent send ACL message to perform the mobile agent tasks. Mobile agent migrate to its destinaton and perform its task there.After finished, it migrate back.And then send the inform message to Master agent. After all of them,it kills itself. But, when the another request message arrived, Master agent send AMS to create agent again with the killed mobile agent name.In that process, AMS reply Failure message with "already registered". What's wrong with its?How to solve this?
Thanks!


_______________________________________________
jade-develop mailing list
jade-develop@...
https://avalon.cselt.it/mailman/listinfo/jade-develop
UNSUBSCRIBE INSTRUCTIONS AT
http://jade.tilab.com/community-mailinglist.htm