[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ecf-dev] Service setup for integration testing remote service
- From: Markus Alexander Kuppe <ecf-dev_eclipse.org@xxxxxxxxxxx>
- Date: Fri, 27 Jun 2014 22:02:14 +0200
- Delivered-to: email@example.com
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
On 26.06.2014 15:36, Peter Hermsdorf wrote:
> 1) is there anything that can be done to get the service
> discovered/distributed via ECF even run in the same VM?
have a look at BasicTopologyManagerImpl.allowLoopbackReference . On
the consumer side you can filter the services to only accept an instance
if it has the remote services properties. Also keep in mind that some
discovery providers are clever and ignore loop messages. You best bet is
to use EDEF.
A different approach is to use a nested OSGi framework or two isolated
OSGi subsystems. You still have to deal with port conflicts among the
ECF distribution providers.
Third, if you only want to really verify/test serialization, why not
simply serialize dummy instance of each class as part of unit tests? No
need to send anything across the wire just for that.