wisdom-framework / wisdom

A modular and dynamic web framework
http://wisdom-framework.org
Apache License 2.0
88 stars 42 forks source link

Integrate Wisdom Framework in another OSGi runtime #253

Closed dadg closed 10 years ago

dadg commented 10 years ago

Hi,

I have a small question: I try to integrate Wisdom in another OSGi runtime container. Basically, it's a Felix runtime with some inhouse features so I don't use Chameleon.

I install all the Wisdom bundles and the dependencies. Everything fine, except for the bundle org.wisdom-framework:application-configuration. This bundle require org.ow2.chameleon.core.services package.

AFAIS, this package is exposed by chameleon-core which is not a bundle so I cannot install it in my OSGi container.

I know this is not how Wisdom is working, but do you have some advice to make it works ? My first idea was to create a bundle from chameleon core, but you may have more cleaner solution ?

WBR // David

cescoffier commented 10 years ago

Unfortunately no. We don't have a better way of doing it. You can export chameleon-core content in a bundle, but I've never tried.

dadg commented 10 years ago

Hi,

Thanks for your answer Clement. So I manage to make it work by exporting chameleon core in a bundle and setup the org.ow2.chameleon.core.activators.DirectoryMonitor to activate the Watcher service needed by Wisdom. Not a big deal: 20 line of code and AFAIS it's working fine.

WBR // David

cescoffier commented 10 years ago

Great news !

Did you get the watch mode working ? I may work using the -DwisdomDirectory=... parameter.

dadg commented 10 years ago

No, I use the classic <packaging>wisdom</packaging> for all my modules. Watch mode is so great: it's is pretty much exactly what I never knew I always wanted :+1:

Only my final packaging/assembly is made without Wisdom with my own container.

BTW: is it ok to ask questions here in GH issues, or it's better to use the Google Group ?

WBR // David

cescoffier commented 10 years ago

The google group is probably better as other people can follow the discussion and may answer or comment before me.