Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [kura-dev] How to use the new "multiple clouds" API

Hi Benjamin,

Formal documentation is coming, but see below for the highlights. The first release of this feature is obviously not very user friendly. The coming releases of Kura will have the ability to add new “stacks” from the UI. So, stay tuned.

* To create a new stack, login to the OSGi console and enter the command:

kura.cloud:createConfiguration org.eclipse.kura.cloud.CloudService-2

This will create a second instance of the CloudService, DataService, and MqttTransport. If you refresh your web UI, you will see the new tabs for configuring your new connection.

* With multiple stacks, your application will need to specify the correct instance. To do this, add the below to your XML component definition:

target="(kura.service.pid=org.eclipse.kura.cloud.CloudService-2)”

That should be it. If you have any issues, let me know.

Thanks,
--Dave

On Jun 23, 2016, at 09:52, Benjamin Cabé <benjamin@xxxxxxxxxxx> wrote:

Hi,

Are there available examples on how to practically use the new CloudServiceFactory? I couldn't see anywhere where the (Default)CloudServiceFactory is actually used today, so I am wondering what is the suggested way of registering new "stacks"? 
Also, does the UI already support the ability to edit the configuration of the different Cloud/Data/Transport service instances?

Thanks!
Benjamin
_______________________________________________
kura-dev mailing list
kura-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kura-dev


Back to the top