...
Now the jar is ready to be deployed. Drop the jar into the /WEB-INF/classes/bundles
directory and it will automatically be installed when the application starts up.
Using Spring
Warning | |||||||||
---|---|---|---|---|---|---|---|---|---|
By default Spring OSGi loads its xml config file asynchronously, which causes the OSGi plugin to fail while starting. To fix this add this line to MANIFEST.MF:
Or if using The Apache Felix maven plugin (see below for details):
|
If you want to use the Spring as the object factory for your actions, then follow these steps:
...