event framework question
Andreas Unterkircher <[email protected]>
| Newsgroups | gmane.comp.java.smartfrog.user |
|---|---|
| Message-ID | <[email protected]> |
I have two components get deployed on 2 different machines. On component
is supposed to send a message to the other.
Now I start sfDaemon on host1.cern.ch and host2.cern.ch (these are
not the real hostnames... I changed them for privacy) First
I deploy the receive component on host host1.cern.ch. In sfParse this
component looks as follows:
sfCodeBase "default";
sfClass "org.smartfrog.sfcore.compound.CompoundImpl";
start extends {
sfCodeBase "default";
sfClass "ch.cern.openlab.smartfrog.pbs.PBSserverStart";
sendTo extends LAZY ;
registerWith extends LAZY ;
verbose true;
}
I deploy this component with "sfStart host1.cern.ch receive
pbsServerStart.sf" and it works fine. The second component looks as
follows:
sfCodeBase "default";
sfClass "org.smartfrog.sfcore.compound.CompoundImpl";
send extends {
sfCodeBase "default";
sfClass "ch.cern.openlab.smartfrog.pbs.PBSnodeStart";
sendTo extends LAZY {
foo LAZY HOST host1.cern.ch:start;
}
registerWith extends LAZY ;
}
When I deploy this component on host2.cern.ch with "sfStart
host2.cern.ch send test.sf" I get
SmartFrog 3.04.004_beta
(C) Copyright 1998-2004 Hewlett-Packard Development Company, LP
- FAILED when trying DEPLOY of 'send', [test.sf],
host:host2.cern.ch
Error:
SmartFrogLifecycleException:: sfDeploy: HOST
host2.cern.ch:rootProcess:send:send
cause: SmartFrogResolutionException:: java.net.UnknownHostException:
host1.cern.ch:start
source: HOST host2.cern.ch:rootProcess:send:send
path(45)
data: Failed object class: ch.cern.openlab.smartfrog.pbs.PBSnodeStart
Command line SFACT: 'send:DEPLOY:test.sf::host2.cern.ch:'
To String: ' name:send, type:DEPLOY, url:test.sf,
host:host2.cern.ch, resultType:FAILED,
resultExceptionMessage:sfDeploy: HOST
host2.cern.ch:rootProcess:send:send'
It seems to me that the line
sendTo extends LAZY {
foo LAZY HOST host1.cern.ch:start;
}
gives not the right reference ... (on host2.cern.ch "ping host1.cern.ch"
works). What could be the reason for my problem ?
Thanks a lot,
Andreas
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php