Hi everyboby !
I want to use the publisher/subscriber principe using remote objects. So i used
this project
(http://people.apache.org/~clement/ipojo/tutorials/dosgi/dosgi-tutorial.zip) and
try to make it works.
Every thing's ok !
then, from sources, i get the test projet
.\trunk\ipojo\tests\handler\eventadmin\ and try to make it works too.
Every thing's ok !
Now, when i merge both, no web service are created... Components are well
started but it seams that ev:publisher is not handle. Here the metadata for the
provider :
<?xml version="1.0" encoding="UTF-8"?>
<ipojo
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="org.apache.felix.ipojo
http://felix.apache.org/ipojo/schemas/SNAPSHOT/core.xsd"
xmlns="org.apache.felix.ipojo"
xmlns:ev="org.apache.felix.ipojo.handlers.event">
<!-- The (asynchronous) donut provider -->
<component
classname="fr.eventadmin.test.provider.DonutProviderImpl"
name="donut-provider" >
<!-- Expose the donut provider service -->
<provides
specifications="fr.eventadmin.test.remote.DonutProvider">
<property
name="name"
field="m_name"
value="Unknown donut vendor" />
</provides>
<!-- Donut publisher -->
<ev:publisher
name="donut-publisher"
field="m_publisher"
topics="food/donuts"
data-key="food"
synchronous="false" />
</component>
<!-- The (asynchronous) donut provider using publishes -->
<component
classname="fr.eventadmin.test.provider.DonutProviderImpl"
name="donut-provider-publishes">
<!-- Expose the donut provider service -->
<provides
specifications="fr.eventadmin.test.remote.DonutProvider">
<property
name="name"
field="m_name"
value="Unknown donut vendor" />
</provides>
<!-- Donut publisher -->
<ev:publishes
name="donut-publisher"
field="m_publisher"
topics="food/donuts"
dataKey="food"
synchronous="false" />
</component>
<!-- The synchronous donut provider -->
<component
classname="fr.eventadmin.test.provider.DonutProviderImpl"
name="synchronous-donut-provider">
<!-- Expose the donut provider service -->
<provides
specifications="fr.eventadmin.test.remote.DonutProvider">
<property
name="name"
field="m_name"
value="Unknown donut vendor" />
</provides>
<!-- Donut publisher -->
<ev:publisher
name="donut-publisher"
field="m_publisher"
topics="food/donuts"
data-key="food"
synchronous="true" />
</component>
<!-- The synchronous donut provider using dataKey -->
<component
classname="fr.eventadmin.test.provider.DonutProviderImpl"
name="synchronous-donut-provider-2">
<!-- Expose the donut provider service -->
<provides
specifications="fr.eventadmin.test.remote.DonutProvider">
<property
name="name"
field="m_name"
value="Unknown donut vendor" />
</provides>
<!-- Donut publisher -->
<ev:publisher
name="donut-publisher"
field="m_publisher"
topics="food/donuts"
dataKey="food"
synchronous="true" />
</component>
<!-- The (asynchronous) donut event provider -->
<component
classname="fr.eventadmin.test.provider.DonutEventProviderImpl"
name="donut-event-provider">
<!-- Expose the donut provider service -->
<provides
specifications="fr.eventadmin.test.remote.DonutProvider">
<property
name="name"
field="m_name"
value="Unknown donut vendor" />
</provides>
<!-- Raw events publisher -->
<ev:publisher
name="event-publisher"
field="m_publisher"
topics="food/donuts"
synchronous="false" />
</component>
<!-- The synchronous donut event provider -->
<component
classname="fr.eventadmin.test.provider.DonutEventProviderImpl"
name="synchronous-donut-event-provider">
<!-- Expose the donut provider service -->
<provides
specifications="fr.eventadmin.test.remote.DonutProvider">
<property
name="name"
field="m_name"
value="Unknown donut vendor" />
</provides>
<!-- Raw events publisher -->
<ev:publisher
name="event-publisher"
field="m_publisher"
topics="food/donuts"
synchronous="true" />
</component>
<!-- The (asynchronous) event provider -->
<component
classname="fr.eventadmin.test.provider.AsyncEventProviderImpl"
name="event-provider">
<!-- Expose the donut provider service -->
<provides
specifications="fr.eventadmin.test.remote.DonutProvider">
<property
name="name"
field="m_name"
value="Unknown donut vendor" />
</provides>
<!-- Direcly interacts with the Event Admin service -->
<requires
field="m_ea" />
</component>
<!-- The synchronous event provider -->
<component
classname="fr.eventadmin.test.provider.SyncEventProviderImpl"
name="synchronous-event-provider">
<!-- Expose the donut provider service -->
<provides
specifications="fr.eventadmin.test.remote.DonutProvider">
<property
name="name"
field="m_name"
value="Unknown donut vendor" />
</provides>
<!-- Direcly interacts with the Event Admin service -->
<requires
field="m_ea" />
</component>
<!-- Example instances -->
<instance
component="synchronous-donut-provider"
name="Begniers de Pomme">
<property
name="name"
value="Begniers de pomme" />
<property
name="osgi.remote.interfaces"
value="*" />
<property
name="osgi.remote.configuration.type"
value="org.apache.cxf.ws" />
<property
name="osgi.remote.configuration.pojo.address"
value="http://localhost:9094/Donut" />
</instance>
</ipojo>
On the iPojo webConsole, i see the "Begniers de Pomme" instance well created but
nothing appears on http://localhost:9094/Donut?wsdl
What's wrong ?
Regards.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]