On 5/26/09 4:24 PM, peter.doornbosch wrote:
Hi Richard,

On 26 May , 2009, at 16:39 , Richard S. Hall wrote:

I will try to update these examples today or tomorrow. Thanks for reporting the issue. In the meantime, checkout:

http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html

This explains the new framework API.

Yeah, but it is a bit confusing that it starts with the warning that it is based on Felix 1.4. I embedded felix 1.6 a few weeks ago and noticed some discrepancies, but i see now that these are all fixed, so i guess it should mention that it is based on 1.6 ;-)

Well, the change occurred in Felix 1.4.0 and remains backwards compatible through the current release, so there was no reason to update the documentation. However, I can add a note to make it more clear.

-> richard


Regards,
Peter




-> richard

On 5/26/09 3:47 AM, Matej Pončák wrote:
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]



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



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


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

Reply via email to