remoting

Are all Serializable classes valid for WCF methods parameters and/or Data Contract members?

I am in the process of porting some .net remoting code to WCF. Can I safely assume that all classes that are Serializable and works as .remoting method parameters will work with WCF using the binary message encode? If not is there a “rule of thumb” that I can use to estimate what problems I will hit? ...

.Net Remoting - Serialisation of Delegates

I have written a custom remoting formatter sink for an established application. The formatter appears to work for most cases until I try to use it to call a remote method to which I pass a call-back to a CAO. At this point I get a SerializationException indicating that I am trying to serialise the CAO, which is obviously not what I want ...

Question regarding executing context for a Windows Service

Hi, I have written a windows service in c# that essentially listens for commands on a specific port and in most cases will create a new Process class and shell execute said task. I primarily want to use it to launch media. Eg, i have a media file called c:\media.avi -> from a remote client i send "-launch c:\media.avi" and the server la...

Deserialize AmfPhp messages

Is it possible to deserialize the AmfPhp messages while remoting? They are in binary, and assuming that amfphp understands what they are I should be able to decode what it s. How to ? is this considered a security issue? ...

AS3: What's newer/better than AMFPHP

I'm aware that AMFPHP has long been used to connect php with flex. I remember I read somewhere that there's something better now, but I didn't take a note of it, and of course now I forgot. Does anyone know what that could be? ...

What is the best way to transmit Java objects over a network

I am trying to transmit objects of a particular class from one server to another. The options I'm looking at are: Serialize the data as JSON and send it over the wire using HTTP, and de-serialize at the other end. Serialize the data into some binary form and transmit using TCP sockets. What are the best practices in this area? Wha...

Presentation layer communication with business service layer

I have an existing enterprise Java application with several layers including a web services facade over a Java services layer over a domain layer over a data access layer. The system currently has not GUI. The clients of this system currently are (simply) other composite web services based applications. I am somewhat new to the whole ...

How do I find a .NET remoting memory leak on select machines?

The memory leak is not happening on every machine, but reliably on a couple at my work, and it's looking like close to 10% in the field. I have a product that uses a Windows service to monitor user input to launch alerts, paired with a visual application that serves only to sit in the system tray, and allow the user to make configuratio...

Remotely pass messages to c# console app

I need to be able to send a string message and receive a string response from a console app running within our organization. I want to pass simple strings back and forth from a remote IP address. What's the best way to do this? My first thought is to listen on a socket, but that seems like overkill. I've looked a little into becoming a W...

ASP.NET sessions and custom authentication

I'm building a web site that will acts as a client to a persistant server process. ASP.NET will communicate with the server using .NET Remoting. The server is used by other clients as well (thick WPF clients and automated processes) and already has methods for password based authentication, authorization and sessions. The way I intend to...

.NET Remoting Singleton memory leak, TCP, Marshal by Reference

I am using the simplest example of remoting that I could find, sharing an object between a windows service and a windows forms program (client), running on the same machine. The service instantiates the object like this: serviceConfigRemote = new serviceConfigDataRemote(); serverChannel = new TcpServerChannel(9090); ChannelServices.Reg...

JMX confuse(remote server control)

Hi. I have a couple of Tomcat and Glassfish servers. And i want to manage them over JMX. "Use JConsole" - you could say, but this is wrong way because i'm writing Hudson plugin. I need starting point. I need something like JConsole to integrate in my app and then invoke it when needed or... i just want to manage my app remotely via JMX...

.Net Remoting: Wrap user objects vs more remoting channels

I'm learning about remoting by doing small remoting-based projects and also trying to enforce Good Practices while doing so to avoid my usual habit of developing Bad Habits. There is a service that makes use of user-created plugins. Each plugin is isolated in its own appdomain. Additionally, there is a client application that connects...

.NET: Channel and sinks between unrelated appdomains

I am of the understanding that when a new appdomain is created, the framework creates channels and sinks implicitly. If it didn't, you couldn't create an object in one appdomain and make use of a proxy in the other. (This is an understanding; please correct me if I am wrong.) Additionally, if an object is marshaled for remoting purpos...

Can I place Remoting configuration in web.config?

I have an ASP.Net web application, which interacts with .Net Remoting application server. As part of this is it possible to place Remoting Client Configuration in Web.config file? If so, how it can be done? ...

Checking for presence of .NET remoting server - is my approach correct?

It's not possible to set a connection timeout on a .NET remoting call. Documentation occasionally refers to TcpChannel properties that allegedly do this, but discussions and the most recent docs I've found indicate that this is not possible. One may set a timeout on the remoting call itself, but not on the initial connection attempt. ...

.NET WCF ServiceHost - startup arguments

I am creating a remotable object using WCF. This is a snipped of how I create the remotable object ... ServiceHost service_host = new ServiceHost(typeof(MyObject), new Uri[] { new Uri("net.pipe://localhost") }); service_host.AddServiceEndpoint(typeof(IMyServer), new NetNamedPipeBinding(), "MyServer"); service_host.Open(); return service...

circumventing WCF with direct calls to a DLL in a single user environment

I am helping a company with a software package that will flexibly support multiple deployment scenarios. The package is written with .NET, has a well defined BLL, and utilizes SQL Server for the database. The design calls for a clear delineation between data access and services (BLL) and UI. There are at least two UI front ends at thi...

Impersonating a Remote object

I have a web application in which web server acts as a remoting client. Here I am creating CAOs using SAO. I want to impersonate the client who logs into the web application on Remoting Server. While I am able to impersonate the client objects created by SAO object factory, but using these objects method calls are not getting impersonate...

How to provide a StreamingContext to the BinaryFormatter when using .NET remoting

I am trying to provide the StreamingContext to the client-side formatter when using .NET remoting. I have set up remoting using the config file, e.g. . Is there a way to provide the Context property for the formatter in the configuration file? ...