remoting

Simple Java web services

本小妞迷上赌 提交于 2019-11-30 16:24:08
Does anyone know of a really simple way of publishing Java methods as web services? I don't really want the overhead of using Tomcat or Jetty or any of the other container frameworks. Scenario: I've got a set of Java methods in a service type application that I want to access from other machines on the local LAN. Well, Tomcat or Jetty may be overkill for publishing just some methods as a web service. But on the other hand its not too complicated and they do the job, so why not? I had a similar problem not too long ago and used a Tomcat together with Axis2. Just download Tomcat, unpack it,

Simple Java web services

回眸只為那壹抹淺笑 提交于 2019-11-30 16:08:26
问题 Does anyone know of a really simple way of publishing Java methods as web services? I don't really want the overhead of using Tomcat or Jetty or any of the other container frameworks. Scenario: I've got a set of Java methods in a service type application that I want to access from other machines on the local LAN. 回答1: Well, Tomcat or Jetty may be overkill for publishing just some methods as a web service. But on the other hand its not too complicated and they do the job, so why not? I had a

NHibernate IList to List

房东的猫 提交于 2019-11-30 15:45:17
Hi I am trying to return a collection of building domain. private long _id; private string _buildingName; private IList<BasicRoom> _rooms; I am using NHibernate and this mapping for the rooms <bag name="rooms" table="tb_rooms" lazy="false"> <key column="buildingID"/> <one-to-many class="Room"/> </bag> And I am calling the db like this; Buildings = (List<Building>)session.CreateCriteria(typeof(Building)).AddOrder(Order.Asc("buildingName")).List<Building>(); The problem is I don't want the _rooms collection to be an IList but I need it to be a List. Alas, NHibernate requires that I use an

Mixing MarshalByRefObject and Serializable

那年仲夏 提交于 2019-11-30 14:33:10
Various sources explain that When an object derives form MarshalByRefObject, an object reference will be passed from one application domain to another rather than the object itself. When an object is marked with [Serializable], the object will be automatically serialized, transported from one application domain to another and then deserialized to produce an exact copy of the object in the second application domain. Note then that while MarshalByRefObject passes a reference, [Serializable] causes the object to be copied. [source] I'm designing my first app that uses AppDomains and I'm wondering

“Dead Letters encountered” error while running AKKA remote actors

陌路散爱 提交于 2019-11-30 14:09:14
问题 I am trying to run remote actors using AKKA, on my localhost, but each time I get this error. It says dead letters encountered. I searched on internet and found out that this error comes when actors receive a message after its thread is stopped. So I am looking for a way to keep the actors alive on remote machines. I am using akka actors and not the scala actors. [INFO] [09/16/2013 18:44:51.426] [run-main] [Remoting] Starting remoting [INFO] [09/16/2013 18:44:51.688] [run-main] [Remoting]

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

别等时光非礼了梦想. 提交于 2019-11-30 13:41:50
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 liked that COM wrapper anyway. But I encountered my old nemesis of .NET remoting -- the inability to

PowerShell Remoting giving “Access is Denied” error

↘锁芯ラ 提交于 2019-11-30 13:10:11
问题 I am trying to use PowerShell Remoting to check some disk sizes from a Server in a remote domain, but the commands I am running are failing to work. The situation is like this: Source Server is in Domain A Destination Server is in Domain B There is no trust in place between these domains The Server in Domain B is running Exchange 2010, and I can run Exchange 2010 Specific commands against it from Server A using this command: $Session = New-PSSession -ConfigurationName Microsoft.Exchange

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

笑着哭i 提交于 2019-11-30 11:44:25
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 AppDomain instance.TheEvent += this.Handler ; ...it compiles fine but fails at runtime with: System.Runtime

How to pass an unknown type between two .NET AppDomains?

早过忘川 提交于 2019-11-30 10:06:05
I have a .NET application in which assemblies in separate AppDomains must share serialized objects that are passed by value. Both assemblies reference a shared assembly that defines the base class for the server class and also defines the base class for the entiy type that will be passed between domains: public abstract class ServerBase : MarshalByRefObject { public abstract EntityBase GetEntity(); } [Serializable] public abstract class EntityBase { } The server assembly defines the server class and a concrete implemetation of the entity type: public class Server : ServerBase { public override

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

自作多情 提交于 2019-11-30 08:51:37
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't managed to make it work with WCF and were wondering if it is possible? EDIT: Sorry for my lack of