That's a good question! We are also in a situation where we need to decide whether to use DS or Spring DM. The Spring DM advantages I always hear are: - Spring supports transaction management out of the box. With DS you would need another framework to support TM - Spring has a good Hybernate support
Can please someone comment on this? Eugen Am 27.10.2011 um 14:04 schrieb Ferry Huberts: > On 10/27/2011 01:09 PM, Mohamed Ragab wrote: >> Hi All, >> >> Just an innocent technical question, please! >> >> Correct me if I am wrong, but to my understanding: >> 1. OSGi has a Service Registry >> 2. OSGi has Declarative Services >> 3. There are multiple options for using Declarative Services without >> writing the XML by hand, like: Bnd annotations, iPojo, Apache Felix SCR >> Annotions, and others. All of which result in the services being >> registered in the OSGi service registry, and lookups for services being >> done from the OSGi Service Registry; Declarative Services as usual >> 4. A standard is in the works for standard OSGi annotations for >> Declarative Services >> >> My question is: >> Are there any technical advantages, for new code written for OSGi, to >> use: Spring DM or Guice+Peaberry >> > > > that basically depends on your personal preference. the end result is > that your services are registered in the OSGi service registry. how it > got there isn't really very relevant. > > every framework has its own advantages and disadvantages. > > I'd say that when going from lightweight to heavyweight you'd have the > following list: > > DS > DS + Guice > DS + Spring > > > I think (last I heard from Peter) that the annotations are close to final. > > > -- > Ferry Huberts > _______________________________________________ > OSGi Developer Mail List > osgi-dev@mail.osgi.org > https://mail.osgi.org/mailman/listinfo/osgi-dev _______________________________________________ OSGi Developer Mail List osgi-dev@mail.osgi.org https://mail.osgi.org/mailman/listinfo/osgi-dev