<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi, Christian.<br>
<br>
I'm assuming that your versions of SDRegistrationPlugin and
SDClientPlugin extend SimpleSDRegistratonPlugin, SimpleSDClientPlugin
and SimpleMatchmakerPlugin.. Debugging is a lot more straightforward
with the simple versions. These are the base classes used in the pizza
tutorial.<br>
<br>
Would you first verify that MTA is successfully registering as a
ProductionTaskProvider?<br>
<ul>
<li> Does registration plugin find the provider file?</li>
<ul>
<li>Add debugging output to isProvider() and helper methods to
print file name returned by getProviderFile() and getProviderFile()
exists()</li>
</ul>
<li> Does the registration plugin find it's yp community?</li>
<ul>
<li>SimpleSDRegistrationPlugin has debugging output charting the
progress of the finding the YP community</li>
</ul>
<li>Does the registration plugin register the provider</li>
<ul>
<li>SimpleSDRegistrationPlugin has debugging output for
registration process in the YP. Look for - MTA initialRegister success
= true with <yp community name></li>
</ul>
</ul>
Please let me know whether registration is successful so I can suggest
the next set of debugging steps.<br>
<br>
Other thoughts -<br>
1) Did you add follow the example of the pizza tutorial and implement a
DomainAdapter (org.cougaar.servicediscovery.PizzaDomain) and Constants
(org.cougaar.servicediscovery.Constants) to ensure that the
ProductionTaskProvider role was properly constructed?<br>
<br>
2)I'm perplexed by the reference to MilitaryServiceScheme in the
MMQuery. SimpleMatchmakerPlugin.getServiceSchemeForRoles() defaults to
UDDIConstants.COMMERCIAL_SERVICE_SCHEME. Can you verify that you're
using an extension of SimpleMatchmakerPlugin and have not overwritten
getServiceScheme?<br>
<br>
Noelle<br>
<br>
Noelle Givler wrote:
<blockquote cite="mid:485FCD25.6040201@bbn.com" type="cite">Hi,
Christian.
<br>
<br>
I just started looking at your logs but I noticed that I don't see any
messages indicating that MTA registered sucessfully as a
ProductionTaskProvider. Do you have logging enabled for
org.cougaar.servicediscovery.plugin? There should be in an initial
DEBUG level message from SimpleSDRegistrationPlugin saying something
like -
<br>
Registering: MTA with <your community name>
<br>
<br>
If this doesn't appear, it indicates that cougaar isn't finding the
provider description file - probably related to a cougaar install path
problem. I'll see if I can find some documentation on setting up
environment variables.
<br>
<br>
Noelle
<br>
<br>
<br>
Christian Bernardt wrote:
<br>
<blockquote type="cite">Hi Noelle,
<br>
<br>
here are the logging files. One, where DEBUG is set for entire cougaar
plugins (full_...log) and the other one with just my plugins set to
debug.
<br>
The xml file is my community start file and I have sent you the
community file, a sample service file, my service scheme.
<br>
Just tell me, if you need any further material from my side.
<br>
<br>
Yours sincerely,
<br>
<br>
Christian Bernardt
<br>
<br>
On Wed, Jun 18, 2008 at 4:20 PM, Noelle Givler <<a class="moz-txt-link-abbreviated" href="mailto:ngivler@bbn.com">ngivler@bbn.com</a>
<a class="moz-txt-link-rfc2396E" href="mailto:ngivler@bbn.com"><mailto:ngivler@bbn.com></a>> wrote:
<br>
<br>
Hi, Christian.
<br>
<br>
I got your call yesterday. I'm committed to client meetings
<br>
through the week. I should be available to talk next Monday
<br>
morning. I'm usually in by 8 am edt.
<br>
<br>
Noelle
<br>
Christian Bernardt wrote:
<br>
<br>
Hi Noelle,
<br>
<br>
this is Christian Bernardt, I have tried calling you, but just
<br>
reached your answering machine.
<br>
I would like to ask one more question concerning the yp
<br>
service. I have managed to publish a FIND_PROVIDER task, which
<br>
result in a mmquery published by the SDClientPlugin. But the
<br>
query only seems to return null. When I use the servlet to
<br>
look for the mmquery it tells me that all my queries are
<br>
MilitaryService Queries and that I am using the
<br>
MilitaryServiceScheme, which is very strange, because I never
<br>
defined this ServiceScheme and can not find a code snippet
<br>
where this service scheme is referenced. However I have
<br>
referenced the CommercialServiceScheme, which contains all the
<br>
information I need for my application.
<br>
Could you please make some suggestion:
<br>
<br>
1.) why the mmqueries are failing, even though I have
<br>
generated the owl files, have provided the ServiceScheme and
<br>
published it
<br>
2.) where I could find the reference to the Military Service
<br>
Scheme so that I can change this reference to the
<br>
CommercialServiceScheme.
<br>
<br>
Thank you very much.
<br>
<br>
I would really appreciate if we could talk on the phone on one
<br>
of these days.
<br>
<br>
Yours sincerely, Christian Bernardt
<br>
<br>
On Tue, May 20, 2008 at 8:53 PM, Noelle Givler
<br>
<<a class="moz-txt-link-abbreviated" href="mailto:ngivler@bbn.com">ngivler@bbn.com</a> <a class="moz-txt-link-rfc2396E" href="mailto:ngivler@bbn.com"><mailto:ngivler@bbn.com></a>
<br>
<<a class="moz-txt-link-freetext" href="mailto:ngivler@bbn.com">mailto:ngivler@bbn.com</a>
<a class="moz-txt-link-rfc2396E" href="mailto:ngivler@bbn.com"><mailto:ngivler@bbn.com></a>>> wrote:
<br>
<br>
Hi, Christian.
<br>
<br>
I assume you've already looked at the pizza tutorial. (
<br>
<a class="moz-txt-link-freetext" href="http://cougaar.org/projects/tutorials/">http://cougaar.org/projects/tutorials/</a> ). That's a very
<br>
straightforward example of cougaar service discovery. I'm
<br>
going to
<br>
use the pizza tutorial as the context for my answers below.
<br>
<br>
CommercialServiceScheme-yp.xml and the service profiles
<br>
define the
<br>
set of services registered for a given agent within the
yellow
<br>
pages. The README file in
tutorials/pizza/data/serviceprofiles
<br>
discusses how to add a new service (i.e. IceCreamProvider)
<br>
and how
<br>
to add an new provider (i.e. Pizzahut).
<br>
<br>
SDPizzaNode1.xml and SDPizzaNode2.xml in
<br>
tutorials/pizza/configs/pizzaparty are well commented
<br>
examples of
<br>
society .xml files. They illustrate how to define nodes and
<br>
agents. In addition, you can find information on how the
<br>
plugins
<br>
within the agents are configured to support service
discovery.
<br>
<br>
Within the cougaar agents, the service functionality is
<br>
modeled by
<br>
plugins.
<br>
tutorials/tutorials/pizza/src/org/cougaar/pizza/plugin/package.html
<br>
discusses how the plugins use service discovery to find a
<br>
PizzaProvider. For service discovery to work correctly in
the
<br>
simple service discovery case demonstrated by the pizza
<br>
tutorial,
<br>
Role.getName() (in the org.cougaar.planning.ldm.plan.Role
<br>
sense)
<br>
must match the string used to define the service in
<br>
CommercialServiceScheme-yp.xml and the the service
<br>
profiles. Hence
<br>
the addition of the PIZZAPROVIDER and PIZZACONSUMER Roles
<br>
defined
<br>
on org.cougaar.pizza.Constants. Section 3.2.9 of the
Cougaar
<br>
Developers Guide discusses Service Discovery in greater
detail.
<br>
<br>
If you have additional questions, it would be helpful if
<br>
you could
<br>
also provide some background on the problem you wish to
solve.
<br>
<br>
Thanks,
<br>
Noelle Givler
<br>
<br>
Subject:
<br>
Re: Question Cougaar, mailing list not working
<br>
From:
<br>
Todd Wright <<a class="moz-txt-link-abbreviated" href="mailto:twright@bbn.com">twright@bbn.com</a>
<a class="moz-txt-link-rfc2396E" href="mailto:twright@bbn.com"><mailto:twright@bbn.com></a>
<br>
<<a class="moz-txt-link-freetext" href="mailto:twright@bbn.com">mailto:twright@bbn.com</a>
<a class="moz-txt-link-rfc2396E" href="mailto:twright@bbn.com"><mailto:twright@bbn.com></a>>>
<br>
<br>
Date:
<br>
Thu, 15 May 2008 11:06:04 -0400
<br>
<br>
To:
<br>
Christian Bernardt <<a class="moz-txt-link-abbreviated" href="mailto:crossfire2003@gmx.de">crossfire2003@gmx.de</a>
<br>
<a class="moz-txt-link-rfc2396E" href="mailto:crossfire2003@gmx.de"><mailto:crossfire2003@gmx.de></a>
<br>
<<a class="moz-txt-link-freetext" href="mailto:crossfire2003@gmx.de">mailto:crossfire2003@gmx.de</a>
<br>
<a class="moz-txt-link-rfc2396E" href="mailto:crossfire2003@gmx.de"><mailto:crossfire2003@gmx.de></a>>>,
<br>
<a class="moz-txt-link-abbreviated" href="mailto:christian.bernardt@googlemail.com">christian.bernardt@googlemail.com</a>
<br>
<a class="moz-txt-link-rfc2396E" href="mailto:christian.bernardt@googlemail.com"><mailto:christian.bernardt@googlemail.com></a>
<br>
<<a class="moz-txt-link-freetext" href="mailto:christian.bernardt@googlemail.com">mailto:christian.bernardt@googlemail.com</a>
<br>
<a class="moz-txt-link-rfc2396E" href="mailto:christian.bernardt@googlemail.com"><mailto:christian.bernardt@googlemail.com></a>>
<br>
CC:
<br>
Aaron Helsinger <<a class="moz-txt-link-abbreviated" href="mailto:ahelsing@bbn.com">ahelsing@bbn.com</a>
<a class="moz-txt-link-rfc2396E" href="mailto:ahelsing@bbn.com"><mailto:ahelsing@bbn.com></a>
<br>
<<a class="moz-txt-link-freetext" href="mailto:ahelsing@bbn.com">mailto:ahelsing@bbn.com</a>
<a class="moz-txt-link-rfc2396E" href="mailto:ahelsing@bbn.com"><mailto:ahelsing@bbn.com></a>>>
<br>
<br>
<br>
<br>
<br>
I've cc'ed Aaron. I don't know much about the YP, so
hopefully
<br>
Aaron can answer your questions.
<br>
<br>
Also, try sending your email to mailing list again. It was
<br>
down
<br>
for several weeks but I think we've fixed it.
<br>
<br>
Todd
<br>
<br>
Christian Bernardt wrote:
<br>
<br>
Hi Todd,
<br>
<br>
I have a question concerning the cougaar yellow page
<br>
service.
<br>
I hope you find the time to answer it.
<br>
I am a little confused about the definition of roles.
There
<br>
are, as far as I know, 4 places where one can find a
role
<br>
definition:
<br>
<br>
* CommercialServiceScheme-yp.xml
<br>
* the society xml, when creating the self-entity
<br>
* the serviceprofile owls
<br>
* Constants Class
<br>
<br>
Which of the places, where I can find the role names are
<br>
essential to get the yellow page service working?
<br>
Could you please explain a bit, what exactly is e.g.
<br>
done in
<br>
the Constants class, which I do not fully understand and
<br>
therefore can not really adapt it to my problem.
<br>
I know, that the pizza example creates complementary
roles,
<br>
provider vs. customer, but what does the creation of the
<br>
relationship type in Constants do? and is it essential
<br>
for the
<br>
yellow page service?
<br>
<br>
I hope you find the time to elaborate a little more on
the
<br>
concept.
<br>
<br>
Yours sincerely,
<br>
<br>
Christian Bernardt
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
-- secondary residence:
<br>
<br>
c/o Gregersen
<br>
Karl-Marx-Ring 118
<br>
81739 München
<br>
Germany
<br>
______________________________________
<br>
mobile: +49-151-56934998
<br>
phone: +49-351-2644416 (VOIP)
<br>
______________________________________
<br>
principal residence:
<br>
<br>
Christian Bernardt
<br>
Gartenstr. 6
<br>
01328 Dresden
<br>
Germany
<br>
phone:+49-(0)351-26 40 914
<br>
fax: +49-(0)351-26 40 918
<br>
<br>
<br>
<br>
<br>
<br>
-- <br>
secondary residence:
<br>
<br>
c/o Gregersen
<br>
Karl-Marx-Ring 118
<br>
81739 München
<br>
Germany
<br>
______________________________________
<br>
mobile: +49-151-56934998
<br>
phone: +49-351-2644416 (VOIP)
<br>
______________________________________
<br>
principal residence:
<br>
<br>
Christian Bernardt
<br>
Gartenstr. 6
<br>
01328 Dresden
<br>
Germany
<br>
phone:+49-(0)351-26 40 914
<br>
fax: +49-(0)351-26 40 918 </blockquote>
<br>
<br>
</blockquote>
<br>
</body>
</html>