Friday, February 12, 2010

Plugin Architecture for Java EE Web Applications?

Java EE Web Applications are usually self-contained, in the sense that there is only limited runtime extensibility. It begs the question: How to support plugins architecture in a Java EE webapp?

Examples in the real world:
  • Mozilla Firefox addons
  • NetBeans modules
  • Eclipse IDE plugins
  • Servlet containers and WARs
A plugin system for Java EE would basically allows you to load in arbitrary jars as plugins. In case of plugins containing web resources, they would probably be WARs, not just JARs.

The plugin system requires the capability to load a plugin WAR (a sub-WAR, perhaps) inside an already running WAR. These plugin WARs can be added, removed, configured, at runtime just like relationship of normal WARs with the container.

Java Portlets are the closest thing to a standard way of doing this. You deploy portlet WARs into a Liferay container, easy. But since we're creating something like a Portlet container, it isn't straightforward.

OSGi is probably the best bet, however it also has its own complexities and classpath model.

What's your advice?

14 comments:

Anonymous said...

Maybe by creating your own container with annotations and (sniffer, deployer, container, appcontainer). This is the way i'm trying currently :)

http://blogs.sun.com/dochez/entry/glassfish_v3_extensions_part_5

Grtss

Kev d'Salvo said...
This comment has been removed by a blog administrator.
Hendy Irawan said...

Thank you Jerome.

I tried to comment on your blog, but comments are closed.

It seems a bit complex for me... and proprietary.

I think similar feat can be achieved through OSGi Blueprint service. Basically we're just using OSGi, but with annotations.

Another problem with OSGi-style components are JAR deployments. Meaning it's practically impossible to do exploded-archive rapid development (aka .class-driven development vs. JAR-driven development).

I don't think your proposed solution handles exploded-archive development. Seems to handle component as JAR.

mobile application development said...



It is really a nice and helpful piece of info. I’m glad that you simply shared this helpful info with us. Please keep us
informed like this. Thank you for sharing.
mobile application development

sadia sulaman said...

"Really awesome work with the blog. I do like your hard work on and will wait for more post as from you as post gave me pleasure and gives some helps to do same work right here. Thanks a lot……………"www.echristaineducation.com |

www.shoppingcurator.com |

www.chevychasehomesales.com |

www.stevenlevinlaw.com |

www.sportsucht.com |

www.computersupportleigh.com |

coach outlet store online said...

http://www.coachoutletstoreinc.com/ Coach Outlet Store Online

http://www.michaelkorsoutletmkinc.com/ Michael Kors Outlet

http://www.coachfactoryoutletwebsite.com/ Coach Factory Outlet

http://www.tomsusashoes.com/ Toms Shoes

http://www.cheapjerseysinc.com/ Cheap Jerseys

http://www.michaelkors-bedford.com/ Michael Kors

http://www.coachoutlet-sale.com/ Coach Outlet

http://www.coachfactoryoutletorg.com/ Coach Factory Outlet

http://www.coachoutlet-buy.com/ Coach Outlet

http://www.coachhandbagsonlineoutlet.com/ Coach Handbags

http://www.giuseppezanottionline.com/ Giuseppe Zanotti

http://www.coachfactoryoutlet-handbags.com/ Coach Factory Outlet

http://www.coach-factory-outlet-online.com/ Coach Factory Outlet Online

http://www.coachstoreonline.com/ Coach Outet Store Online

http://www.coachfactoryoutlets2014.com/ Coach Factory Outlet

http://www.michaelkorsoutletonlinemk.com/ Michael Kors Outlet Online

http://www.celineoutlet-online.com/ Celine Outlet

http://www.michaelkors.name/ Michael Kors

http://www.michael-kors-outlet-store.com/ Michael Kors Store

http://www.tomsshoescompany.com/ Tomss Hoes

http://www.pradaoutlet-store.com/ Prada Outlet

http://www.fitflopfootwear.com/ Fitflop Footwear

http://www.celinebags-outlet.com/ Celine Bags

http://www.fitflopsflipflops.com/ Fitflops Flipflops

http://www.fitflopusaonline.com/ Fitflops

http://www.giuseppezanottidesigner.com/ Giuseppe Zanotti Designer

http://www.fitflopflip-flop.com/ Fitflops

http://www.giuseppezanottisneakersmen.com/ Giuseppe Zanotti Sneakersmen

http://www.fitflopsandalssale.com/ Fitflops

Anonymous said...

Keep sharing such ideas in the future as well. This was actually what I was looking for, and I am glad to came here! Thanks for sharing the such information with us.http://www.claimsid.co.uk |

http://www.positiveimagebank.co.uk |

http://www.bestweddingphotography.co.uk |

http://www.pauljamesconsulting.co.uk |

http://www.careers-at-benefit.co.uk |

http://www.tibrainvestmentmanagement.co.uk |

http://www.lucy-kent.co.uk |

http://www.cbd-research.co.uk |

http://www.savesolihullhospital.co.uk |

http://www.envirotrack.co.uk |

polo outlet said...

