Menu

mobile agent

ja
2002-07-23
2002-07-31
  • ja

    ja - 2002-07-23

    can i use a strong reaction in a mobile agent and how?

     
    • ja

      ja - 2002-07-30

      when agent begins to run an error:NoClassDefFoundError:Classreact.
      but there is the class Classreact(Reaction Listener)  and has been comliled without errors

       
      • Amy Murphy

        Amy Murphy - 2002-07-30

        To answer your previous two questions:

        1. Yes you can use a strong reaction inside a mobile agent, just as you can use a strong reaction in a stationary agent.  The only "issue" is what to use as the "current" location for the reaction.  If you use the current host, then when the agent migrates, the reaction will not fire at the new host (because current will not match).  You can use the agent as the current field, but this will restrict you to tuples for which the mobile agent is the owner.  We intended to implement an "ANY" option to allow the "current host" to be the "current field" in a strong reaction...but this is not in the existing implementation.

        2. your class not found exceptions are likely due to classpath problems.  Does this error occur on the first host when you load the agent, or only after the agent migrates?  If it is on the first host, then the problem is classpath.  If it is only after migration, then the probably may be with the style of code migration being used (to move the agent code to the destination machine).  A quick-fix should be to ensure that the code for the mobile agent is at all hosts where the agent will migrate.

        Good luck.

        -Amy

        P.S.  If you have a chance, can you take a moment to describe the application you are using Lime for?

         
    • ja

      ja - 2002-07-31

      I think that there is not problem with classpath,because compiling the agent a class file(Classreact.class) is creating into the directory which is classpath

       

Log in to post a comment.

MongoDB Logo MongoDB