remoting

RMI vs. Web Services. What's best for Java2Java remoting?

十年热恋 提交于 2019-11-29 19:26:02
I'm new to both Web Services and RMI and I wonder which is the better way to do remoting between different web applications, when these applications are all written in Java, that is when different programming languages don't matter (which would be the advantage of WS). While on the one hand I would guess that there's a performance overhead when using web services (does anyone have some numbers to prove that?), on the other hand it seems to me that web services are much more loosely coupled and can be used to implement a more service-oriented architecture (SOA) (which isn't possible with RMI,

How to access CORBA interface without IDL or late-bound invoke remoting methods

放肆的年华 提交于 2019-11-29 18:45:11
问题 We have been using an SAP "COM License Bridge" to access their license server and query the hardware key of a system programatically (to reuse with out own licensing). This worked fine on SAP Business one Versions 2007A, 2007B and 8.8, but in 8.81 they seem to have updated their CORBA interface without updating the COM wrapper because we now get memory exceptions when attempting to call the GetHardwareKey function. So I downloaded IIOP.NET and started trying to write my own interface. I never

How can I subscribe to an event across AppDomains (object.Event += handler;)

浪子不回头ぞ 提交于 2019-11-29 17:27:57
问题 I'm having the problem described in this message board post. I have an object that is hosted in its own AppDomain. public class MyObject : MarshalByRefObject { public event EventHandler TheEvent; ... ... } I'd like to add a handler to that event. The handler will run in a different AppDomain. My understanding is this is all good, events get delivered across that boundary magically, with .NET Remoting. But, when I do this: // instance is an instance of an object that runs in a separate

Remoting or WCF for new development (between two .NET apps on the same machine) using interfaces?

99封情书 提交于 2019-11-29 13:38:17
问题 We want to have two .NET apps running on the same machine communicate with each other. We want three projects. A library containing interfaces. A "server" app that implements the interfaces and "client" app that communicates with the server using the interfaces. We do not want the client to reference the server. We have a test app that does this with remoting but recently discovered that remoting is being replaced with WCF. Since this is new development we feel we should use WCF but we haven

How to exclude nonserializable observers from a [Serializable] INotifyPropertyChanged implementor?

你。 提交于 2019-11-29 13:23:30
问题 I have almost a hundred of entity classes looking like that: [Serializable] public class SampleEntity : INotifyPropertyChanged { private string name; public string Name { get { return this.name; } set { this.name = value; FirePropertyChanged("Name"); } } [field:NonSerialized] public event PropertyChangedEventHandler PropertyChanged; private void FirePropertyChanged(string propertyName) { if (this.PropertyChanged != null) this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));

What Windows Class to use when I want to start a process remotely

风流意气都作罢 提交于 2019-11-29 13:04:54
I want to use c# and WMI to start a process remotely in another computer. I've made some initial research and found out that i ultimately have to use a processclass. The "Win32_Process" was the first thing that seemed obvious to be used, however, it seems it is limited to represent only local processes. What other Windows process classes can I use? Here is what the code when using Win32_ScheduledJob class: static public String RemoteConnect() { try { ConnectionOptions conn = new ConnectionOptions(); conn.Username = @"JV"; conn.Password = @"Nazpal6180"; conn.EnablePrivileges = true; conn

C# Remoting - How to turn off CustomErrors

為{幸葍}努か 提交于 2019-11-29 10:43:15
问题 I getting the following error when I try to connect to my server app using remoting: A problem seems to have occured whilst connecting to the remote server: Server encountered an internal error. For more information, turn off customErrors in the server's .config file. This is the code on my server app: TcpChannel tcpChannel = new TcpChannel(999); MyRemoteObject remObj = new MyRemoteObject (this); RemotingServices.Marshal(remObj, "MyUri"); ChannelServices.RegisterChannel(tcpChannel); It seems

How to start remotely process in PowerShell

前提是你 提交于 2019-11-29 10:21:21
I have a problem, I have a script which: Connect with PSSession (I use PSSession with admin account) Stop 2 process Do change on them files Start the 2 process (Problem here) I want to start process on server, so i'm connect with PSSession (No problem) I do Invoke-Command : # $pathProg path to my program Invoke-Command -session $mySession -command {Start-Process $($args[0])} -ArgumentList $pathProg But it does nothing (I verify with VNC) I do Invoke-Command too : # $pathProg path to my program Invoke-Command -session $mySession -command {&$($args[0])} -ArgumentList $pathProg It lauch the

How do I pass references as method parameters across AppDomains?

痞子三分冷 提交于 2019-11-29 10:07:19
I have been trying to get the following code to work(everything is defined in the same assembly) : namespace SomeApp{ public class A : MarshalByRefObject { public byte[] GetSomeData() { // } } public class B : MarshalByRefObject { private A remoteObj; public void SetA(A remoteObj) { this.remoteObj = remoteObj; } } public class C { A someA = new A(); public void Init() { AppDomain domain = AppDomain.CreateDomain("ChildDomain"); string currentAssemblyPath = Assembly.GetExecutingAssembly().Location; B remoteB = domain.domain.CreateInstanceFromAndUnwrap(currentAssemblyPath,"SomeApp.B") as B;

Double hop access to copy files without CredSSP

五迷三道 提交于 2019-11-29 07:07:50
hello, We have large environment with hundreds of virtual machines. During our services deployment we need to copy some files from build drop to all these machines. So, we have: User machine, where deployment scripts executing Build drop machine, where files are Target machine Powershell is used as script language. Something like: $buildDrop = "\\sourceMachine\Build" $machineTarget = "targetMachine" Invoke-Command -ComputerName $machineTarget -ArgumentList $buildDrop -ScriptBlock { Param( $buildDrop ) Test-Path $buildDrop # Will return False } This approach leads to double hop issue , which I