ace-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Álvaro Fernández González <alvaro.fernan...@nortia-in.es>
Subject How to use the repository services without REST API
Date Tue, 30 Oct 2012 16:47:00 GMT
Hello,

I'm trying to use the ArtifactRepository programatically without using the
REST API. For what I've found if I call the createSession(String) method on
a SessionFactory service, several services are created for that session:

{org.apache.ace.client.repository.repository.ArtifactRepository}={service.sid=fideliapos,
service.id=106}
{org.osgi.service.event.EventHandler}={event.topics=[],
event.filter=(service.sid=fideliapos), service.id=107}
{org.apache.ace.client.repository.repository.Artifact2FeatureAssociationRepository}={service.sid=fideliapos,
service.id=108}
{org.osgi.service.event.EventHandler}={event.topics=[org/apache/ace/client/repository/private/ArtifactObject/*,org/apache/ace/client/repository/private/FeatureObject/*],
event.filter=(service.sid=fideliapos), service.id=109}
{org.apache.ace.client.repository.repository.FeatureRepository}={service.sid=fideliapos,
service.id=110}
{org.osgi.service.event.EventHandler}={event.topics=[],
event.filter=(service.sid=fideliapos), service.id=111}
{org.apache.ace.client.repository.repository.Feature2DistributionAssociationRepository}={service.sid=fideliapos,
service.id=112}
{org.osgi.service.event.EventHandler}={event.topics=[org/apache/ace/client/repository/private/FeatureObject/*,org/apache/ace/client/repository/private/DistributionObject/*],
event.filter=(service.sid=fideliapos), service.id=113}
{org.apache.ace.client.repository.repository.DistributionRepository}={service.sid=fideliapos,
service.id=114}
{org.osgi.service.event.EventHandler}={event.topics=[],
event.filter=(service.sid=fideliapos), service.id=115}
{org.apache.ace.client.repository.repository.Distribution2TargetAssociationRepository}={service.sid=fideliapos,
service.id=116}
{org.osgi.service.event.EventHandler}={event.topics=[org/apache/ace/client/repository/private/DistributionObject/*,org/apache/ace/client/repository/private/TargetObject/*],
event.filter=(service.sid=fideliapos), service.id=117}
{org.apache.ace.client.repository.repository.TargetRepository}={service.sid=fideliapos,
service.id=118}
{org.osgi.service.event.EventHandler}={event.topics=[],
event.filter=(service.sid=fideliapos), service.id=119}
{org.apache.ace.client.repository.repository.DeploymentVersionRepository}={service.sid=fideliapos,
service.id=120}
{org.osgi.service.event.EventHandler}={event.topics=[],
event.filter=(service.sid=fideliapos), service.id=121}
{org.apache.ace.client.repository.RepositoryAdmin}={service.sid=fideliapos,
service.id=122}
{org.apache.ace.client.repository.stateful.StatefulTargetRepository,
org.osgi.service.event.EventHandler}={service.sid=fideliapos,
event.topics=[org/apache/ace/client/repository/public/ArtifactObject/*,org/apache/ace/client/repository/public/Artifact2FeatureAssociation/*

I've also seen that several EventHandlers are created. Does this mean that
I can for example add Artifacts just sending events?

Do you have any example?

Regards,

*Álvaro Fernández*
*Consultor*

  Avda de la Argentina 132
Edificio Cristasa, oficina 201
33312 Gijón *www.nortia-in.es*
 Este correo y sus archivos asociados son privados y confidenciales y van
dirigidos exclusivamente a su destinatario. Si recibe este correo sin ser
el destinatario del mismo, le rogamos proceda a su eliminación y lo ponga
en conocimiento del emisor. La difusión por cualquier medio del contenido
de este correo podría ser sancionada conforme a lo previsto en las leyes
españolas. No se autoriza la utilización con fines comerciales o para su
incorporación a ficheros automatizados de las direcciones del emisor o del
destinatario.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message