David Bosschaert [
http://community.jboss.org/people/bosschaert] created the discussion
"Re: AS7 OSGi Bundles and Modules"
To view the discussion, visit:
http://community.jboss.org/message/641499#641499
--------------------------------------------------------------
Hi Kamesh,
Kamesh Sampath wrote:
I did follow the Webinar
http://vimeo.com/27155228 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:
deployment.my.test.bundle:1.2.0
* 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...
Best regards,
David
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/641499#641499]
Start a new discussion in JBoss AS 7 Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]