Hi, I'm trying to setup remoting for castle container for exposing a
single component to normal remoting clients. The problem is that when
the component is accessed from remote client, it looks like it's a
different instance than the component configured locally.

Take a look at the config:

<component id="Environment" type="NGinnBPM.Runtime.NGEnvironment,
NGinnBPM"
                 service="NGinnBPM.Lib.Interfaces.INGEnvironment,
NGinnBPM.Lib"
                 remoteserver="singleton"  uri="ngenvironment"
lifestyle="singleton">
        <parameters>
          <PackageRepository>${PackageRepository}</PackageRepository>
          <TaskInstanceFactory>${TaskInstanceFactory}</
TaskInstanceFactory>
          <TaskInstanceRepository>${TaskInstanceRepository}</
TaskInstanceRepository>
          <InternalNGinnBus>${MessageBus}</InternalNGinnBus>
          <ProcessInstanceLockManager>${LockManager}</
ProcessInstanceLockManager>
          <ScriptManager>${ScriptManager}</ScriptManager>
        </parameters>
      </component>

If the component is referenced locally by other components, it has all
the properties set properly according to this config. But when
accessed remotely, all these values are null. It appears that there
are two different instances of NGEnvironment - one for local access
and the other one for remoting (i verified it with debugger). But only
one instance is initialized properly. Apart from that, it should be a
singleton, not a doubleton. What's going on?

Ps remoting configuration is OK, client is able to invoke a method.
server facility config:
<facility
        id="remote.facility"
        type="Castle.Facilities.Remoting.RemotingFacility,
Castle.MicroKernel"
        isServer="true"
        remotingConfigurationFile="Remoting.config"
registryUri="registry.rem" />

Best regards,
RG





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to