Hi
String alias="test";woops, that should've been
int nr1 = cloud.getNodeByAlias(alias).getNumber();
int nr2 = cloud.getNodeManager("oalias").getList("name='"+ alias +"'","","").getNode(0).getNumber();
int nr2 = cloud.getNodeManager("oalias").getList("name='"+ alias +"'","","").getNode(0).getIntValue("destination");
as it was in my test.
and I should ofcourse add that I recently swapped the names of 2 aliases,
for example I renamed "test" to "test-old" and "test-new" to "test" using jsp.
nevertheless, getNodeByAlias returns the old node .. (until I restart mmbase)
cu
*pike
=========
Help stop world hunger -- visit
<http://www.thehungersite.org>
Is The Hunger Site real?
<http://www.umich.edu/~virus-busters/hunger.html>
