Looking for a decent Plugin API/Infrastructure

I'm planning to support dynamic plugin loading for a project of mine.

It is important that the plugins will be able to load/unload during runtime and it would be a plus if it is possible to communicate between the plugins (i.e. have dependencies).

I've been looking at http://jpf.sourceforge.net/index.html but it seemed a little weak.

I have also been looking at http://www.osgi.org/ but that seemed a little to big :)

now there is this new jsr-277 too http://www.jcp.org/en/jsr/detail?id=277

Could someone please help me deciding?!

[572 byte] By [ted.steena] at [2007-10-1 23:14:19]
# 1
Without knowing what you feel is missing from JPF, or why you feel OSGI is to bulky, and having a few more details on your requiremens, and not sure I can be any help.While the JSR looks intresting, it will not be usable for some time.
mlka at 2007-7-15 14:04:19 > top of Java-index,Other Topics,Patterns & OO Design...
# 2
eclipse implements osgi. I use eclipse.
_dnoyeBa at 2007-7-15 14:04:19 > top of Java-index,Other Topics,Patterns & OO Design...