• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

* Welcome Craig Walls

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34225
341
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This week, we're delighted to have Craig Walls helping to answer questions about the new book Modular Java: Creating Flexible Applications with OSGi and Spring. See the table of contents online.

The promotion starts Tuesday, July 21st 2009 and will end on Friday, July 24th 2009.

We'll be selecting four random posters in this forum to win a free copy of the book provided by the publisher, Pragmatic.

Please see the Book Promotion page to ensure your best chances at winning!

Posts in this welcome thread are not eligible for the drawing.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to Craig Walls, also author of Spring In Action !
There are also some sample chapters in pdf at the publisher's home.
 
binayakumar patel
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome Craig Walls

Can we use the combine frame work of OSGI and Spring as desktop application or
we can use this only for web base and enterprise application.
 
Rahul Juneja
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome Craig,

Let me start by asking what exactly is OSGI as i haven't worked on it yet and i have an understanding of Spring Core and Dependency inject in general.

Thanks,
Rahul
 
Craig Walls
author
Ranch Hand
Posts: 363
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the kind welcome. I've been here before fielding questions about Spring. This time we'll be talking OSGi, Pax, and Spring-DM.

Let me offer a quick prelude to this week's discussions...

I got into Spring early on because dependency injection and AOP helped me untangle the objects in my application. I never thought of myself as an organized kind of person, but letting DI and AOP decouple my object made me really appreciate distinct separation of my application objects.

The problem is that while my application objects were decoupled from each other, I was still jumbling up the modules of my applications. I liked Maven's support for build-time modularity, but it still left me wanting to better separate the more coarse grained application elements.

When I first heard of OSGi, I dismissed it as some complex, heavyweight thing that didn't interest me. But then when Spring-DM came about, I couldn't help but take a look. If the Spring guys were embracing OSGi, then maybe there's something to it. If the guys who's tagline is "Eliminating Enterprise Java Complexity" are interested in OSGi, then maybe it's not as complex as I had thought.

I dug into it and discovered that OSGi isn't complex and it isn't heavyweight. And I discovered that what rough edges OSGi does have are nicely smoothed out by things like Spring-DM and the Pax selection of tools. I found OSGi to be a pleasure to work with and a great way to achieve true modularity in my applications.

So, I set out to write about my experience. That's what Modular Java is all about--an OSGi experience. It's not a comprehensive volume on OSGi, nor is it a detailed reference. It's a practical walk though the same kind of experience that I had with OSGi with you, the reader, as my pair programming partner. In just over 250 pages, we develop a complete, modular web application using OSGi, Spring-DM, and a variety of other tools that I pull in as necessary.

Now we're here on JavaRanch this week talking about OSGi. I'm here to answer your questions as best as I can. Like Java itself, OSGi is a broad and ever-growing topic, so I'm sure that there'll be some questions that stump me. But feel free to ask anyway. Let's have some OSGi fun this week.
 
binayakumar patel
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OSGi stands for "Open Service Gateway Initiative" also known as the "Dynamic module System for java"
It defines an architecture for modular application development.
 
Craig Walls
author
Ranch Hand
Posts: 363
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
binayakumar patel wrote:Welcome Craig Walls

Can we use the combine frame work of OSGI and Spring as desktop application or
we can use this only for web base and enterprise application.


Spring is about decoupling application objects and OSGi is about decoupling application modules. It doesn't matter much what kind of application is being developed. In Modular Java, I build a web application...but that's just because that's the class of application I build most frequently, so it seemed natural to me.

But I see absolutely no reason why you can't build a desktop application with OSGi. After all, one of OSGi's most famous applications is a desktop application: The Eclipse IDE.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pleas be sure to ask questions in new topics. This topic is for welcoming the author.
 
binayakumar patel
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[question removed -- please read my post]
 
Vijitha Kumara
Bartender
Posts: 3913
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome Craig Walls . That's a very nice prelude.
 
Craig Walls
author
Ranch Hand
Posts: 363
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rahul Juneja wrote:Let me start by asking what exactly is OSGI as i haven't worked on it yet and i have an understanding of Spring Core and Dependency inject in general.


In short, OSGi is a specification for a modularization framework for Java. While other efforts in the JCP are underway to bring modularity to the Java platform, OSGi has been providing Java modularity for over 10 years!

Note that OSGi itself is a specification, not an implementation. There are several implementations of the OSGi specification with the big players being Equinox (Eclipse), Felix (Apache), and Knopflerfish.

Going a bit deeper, modularity is defined by two dimensions: coupling (an external measure of how intimate application elements are with other elements) and cohesion (an internal measure of how focused an application element is. Application elements that are highly coupled and low in the cohesion category aren't very modular and consequently are difficult to maintain, test, and understand. On the other hand, elements that are loosely-coupled with other elements and highly cohesive are typically easy to maintain, test, and understand.

Although it's possible to develop highly-cohesive/loosely-coupled modules in Java without OSGi, there's very little about the language or the platform that enforces it. Consequently, despite our best efforts, we developers often miss the mark on modularity. OSGi not only enforces modularity, but strongly encourages it. As a result, OSGi-based applications exhibit all of the traits of good modularity (maintenance, testability, etc).

The two fundamental ways that OSGi offers modularity are classpath management and service registries. The details of these two ideas are beyond the scope of this already lengthy response to your simple question, so I'll stop here and let you ask for more details.

 
binayakumar patel
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Craig Walls,

Your new book will surely give us, new direction for the development of robust and dynamic application using OSGi and Spring-DM.
 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome Craig. This book is surely interesting.
Many people just know Eclipse Platform, but few know what Eclipse really is (it's not just an IDE of course).

I believe this book will bring more understanding about OSGi to developer communities.
 
Alexandra Niculai
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome Craig! Congratulations on the book!
 
Ravi Vakka
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Craig,

Congratulations on your new book. Hope your book opens new windows in Java Spring programming.
 
David Ratliff
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome Craig.
 
Aarti Malhotra
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome Craig.... congratulations on the new book!
 
Eduardo Bueno
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome Craig! Hoping to win that book
 
Bill Johnston
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes weleome!
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Author,

Welcome to Javaranch,
 
nandini lagunia
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome Craig!!!
 
Amit kull
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hullo,
Welcome.
I have used Spring in web applications. New to OSGi.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic