<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Todd or anyone else who would like to chime in,<br>
<br>
Where can I find more information on the non-legacy community service?&nbsp;
<br>
<br>
I get the impression the documentation of Cougaar Communities in the
Cougaar Developers Guide 11.4 describes the legacy community service.<br>
<br>
What I really quickly tried to do with my application was to
re-configure it using the following<br>
<blockquote><font face="Courier New, Courier, monospace"><small>&lt;runtime&gt;<br>
... &nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;
&lt;vm_parameter&gt;-Dorg.cougaar.society.xsl.param.communities=true&lt;/vm_parameter&gt;<br>
&lt;/runtime&gt;</small><br>
  </font></blockquote>
and<br>
<blockquote><small><font face="Courier New, Courier, monospace">&lt;society&gt;</font><br>
  <font face="Courier New, Courier, monospace">&nbsp;&nbsp;&nbsp; &lt;node
name="APPA"&gt;</font><br>
  <font face="Courier New, Courier, monospace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;agent
name="DirMonAgent"&gt;</font><br>
  <font face="Courier New, Courier, monospace">... &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font><br>
  <font face="Courier New, Courier, monospace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!--
Community members need the CommunityPlugin but this is for the legacy
community service so I am commenting it out</font><br>
  <font face="Courier New, Courier, monospace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;component
class='org.cougaar.community.CommunityPlugin' /&gt;</font><br>
  <font face="Courier New, Courier, monospace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; --&gt;</font><br>
  <font face="Courier New, Courier, monospace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;!-- for
the non-legacy community service I need to use the following --&gt;</font><br>
  <font face="Courier New, Courier, monospace">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;component
class="org.cougaar.core.agent.service.community.JoinCommunity"&gt;</font><br>
  <font face="Courier New, Courier, monospace">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;argument name="community" value="DirMonCommunity"/&gt;</font><br>
  <font face="Courier New, Courier, monospace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;/component&gt;</font><br>
  <font face="Courier New, Courier, monospace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/agent&gt;</font><br>
  <font face="Courier New, Courier, monospace">&nbsp;&nbsp;&nbsp; &lt;/node&gt;</font><br>
  <font face="Courier New, Courier, monospace">&lt;/society&gt;</font></small><br>
</blockquote>
These are just excerpts.<br>
<br>
When I run the application it starts up ok, but then starts sending out
the following warning message over and over.<br>
<br>
<blockquote><small><font face="Courier New, Courier, monospace">Warning
Trigger TSD:Trigger(com.appa.agent.plugin.dirmon.DLReportPlugin):null
threw java.lang.UnsupportedOperationExcept</font><br>
  <font face="Courier New, Courier, monospace">ion: Only supports null
or "(Role=Member)" search filter, not (Role=Manager)</font><br>
  <font face="Courier New, Courier, monospace">java.lang.UnsupportedOperationException:
Only supports null or "(Role=Member)" search filter, not (Role=Manager)</font><br>
  <font face="Courier New, Courier, monospace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.cougaar.core.agent.service.community.CommunityServiceProvider$CommunityServiceImpl.searchCommunity(Commun</font><br>
  <font face="Courier New, Courier, monospace">ityServiceProvider.java:578)</font><br>
  <font face="Courier New, Courier, monospace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.cougaar.core.agent.service.community.CommunityServiceProvider$CommunityServiceImpl.search(CommunityServic</font><br>
  <font face="Courier New, Courier, monospace">eProvider.java:567)<br>
....<br>
  </font></small></blockquote>
One of my ABA targets was using Role=Manager.&nbsp; Without the
community.xml file no agents are defined with the role=Manager.&nbsp; How do
I go about doing this with the non-legacy service?&nbsp; Is it just a matter
of coding it into the agent load or setupSubscription methods or is
there some kind of configuration approach?<br>
<br>
Thanks in advance.<br>
Andreas<br>
<br>
<br>
<br>
<br>
<br>
<br>
Todd Wright wrote:
<blockquote cite="mid:47965B1C.2030904@bbn.com" type="cite"><br>
Communities are not required for the mesh demo.&nbsp; Remove the following
plugin from your XML file:
  <br>
&nbsp; org.cougaar.community.CommunityPlugin
  <br>
  <br>
You're correctly setting the Cougaar template property:
  <br>
&nbsp; -Dorg.cougaar.society.xsl.param.template=single_node
  <br>
which disables the legacy community service:
  <br>
&nbsp;
<a class="moz-txt-link-freetext" href="http://cougaar.cougaar.org/software/latest/OnlineManual/Templates.html">http://cougaar.cougaar.org/software/latest/OnlineManual/Templates.html</a>
  <br>
  <br>
If you require the legacy community service, you can enable it by
either removing:
  <br>
&nbsp; -Dorg.cougaar.society.xsl.param.template=single_node
  <br>
or adding:
  <br>
&nbsp; -Dorg.cougaar.society.xsl.param.communities=legacy
  <br>
This will load the service and it should find your "communities.xml".
  <br>
  <br>
You may also be interested in the non-legacy community service
implementation, which can be enabled with:
  <br>
&nbsp; -Dorg.cougaar.society.xsl.param.template=wan
  <br>
or:
  <br>
&nbsp; -Dorg.cougaar.society.xsl.param.communities=true
  <br>
Demo "join" and "test" plugins are included with Cougaar:
  <br>
<a class="moz-txt-link-freetext" href="http://cougaar.cougaar.org/software/latest/javadoc/core/doc/api/org/cougaar/core/agent/service/community/package-summary.html">http://cougaar.cougaar.org/software/latest/javadoc/core/doc/api/org/cougaar/core/agent/service/community/package-summary.html</a>
  <br>
  <br>
Todd
  <br>
  <br>
Andreas wrote:
  <br>
</blockquote>
...
</body>
</html>