NetBeans has a modular architecture where each module is created as an NBM. OSGi is another popular modular system for Java applications and used by GlassFish to provide a light-weight Java EE 6 compliant application server.
There are a lot of similarities between NBM and OSGi:
Runtime container manages lifecycle and dependencies of modules
Both are packaged as JAR, metadata stored in META-INF/MANIFEST.MF and some other information
Runtime starts up, read meta information and sets up dependencies
Every module has its own class loader loading explicitly declared dependencies only
Arun then points us to Toni Epple's presentation from this past June's OSGi DevCon 2009 Europe conference, which shows in detail the similarities and differences between NetBeans modules and OSGi. Toni's full set of slides, titled "Frankenstein's IDE: Running NetBeans on OSGi and vice versa," is available at Slideshare.
Assuming you know the background information Toni presents, Arun moves on, showing how to create an OSGi bundle using NetBeans and deploy it in GlassFish. In Arun's TOTD, he assumes you're working the latest nightly build of NetBeans 6.9, and GlassFish v3. He provides plenty of screenshots to illustrate his procedure.
While the idea of creating an OSGi bundle in NetBeans and deploying it in GlassFish may sound complicated, it's actually not all that bad. In seven steps, you can create anCreating an OSGi bundles using NetBeans and deploying in GlassFish OSGi bundle that can be started and stopped in GlassFish, and the stes only involve a relatively small number of lines of code.
The new Servlet 3.0 specification in JavaEE 6
(JSR website,
JavaOne Session, VC podcast)
packs many new features, including Annotations, Dynamic Registration,
Pluggability and Asynchronous Support. Servlet 3.0 also includes quite a number of security improvements,
as described by Kumar a couple of months ago in a
Summary of new Security Features in Servlet 3.0. As Ron explains...
With the current holidays around here and quite a bit of work I didn't keep up the blog as I probably should. I'll try to get back into posting soon when everything calms down around here. While waiting for me to get my act together here is a talk that Biswajit Sarkar (author of the LWUIT 1.1 book) gave at the IndicThreads conference in India...
I started working for Sun Microsystems since Janurary 2001, when I first came to the US. During these years I was able to work on many different projects, such as MSV, JAXB, JAX-WS, Metro, GlassFish v3, and Hudson, to name a few, with many great people. It was all quite an enjoyable journey. I won't list all those names one by one here, for it will be too long, but if you are one of them, I think you know that I'm talking about you. As my colleague Abhijit said once, a large part of enjoying your work is the people you work with. So with a bit of sadness and a lot of excitements, I announce that today is my last day at Oracle...
Continuous Integration with Hudson is a new open source book project in the works. In the spirit of 'eating our own dogfood', this book is produced using Hudson. In this article, I discuss the build framework used for the 'Continuous Integration with Hudson' book. The 'Continuous Integration with Hudson' book is written in docbook, and is therefore XML source code which builds to PDF and HTML versions of the book. The source code is stored using git (in a github repository which will be eventually made public). The main branches are the following...
Once again the FUD around Solaris and OpenSolaris fate started to spread after Dana Blankenhorn misunderstood the licensing terms and used a eye catching and visitor increasing title, Oracle taking back OpenSolaris, for his blog entry. Well, from this article we can get that even the veteran writers can get things wrong and spread incorrect news :-) Folks, Solairs is one of the biggest Sun assets that Oracle is now own by taking over Sun . Solaris and OpenSolaris are going to be around in a much better shape than before because Oracle is betting its fight for the market share on this operating system to form a complete stack including storage, hardware, OS, middle-ware, support and so on...
In the Forums, in the GlassFish forum, Robert Weeks asks about using a JRuby Script Engine within OSGi?: Hello - I was wondering has been able to get the ScriptEngine (using jruby-engine.jar) to work correctly within an OSGi bundle? I am having issues getting it to work correctly wrt ruby.jar, and having the jars placed correctly so that the...
In the LWUIT forum, xxs523 has a question regarding Multiple Menu Program: Hi all, Can I set the tab title width of a tabbedpane in lwuit? If can, how?
In the Java 3D forum, washaq asks how can i load (.3DS or .obj) models with its textures in java: hi can someone plzzz tell me how i can load a 3ds or .obj model along with its texture. plzzzz here is code in which i load the model but how can i load its texture plzzz some one help mee or if some one hav his code relating to 3ds or .obj...
The Java Community Process, or JCP, was created by Sun as the standards setting body for the Java language, libraries, and runtime. From 1998 to 2009, Sun ruled the JCP with an iron fist, but now that Oracle is calling the shots that will inevitably be changing. Recently, I discussed the topic with Tony de la Lama, senior vice president of research and development, at Embarcadero Technologies. Tony was a JCP founding executive committee member from 2000-2003 and prior to joining Embarcadero was general manager of Borland's Java business, so he knows a thing or two about how the JCP works (or fails to work)...
Registered users can submit event listings for the java.net Events Page using our events submission form. All submissions go through an editorial review before being posted to the site.
Archives and Subscriptions: This blog is delivered weekdays as the Java Today RSS feed. Also, once this page is no longer featured as the front page of java.net it will be archived along with other past issues in the java.net Archive.