<!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?
<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><runtime><br>
... <br>
<vm_parameter>-Dorg.cougaar.society.xsl.param.communities=true</vm_parameter><br>
</runtime></small><br>
</font></blockquote>
and<br>
<blockquote><small><font face="Courier New, Courier, monospace"><society></font><br>
<font face="Courier New, Courier, monospace"> <node
name="APPA"></font><br>
<font face="Courier New, Courier, monospace"> <agent
name="DirMonAgent"></font><br>
<font face="Courier New, Courier, monospace">... </font><br>
<font face="Courier New, Courier, monospace"> <!--
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"> <component
class='org.cougaar.community.CommunityPlugin' /></font><br>
<font face="Courier New, Courier, monospace"> --></font><br>
<font face="Courier New, Courier, monospace"> <!-- for
the non-legacy community service I need to use the following --></font><br>
<font face="Courier New, Courier, monospace">
<component
class="org.cougaar.core.agent.service.community.JoinCommunity"></font><br>
<font face="Courier New, Courier, monospace">
<argument name="community" value="DirMonCommunity"/></font><br>
<font face="Courier New, Courier, monospace">
</component></font><br>
<font face="Courier New, Courier, monospace"> </agent></font><br>
<font face="Courier New, Courier, monospace"> </node></font><br>
<font face="Courier New, Courier, monospace"></society></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"> 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"> 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. Without the
community.xml file no agents are defined with the role=Manager. How do
I go about doing this with the non-legacy service? 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. Remove the following
plugin from your XML file:
<br>
org.cougaar.community.CommunityPlugin
<br>
<br>
You're correctly setting the Cougaar template property:
<br>
-Dorg.cougaar.society.xsl.param.template=single_node
<br>
which disables the legacy community service:
<br>
<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>
-Dorg.cougaar.society.xsl.param.template=single_node
<br>
or adding:
<br>
-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>
-Dorg.cougaar.society.xsl.param.template=wan
<br>
or:
<br>
-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>