Hi all,
I want to distribute components with Remoting infrastructure. My
components use Automatic Transaction Management facility associated
with Nhibernate facility. Here a small example :
Code:
[Transactional]
public class MyService : MarshalByRefObject, IMyService
{
private IMyRepository _myRepository;
public MyService(
IMyRepository myRepository)
{
_myRepository = myRepository;
}
[Transaction]
public void Save(...)
{
_myRepository.Save(...);
}
[Transaction]
public IList<MyEntity> FindAll()
{
return _myRepository.FindAll();
}
...
}
Here the config node for the facility (Server-side) :
Code:
<facility
id="remote.facility"
type="Castle.Facilities.Remoting.RemotingFacility,
Castle.MicroKernel"
remotingConfigurationFile="..\Config
\RemotingTcpConfig.config"
isServer="true"
registryUri="kernel.rem" />
On the client-side, I want to access my distributed component (and
have of course the Automatic Transaction interceptor working on the
server-side). I know I can achieve this by using a client container,
that connects to a distributed registry to retrieve remote components.
In my case, I don't want to use a client IoC container (For many
reason I could explain if necessary).
My question : what is the code needed to retrieve remote component,
without having to use a client container ?
Thanks a lot,
Nicolas
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---