Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 162670 - ECF generic server/client sample container implementations cannot run without OSGi
Summary: ECF generic server/client sample container implementations cannot run without...
Status: RESOLVED FIXED
Alias: None
Product: ECF
Classification: RT
Component: ecf.core (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: ecf.core-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-28 10:11 EDT by Remy Suen CLA
Modified: 2006-10-31 01:00 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Remy Suen CLA 2006-10-28 10:11:39 EDT
The ClientApplication and ServerApplication classes within the org.eclipse.ecf.provider.app package in the org.eclipse.ecf.provider both has main methods for a user to try running a ECF generic server or client. Both of them could originally be run without the OSGi framework, but this is no longer possible. This is because IDFactory and ContainerFactory now requires initialization work via the bundle activator classes, so they naturally fail (as the static instance retrieved is null).
Comment 1 Scott Lewis CLA 2006-10-31 01:00:44 EST
Fixed with checkin on 10/20/2006.  Now, the IDFactory and ContainerFactory both have a system property that they check:

org.eclipse.ecf.core.identity.IDFactory.standalone

and

org.eclipse.ecf.core.ContainerFactory.standalone

respectively.  If this property is set to "true", then the extension point based setup for IDFactory and ContainerFactory are *skipped*, and the factories are assumed to be running standalone (i.e. for java applications).  This means that it is then the responsibility of the application to see that the factories are
populated with Namespace and ContainerTypeDescriptions as appropriate prior to
calling one of the createID or createContainer methods (respectively).  See the javadocs for the org.eclipse.ecf.core.identity.IDFactory and org.eclipse.ecf.core.ContainerFactory classes for more details.