I tried to create GUI application with Felix. i downloaded example from
http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Application+Demonstration

It runs very well and its exactly what I need.

But I tried to create my own application with actual version of Felix. I
found out that there are some changes .
For example constructor doesnt have 2 arguments but only 1

here Is old example  from org.apache.felix.example.servicebased.host

<codeexample>
 // Create list to hold custom framework activators.
        List list = new ArrayList();
        // Add activator to process auto-start/install properties.
        list.add(new AutoActivator(configMap));
        // Add our own activator.
        list.add(new Activator());

        try
        {
            // Now create an instance of the framework.
            Felix felix = new Felix(configMap, list);
            felix.start();
        }
        catch (Exception ex)
        {
            System.err.println("Could not create framework: " + ex);
            ex.printStackTrace();
            System.exit(-1);
        }
</codeexample>


In actual version of Felix is only

<codeexamplefromsource>
public Felix(Map configMap)
    {
</codeexamplefromsource>

So what is necessary to change in example code
org.apache.felix.example.servicebased.host ?

Thanks



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to