java - Swing App with Spring DM startup problem -


i'm starting osgi spring dm based swing application. app should start , show when bundle loaded. know can achieved activator class configured manifest.mf file.

my problem: how can inject bean references/services activator class using spring activator not configured in spring context?

should not use osgi activator? how can spring startup application on bundle start?

any kind of remarks apreciated i'm new osgi spring dm.

cheers, sven

you not need activator. spring-dm has "extender" bundle automatically scans bundle 2 things:

  • one or more .xml files in meta-inf/spring folder of bundle;
  • a spring-context header in manifest.mf, points 1 or more .xml files may anywhere inside bundle.

if finds either of these (and if bundle in active state) load spring application context using declared xml files.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -