Unless I'm mistaken, you will have to use 2 .config files (and 2 dracocli.exe if you want to do things simultaneously).
But it's a nice feature request.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: donderdag 11 maart 2004 12:09
To: [EMAIL PROTECTED]
Subject: [Draconet-users] How do I use dracocli with more than one server?
Hi,
We now have Draco running on separate servers for separate projects. How do
I configure dracocli to access each server?
The draco.remoting.config contains:
<configuration>
<system.runtime.remoting>
<application>
<client>
<wellknown
type="Chive.Draco.Remote.IDracoRemote, Draco.Remote"
url="" />
<wellknown
type="Chive.Draco.Remote.IDracoRemote, Draco.Remote"
url="" />
</client>
<channels>
<channel ref="tcp" port="0" />
</channels>
</application>
</system.runtime.remoting>
</configuration>
Both servers have remoting set as:
<!-- Configures Draco remoting -->
<system.runtime.remoting>
<application>
<service>
<!--
The server-activated, singleton remote object
-->
<wellknown mode="Singleton"
objectUri="Draco"
type="Chive.Draco.DracoRemote, Draco" />
</service>
<!--
Register a tcp channel listening on port 8086
-->
<channels>
<channel ref="tcp" port="8086" />
</channels>
</application>
</system.runtime.remoting>
<draco xmlns="http://www.chive.com/draco">
When I run dracocli I get:
Z:\>dracocli /status:GLORIA
Encountered unhandled exception: System.Runtime.Remoting
ting configuration failed with the exception System.Runt
eption: Attempt to redirect activation of type 'Chive.Dr
Draco.Remote' which is already redirected.
at System.Runtime.Remoting.RemotingConfigInfo.AddWell
nClientTypeEntry entry)
at System.Runtime.Remoting.RemotingConfiguration.Regi
WellKnownClientTypeEntry entry)
at System.Runtime.Remoting.RemotingConfigInfo.StoreRe
mlConfigFileData configData)
at System.Runtime.Remoting.RemotingConfigHandler.Conf
lConfigFileData configData).
at System.Runtime.Remoting.RemotingConfigHandler.Conf
lConfigFileData configData)
at System.Runtime.Remoting.RemotingConfiguration.Conf
at Chive.Draco.Cli.DracoRemoteClient..ctor(String con
at Chive.Draco.Cli.DracoRemoteClient..ctor()
at Chive.Draco.Cli.Commandline.Main(String[] args)
What am I doing wrong?
Regards,
David Taylor
Extension: 4496
Email: [EMAIL PROTECTED]
Mobile: +44 7966 490138
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Draconet-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/draconet-users