http://www.burbagssale2014.com/ Burberry Outlet
http://www.airmaxshoesfactory.com/ Air Max Shoes
http://www.coachblackfriday2014.com/ Coach Black Friday
http://www.coach-storeoutletonline.com/ Coach Black Friday
http://www.coachcoachoutlet.com/ Coach Cyber Monday
http://www.coachxfactory.com/ Coach Factory
http://www.coach-factoryoutletonline.net/ Coach Outlet Factory
http://www.coach-outletonlineusa.com/ Coach Outlet USA
http://www.coach-pursesfactory.com/ Coach Purses Factory
http://www.coachpurseusa.com/ Coach Purses USA
http://www.coach-storeoutlet.com/ Coach Store Outlet
http://www.coach-pursesonline.com/ Coach Purses On Sale
http://www.monsterbeatsbydres.com/ Monster Beats Outlet
http://www.louis-vuittonblackfriday.com/ Louis Vuitton Outlet
http://www.lv-guccishoesfactory.com/ Louis Vuitton Factory
http://www.marcjacobsonsale.com/ Marc Jacobs On Sale
http://www.mcmworldwides.com/ MCM Outlet
http://www.mcmoutlet-jp.com/ MCM 店铺
http://www.oakleysunglassesfactory.com/ cheap oakley sunglasses
http://www.michaelkorsmas.com/ Michael Kors Outlet
http://www.michaelkors.so/ Michael Kors Outlet
http://www.michaelkorsfactory-store.com/ Michael Kors Factory
http://www.michaelkorsoutletr.com/ Michael Kors Outlet
http://www.michael-korsfactoryonline.com/ Michael Kors Factory Online
http://www.newcoachfactoryoutlet.com/ Coach Factory Outlet
http://www.north-faceoutletonlines.net/ North Face Outlet Online
http://www.polo-outletstore.com/ Polo Outlet Store
http://www.ralph-laurenhome.com/ Ralph Lauren UK
http://www.saclongchamppairs.com/ Sac Longchamp Pairs
http://www.tcoachoutletonline.com/ Coach Outlet Online
http://www.the-coachfactoryoutlet.com/ Coach Factory Oultet
http://www.barbour-jacketsoutlet.com/ Barbour Jackets Outlet Online
http://www.canada-gooser.com/ Canada Goose Outlet
http://www.guccishoesuk-2014.com/ Gucci Outlet Online
http://www.michaelkorsstates.com/ Michael Kors Outlet
http://www.moncler-clearance.com/ Moncler Clearance
http://www.moncler-jacketsoutletonline.com/ Moncler Jackets Outlet Online
http://www.northsclearance.com/ North Clearace Outlet
http://www.polo-ralphlaurenonline.com/ Polo Ralph Lauren Outlet Online
http://www.woolrich-clearance.com/ Woolrich Clearance
http://www.cvshopfactory.com/ shop.coachfactory.com
http://www.mksfactoryoutlet.com/ Michael Kors Factory Outlet
http://www.zxcoachoutlet.com/ Coach Outlet Online USA
http://www.thebeatsbydre.net/ Beats by Dre
http://www.superbagsmarket.com/
http://www.newoutletonlinemall.com/ Coach Purses Outlet Online
http://www.clickmichaelkors.com/ Michael Kors USA

Huz said...

Good post. Thank you for sharing.

Metamorfosis said...

Pelatihan SDM is a network marketing and training information or training an employee who has worked with many consulting firms and training institutions.
pendidikan dan pelatihan sdm, pelatihan akuntansi, sales marketing, manajemen bisnis, administrasi kantor, lembaga training motivasi, pelatihan sumber daya manusia, training manajemen, training sdm, informasi training, pusat pelatihan, pelatihan rumah sakit, training provider jakarta, training jakarta, training consultant jakarta, training center,

Eric Simmons said...

Great and Useful Article.

Online Java Course

Java Online Training

Java Course Online

J2EE training

online J2EE training

Best Recommended books for Spring framework

Java Interview Questions








Java Training Institutes in Chennai

Java Training in Chennai

J2EE Training in Chennai

java j2ee training institutes in chennai

Java Course in Chennai

Zheng junxai5 said...

zhengjx20160615
michael kors outlet clearance
louis vuitton handbags
michael kors handbags
longchamp outlet
michael kors bags
kate spade outlet
michael kors outlet clearance
nike air max uk
cheap toms
coach outlet
adidas stan smith
gucci outlet
michael kors outlet online
coach outlet online
toms outlet
coach outlet clearance
adidas originals
asics running shoes
adidas running shoes
ralph lauren
christian louboutin wedges
giuseppe zanotti outlet
michael kors purses
adidas wings
kobe 10
replica rolex watches
louis vuitton outlet online
jordan retro 11
replica watches
retro 11
toms wedges
michael kors outlet clearance
jordan 3 powder blue
true religion jeans
jordan retro 8
air jordan shoes
oakley vault
michael kors outlet clearance
nike uk
louis vuitton bags

Esraa Abbas said...

http://www.prokr.net/2016/09/tanks-isolation-companies-8.html
http://www.prokr.net/2016/09/tanks-isolation-companies-7.html
http://www.prokr.net/2016/09/tanks-isolation-companies-6.html
http://www.prokr.net/2016/09/tanks-isolation-companies-5.html
http://www.prokr.net/2016/09/tanks-isolation-companies-4.html
http://www.prokr.net/2016/09/tanks-isolation-companies-3.html
http://www.prokr.net/2016/09/tanks-isolation-companies-2.html
http://www.prokr.net/2016/09/tanks-isolation-companies.html

Nithyanantham M said...

Thanks for sharing this post
Dailymotion video downloader

Try Dailymotion video
downloader
to download videos from dailymotion.

Post a Comment

 
Copyright 2009 Spring vs Java EE Web Dev. Powered by Blogger Blogger Templates create by Deluxe Templates. WP by Masterplan