Flex sample application

compared with
Current by Natalia Zolochevska
on Sep 09, 2008 10:00.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (11)

View page history
Export-Package: org.sevenhats.flexsample.flex.config
{code}
You should expose a flex configuration service (org.sevenhats.flex.FlexConfiguration) to let know flex servlet about service-config.xml location.
{code:xml}
<bean id="flexConfiguration"
class="org.sevenhats.flex.FlexConfigurationBean">
<property name="serviceConfigUrl"
</bean>
{code}

{code:xml}
<osgi:service ref="flexConfiguration"
{code}
The bundle that exposes this service should import packages _org.sevenhats.flex_ and _org.sevenhats.flexsample.flex.config_.

{code}
Import-Package:
...
{code}

File services-config.xml
{code:xml}
</service>
{code}

org.sevenhats.flexsample.api.UserService is service interface at OSGi environment. You can see how we define this service and its implementation below in flexsample-context.xml and flexsample-context-osgi.xml.

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Sample application with Flex
Bundle-SymbolicName: org.sevenhats.flexsample
Bundle-Version: 1.0.0
org.osgi.service.packageadmin;version="1.2.0",
org.osgi.util.tracker;version="1.3.3",
org.sevenhats.bizcommons.api,
org.sevenhats.flex,
org.sevenhats.flexsample.flex.config,
org.sevenhats.jsf.api,
org.sevenhats.jsf.flow,
org.sevenhats.persistence.api,
org.sevenhats.ui.jsf.api,
org.sevenhats.ui.jsf.beans,
org.sevenhats.um.api,
org.sevenhats.util,
org.sevenhats.flexsample.flash,
org.sevenhats.flexsample.web
Require-Bundle: org.sevenhats.flex;version="1.0.0",
org.sevenhats.um.jsf;version="1.0.0"
Eclipse-RegisterBuddy: org.sevenhats.flex
{code}