Hi Morten,
Yes, you can configure glassfish to monitor any number of directories in
your file system for OSGi bundles. By default, GlassFish watches two
directories:
a) .../glassfish/modules/autostart/ - This is a glassfish installation
specific diretcory, so I would not recommend it to be used to deploy
user bundles.
b) .../domain1/autodeploy/bundles/ - This is a per domain directory.
To watch some other directory, you can do the following:
create a file called
.../domain1/autodeploy/org.apache.felix.fileinstall-foo.cfg with
following content:
felix.fileinstall.dir=/path/to/your/directory/
and create the directory named /path/to/your/directory/.
That's it. This will be watched for OSGi bundles as described in [1].
To add another directory, create one more such file and directory.
HTH,
Sahoo
[1]
http://weblogs.java.net/blog/ss141213/archive/2009/05/using_filesyste.html
glassfish_at_javadesktop.org wrote:
> Is there a way to add/remove external OSGI bundles programmatic from a deployed WAR/WAB application or at least just have glassfish synchronize deployed bundles with contents of an custom external folder outside glassfish ?
>
> I need this for an OSGI based framework that has plugins in a way similar to f.x. Hudson but is OSGI based instead. The plugins are downloaded and installed outside glassfish (and may be used inside/outside glassfish depending on what the current deployment option is).
>
> /Morten
> [Message sent by forum member 'mmc41']
>
> http://forums.java.net/jive/thread.jspa?messageID=470284
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>