Datashare not available with ecf.generic.server [message #624988] |
Tue, 29 December 2009 11:28 |
Eclipse User |
|
|
|
Originally posted by: eclipse-ng.tobiasm.de
Hi,
i'm playing around with ECF Datashare to use it in one of our projects.
Based on the sample code i tried this:
IContainerManager containerManager = getContainerManagerService();
//containerType is "ecf.generic.server"
container = containerManager.getContainerFactory().
createContainer(containerType);
channelContainer = (IChannelContainerAdapter)
container.getAdapter(IChannelContainerAdapter.class);
if (channelContainer == null) {
logger.log(Level.SEVERE, "Datashare not supported!");
System.exit(0);
} else {
logChannel = channelContainer.createChannel(getId(LOG_CHANNEL),
logChannelListener, null);
}
Here channelContainer is always null, "Validate Plug-ins" at the
Run-Dialog says everything is ok. I tried -consoleLog and did not see
any errors like missing imported packages and such.
When i change containerType to "ecf.generic.client" it works!?
Any suggestions how i can get it to work with ecf.generic.server?
Thanks
Tobias
|
|
|
Powered by
FUDForum. Page generated in 0.02776 seconds