remoting

Generating ActionScript value objects from middle-tier Java classes

◇◆丶佛笑我妖孽 提交于 2019-12-11 04:18:46
问题 In a Flex / Java app stack using remoting (via BlazeDS), classes to hold data passed back and forth between client and server need to be maintained in both the client (in ActionScript) and server (in Java). I want a way to maintain theses classes in Java only, and have the corresponding ActionScript value object classes generated by the build process. 回答1: Check out the AS3 generator from the Granite Data Services project: http://www.graniteds.org If I recall correctly it's an Eclipse plugin

Load Assembly into a new app domain but not CurrentDomain

天大地大妈咪最大 提交于 2019-12-11 04:08:07
问题 So my problem revolves around saving memory. In essence I need to load an assembly in to a separate app domain other than the main/current domain, check for types within that assembly, and then unload the new domain when done. Currently my solution is as follows: AppDomain NewDomain = AppDomain.CreateDomain("newdomain"); foreach(string path in dllPaths) //string list of dll paths { byte[] dllBytes = File.ReadAllBytes(dll); NewDomain.Load(dllBytes); //offending line } DoStuffWithNewDomain();

Passing collection objects back and forth between appdomains

删除回忆录丶 提交于 2019-12-11 03:55:41
问题 The following sample is based on "Passing values back and forth appdomains", where Marc Gravell kindly provided a very good answer to a question about .Net remoting between appdomains. What I've done is extended it in a (very naive?) expectation that it should also work for an array of strings. The problem is that it only works one way - the created appdomain can access the array, but only readonly. What I'd like is to get the updated array elements back in the original appdomain too. I'd

(How) Can Terminal Services / Remote Desktop be used to share an Access Database?

大憨熊 提交于 2019-12-11 03:50:01
问题 The only type of 'remote desktop' application I've used previously is VNC viewer. My understanding of this kind of application is that when multiple users log in to the same VNC server, they share the keyboard, mouse and desktop, so only one person can actually use the computer, whilst the other users can watch what is happening. This obviously has its own uses. What I want to do is have an MS Access application available on a remote server. I want 2 or 3 users to be able to simultaneously

Stop Process on Network Machine with .Net

旧时模样 提交于 2019-12-11 01:45:36
问题 In my project, I am going to do that : There is a server in restaurant, and some pos machines which are running on Windows XP called Radiant systems. There will be a .exe on server, and this .exe will stop running some process on Radiant Poses. It is possible with .Net Remoting. But it requires to write an .exe on the Radiant Poses, but I dont want to do that. Think there is no problem on network access on Main Server in restaurant and Radiant Poses in restaurant. Is it possible to do that

COM+ invoking method in remote instance Unknown name error

邮差的信 提交于 2019-12-11 01:39:20
问题 I have a COM dll which I was using in my .net project through interop referance. Now I got a requirement to move this COM component to another remote machine and create instance there.(kind of out of machine similar to out of process, probably this is remoting, i don't know :-)) What I have done was created a new COM+ applciation in server machine. Added this component inside this app. This is how it is listed in COM+ interface on server. Exported this app as proxy insatller and installed in

How to preserve object identity across different VMs

僤鯓⒐⒋嵵緔 提交于 2019-12-10 18:05:15
问题 To be specific let me illustrate the question with Spring http-remoting example. Suppose we have such implementation of a simple interface: public SearchServiceImpl implements SearchService { public SearchJdo processSearch(SearchJdo search) { search.name = "a funky name"; return search; } } SearchJdo is itself a simple POJO. Now when we call the method from a client through http-remoting (Spring's mechanism of calling remote objects much like EJB that uses serialization) we'll get: public

Implementation of C# XMLRPC.NET client and server over HTTPS

眉间皱痕 提交于 2019-12-10 13:14:06
问题 It's pretty hard to find information about XMLRPC.net library used with https. The only documentation where an "https" URL can be set is here : http://xml-rpc.net/faq/xmlrpcnetfaq-2-5-0.html#2.3 but yet it does not explain exactly how can one setup correctly. Experimenting on the base of samples provided in the downloads http://xmlrpcnet.googlecode.com/files/xml-rpc.net.2.5.0.zip I tried this : Changes in the client.cs file of StateNameServer solution : IStateName svr = (IStateName)Activator

Modify settings after calling RemoteConfiguration.Configure(configFile)?

让人想犯罪 __ 提交于 2019-12-10 11:49:23
问题 My application calls RemotingConfiguration.Configure() to set up .NET Remoting. But since I need the portName attribute of the channels element to be different each time the application is run, I have to configure this particular setting programatically. It sounds very simple (and probably is - but I've been searching Google all day for an answer). So far I have: RemotingConfiguration.Configure(Program.ConfigFilePath, false); IChannel[] regChans = ChannelServices.RegisteredChannels;

Migrate serialized objects to new version

允我心安 提交于 2019-12-10 10:44:32
问题 I would like to migrate me previously serialized objects in database to new schema. My previous object. Public interface MyReport { string Id { get; set;} string Name { get; set;} Dictionary<string, string> PropColl { get; set;} } But for some reasons we had to make interface changes Public interface IMarkme { } Public interface MyReport<T> where T : Imarkme { string Id { get; set;} string Name { get; set;} T ExtendedProp { get; set;} } Public NewProp : Imarkme { /// some code here } So as