Question about Cougaar Binding a new componentService
Martijn Broos
martijn at yall.nl
Mon Feb 18 05:30:53 EST 2008
Hi,
I am writing an service that should run on Node level which is actually
working as an SQL server. It should be a service which each node
provides to their agents and setup an connection to the database and
executes a query sending back the resultset to the requestor.
Attached is the code which I have.
Now when I attach the Service to the node, it is registered at the
insertionpoint:
<node name="SysteemNode">
<component
class='nl.decis.masans.util.SqlService.SqlServiceComponent'
priority='HIGH'
insertionpoint="Node.AgentManager.Agent.Component"
/>
ETC.....
This means now that the service is running at node level in the conde
agetn.component. I assume that everything below, (agents, agentsplugins
etc, are now able to get there by the getservicebroker() function)
but when I create a agent with a plugin (see attached society.xml
snippet) then it will not find the right service.
<agent name="BootstrapAgent">
<component
class="nl.decis.masans.util.SqlService.SQLServiceTestPlugin" />
</agent>
Can you help me out or explain what I am doing wrong?
I have tested it attaching the service to the agent and that is working,
but I only want one service per node instead of a service per agent.
BTW this service is derived from the UIDService which I found out is
attached to each agent.
kind regards,
Martijn Broos,
Y'all
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MASANSSociety.xml
Type: text/xml
Size: 3631 bytes
Desc: not available
Url : http://cougaar.org/pipermail/cougaar-developers/attachments/20080218/51675f3f/MASANSSociety.xml
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SQLServiceTestPlugin.java
Type: text/java
Size: 1419 bytes
Desc: not available
Url : http://cougaar.org/pipermail/cougaar-developers/attachments/20080218/51675f3f/SQLServiceTestPlugin.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SqlService.java
Type: text/java
Size: 258 bytes
Desc: not available
Url : http://cougaar.org/pipermail/cougaar-developers/attachments/20080218/51675f3f/SqlService.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SqlServiceComponent.java
Type: text/java
Size: 1487 bytes
Desc: not available
Url : http://cougaar.org/pipermail/cougaar-developers/attachments/20080218/51675f3f/SqlServiceComponent.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SqlServiceImpl.java
Type: text/java
Size: 1536 bytes
Desc: not available
Url : http://cougaar.org/pipermail/cougaar-developers/attachments/20080218/51675f3f/SqlServiceImpl.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: martijn.vcf
Type: text/x-vcard
Size: 271 bytes
Desc: not available
Url : http://cougaar.org/pipermail/cougaar-developers/attachments/20080218/51675f3f/martijn.vcf
More information about the Cougaar-developers
mailing list