OSGI Apache Felix IPOJO : Annotations or pure MAVEN?

165 Views Asked by At

I'm jumping in OSGI with FELIX IPOJO. According to the tutorials there are two approaches possible:

  • use annotations to define services and entry points. FELIX jar's are added more or less manually.
  • use the MAVEN approach and define services and entry points in pom.xml

Am I free to choose ? Are there pro's and con's ?

Thanks for any hint ! Gerry

1

There are 1 best solutions below

2
Clement On BEST ANSWER

You are free to choose, but I would recommend the annotation providing an easier development model. The pure XML approach was made initially to support Java 1.4.