I was figuring out why my ManagedServiceFactory wasn't getting
configured by the feature when I discovered the odd notation used to
specify the service pid.

I found that if the name attribute of the config element has a dash in
it, the attribute value will be split into a service pid and a service
factory pid.  If I read the code correctly, both the service pid and the
factory service pid need to be set to the name of the
ManagedServiceFactory.  So I managed to get my ManagedServiceFactory
configured by specifying:

  <config
name="com.foo.MyManagedServiceFactory-com.foo.MyManagedServiceFactory">
... </config>

However that seems a bit verbose and is just one more place where a typo
can stop things from working.  I think it would be better if there was a
different attribute name to configure ManagedServiceFactories.  For
example, configuring a ManagedService would stay the same:

  <config name="com.foo.MyManagedService"> ... </config>

But configuring a ManagedServiceFactory would be:

  <config factoryName="com.foo.MyManagedServiceFactory"> ... </config>

Is this a good idea or do I misunderstand something?


Tim Moloney             The  reasonable  man adapts  himself  to
MRSL                    the world; the unreasonable one persists
2015 Cattlemen Road     in trying to adapt the world to himself.
Sarasota, FL  34232     Therefore  all progress  depends on  the
(941) 377-6775 x208     unreasonable man.    George Bernard Shaw


Reply via email to