Kamesh Sampath wrote:
I did follow the Webinar JBoss AS7 OSGi, i was able to successfully build an application and deploy it.
I have some queries on the same (though some of them are very basic ),
- When deploying WAR (Non OSGi) with dependencies to OSGi bundles, whether AS7 will pickup only JBoss Modules or can we provide reference to bundles in the Manifest "Dependencies" section?
Yes, you can also refer to OSGi bundles. The syntax is as follows: deployment.<bsn>:<version>
So if you want to refer to a plugin with Bundle-SymbolicName 'my-test-bundle' and version 1.2 you'd use:
- When deploying OSGi bundles using maven jboss-as plugin or using jboss osgi console, where do the files get deployed ? I dont see any jars in the deployments folder
They end up somewhere else. In the data/osgi-store/bundle-* directories of your current storage location. If you're running in standalone mode this directory structure exists under the 'standalone' directory.
- Is JBoss AS modules dynamically updateable as we do for OSGi bundles ?
This is probably better answered by David Lloyd, but I believe JBoss Modules would require a restart after an update.
- Does JBoss Modules can be deployed as exploded archieves ?
Again, not totally my area of expertise, but I think this is possible.
- Is it possible for a Modules/OSGi bundles to refer to a bundle that is deployed as part of another WAR ?
A bundle that's inside a WAR? You mean in its web-inf/lib directory? In that case its not really a bundle but rather a jar file which is deployed as part of a war file so it won't have visibility outside of that WAR AFAIK...