Saturday, July 18, 2009

Post Lunch session -OSGI

Lunch was extremely good and felt good after eating. Had only less though so as to keep in make.

Now the topic is on OSGI by Sameera Jayasoma . WSO2 is an open source company hased in Srilanka. Their main product is WSO2 carbon,Which is a fully componentized SOA platform based on OSGI. Then there was some PR on their company.


Modular Systems
Break large system into more smaller,understandable units called modules.Benefits of modular systems are reuse,abstraction,division of labour and ease of repair.


Module should be self contained,highly cohesive and loosely coupled.

Java for building Modular systems
--> provides class level modularity(public, non public methods)
--> we need somthing like external packages, internal packages in a jar

ClassLoader hierarchy : Bootstrap classloader (rt.jar) --> extension classloader (ext.jar) --> application classloader (a.jar,b.jar)


Problems with JARs

--> Jar is unit of deployment in Java and typical java app consists of set of jar files

--> no runtime representation for a JAR.

when java loads a class, it tries to load class one by one in the classpath.

--> multiple version of jar files cannot be loaded simultaneoulsy
--> Jar files cannot declare their dependencies on other jars

Java lacks true modularism and dynamism. Java has given flexibility to build system on top of it. This is called OSGI (dynamic module system for java)

OSGI

--> Bundle is a unit of modularization of OSGi. OSGI app is a collection of Bundle.
Bundle is similar to jar and contains additional metada in Manifest.mf file. In osgi , java package is the unit of information hiding. unlike in jar when class is the
unit of information hiding.

--> bundle can share and hide packages from other bundles.

sample manifest.mf file

Bundle-MainfestVersion:2
Bunle-Name :
Bundle-SymbolicName:
Bundle-Version:1.0.0 (major,minor,micro version)
Export-Package
Import-package:

symbolic name and version are unique for a bundle. default value for version is 1.0.0
all packages in bundle are hidden from other bundle by default. if we need to share package explicitly mention the name.

Bundles & Class Loaders
OSGI gives separate classloaders per bundle,thereby eliminating hierarchial classloading in java

System bundle is a special bundle that represents the framework and registers system services

Tooling for osgi : eclipse pde is the best of the lot

osgi provides command line interface

ss -> lists all the bundles in the system

b/bundles - gives the list of informaiton about the bundle.export information.

b 0 --> gives system bundl information

export-hundle and import-bundle
require-bundle : import all exported packages from another bundle. but this is discouraged.

Issues with require bundle
Split packages,bundle changes over time,require bundles chain can occur.

fragment bundles : attached to a host bundle by the framework.Shares parent classloader.

runtime class loading in osgi: order of loadin

1) call parent clas loader (only for java.*)
2)imported packages
3)required bundles
4)load from its own internal classpath
5)Load from fragment classpath

Usage of fragment bundle 1) provide translation files to different locales

OSGI specifications --specifies framework and specificaions

osgi alliance

current version is 4.1

osgi can be considered as a layer on top of java.can also use jni to talk to OS. functionality of framework is deivided into several layers

1)module 2)lifecycle 3(

Lifecyce layer : manage lifecyle of api.
bundle starts --> installed,resolved,starting,active,stopping,uninstalled.

Register a service using bundle service using registerservice on bundlecontext

Using a service --> find a serviceReference,get the object,cast it to a proper type and use the service

Events and Listeners

framework fires serviceevents during registering a service,unregistering a service

services are dynamic. monitor services using service listeners,service trackers,declarative service,iPOJO and blueprint services.

Service Tracker

declarative service

SCR (service component runtime)

20 comments:

Anonymous said...

Can anyone recommend the top performing Endpoint Security program for a small IT service company like mine? Does anyone use Kaseya.com or GFI.com? How do they compare to these guys I found recently: N-able N-central remote support manager
? What is your best take in cost vs performance among those three? I need a good advice please... Thanks in advance!

Anonymous said...

Advance America has a $300 million credit facility with Bank of America. A Merchant Cash Advance is working capital for small business and small business.

Anonymous said...

Saltmarch Media is organizing Great Indian Developer Summit event in Bangalore. This Summit will be a boost for the Software Developing Industries. It covers the topics like .Net, Java and Richweb and has 1 day workshop at the end as well. Any one attending this event?

For more info log on to www.developersummit.com

Anonymous said...

Technology truly has become one with our daily lives, and I am 99% certain that we have passed the point of no return in our relationship with technology.


I don't mean this in a bad way, of course! Societal concerns aside... I just hope that as technology further advances, the possibility of transferring our brains onto a digital medium becomes a true reality. It's one of the things I really wish I could see in my lifetime.


(Posted on Nintendo DS running [url=http://knol.google.com/k/anonymous/-/9v7ff0hnkzef/1]R4i SDHC[/url] DS SKu2)

Anonymous said...

[B]NZBsRus.com[/B]
Dismiss Crawling Downloads Using NZB Downloads You Can Swiftly Search Movies, Console Games, Music, Software and Download Them @ Blazing Rates

[URL=http://www.nzbsrus.com][B]NZB[/B][/URL]

Anonymous said...

Interesting post... Looks like solid state memory is really starting to take off. Hopefully we'll start seeing a drop in solid state harddisk prices in the near future. $5 32 gigabyte SDs for your Nintendo DS flash card... sounds gooooood.

(Posted using Nintendo DS running [url=http://quizilla.teennick.com/stories/16129580/does-the-r4-or-r4i-work-with-the-new-ds]R4i DS[/url] Net3)

Anonymous said...

respectand
levaquin 500mg
sincerelytim
oknabright
gabapentin 300mg
backroom
abating
cephalexin 500mg
altoona
troyand
amoxicillin 500mg
strollo
posford
doxycycline 100mg
ffreelinks
celebrex 200mg
alunosmapas
meyersinger
augmentin 875mg
macquarrie
zithromax 500mg
newsshane
efron
azithromycin 250mg
wean
ciprofloxacin 500mg
spice
stability
depakote 500mg
hartigan
citalopram 20mg
amounts
exhaust
keflex 500mg
simplebiz
aquatics
topamax 25mg
resourced
tetracycline 500mg

Anonymous said...

QuefReaft
[url=http://healthplusrx.com/glucosamine-side-effects]glucosamine side effects[/url]
Ingebtend

Anonymous said...

using Serif WebPlusX4. 1and1 tell me it is empty
__________________
[url=http://jail-break-ps3.blogspot.com/2010/12/jail-break-ps3.html]Jail break ps3[/url]

Anonymous said...

treesof
geordie
ontario oregon hardware
gary l holmquist
metal butt plugs
ngaatendwe
fleece fabric by the yard
buick enclave sale richmond va
someclasses
facultyoff
microwave cooking & nurtrtion
nypd retiree badge
senate voting record
academyideal
enom
wireless home theater system
uncle bobs self storage
9 volt christmas tree schematic
drouhin
laurel and hardy
unc asheville transfer
estache
brubaker
84 300zx for sale
busty blonde gallery
geographics business card help
davidwizards
innovationwe
market data audit conuslting
reading tarot cards
residential construction engineer montreal
culturesthe
tough guys dog toys
fremont, nh tax map
wenrichmiomi
crocheted
bathtub vinyl stickers
john lennon songs
shipping companies in los angeles
dessusquand
uploaders
last minute birthday gift
sites like topkds
evans truck and trailer
#

Anonymous said...

upsethey
tradesmen
a & e
human cell virbation
honda motorcycle dealers
calcochlorum
swift a-frame .45 colt load data w296
windows excel 2000 patch windows 7
gratifyin
imiss
dodge magum srt
toby and chris oz
las vegas cirque du soleil
dogwalks
valuecom
"heinz, j. l. "
pilots stress management
diagnosis code 486
centrances
how to creat atri fold board for display
duke nukem free download
arearights
sidekick
100 mm l53.5
japanese attack of mainland united states
electrical problems for 2009 silverado
despises
skirmish
silverlight enableredrawregions what do the different colors mean
when and where are jonas brothers in concert detroit, michigan
the follow through memories download
kingwoodnet
winter haven llc
when do you order an x ray for a cough
tappan
ifreev
5d steakhouse, avinger, tx
social accounting of british gas
'"1 785 177 7177 81777177717791779178468711466"'
luereather
anorth
free computer wallpapers
plc output data recorders
brown & sharpe manuals
#

Anonymous said...

cheerleading
committinga
macintosh computer first sold
monthly online marketing programs
needlepoint material in des moines, ia
cortical
1963 rover coupe
holiday inn express, wisconsin dells, wi
htmlwelding
convince
lender reporting requirements credit reporting agencies
tylenol with codeine reaction
norvell airbrush tanning
krishna
smudge
new smyrna beach
breast enlargement surgery for tragender women
cor bon ammunition
soldier
65 & still hot
porter family murdered kentucky
zoom
tiscali
baclofen used for
christopher t. hall
support service management
hitting
sequelae
law enforcement officers safety act
sacramento car show
2001 ford ranger rusted timing chain cover
kidssjust
laser engraving machine for pet tags
army wives season four
awayit
downpayments
what is a monkey man
activities for gt students
brennanss chapel hill nc
fingerhut
chicagoamy
new prime inc
wwii paratrooper boots
lenox china butterfly meadow
#

Anonymous said...

upshaw
noveltyelvis
best tupac quotes
our backgrounds and circumstances may have influenced who we are,but we are responsible for who we b
what does flush free niacin mean
archboldage
christian counselor indianapolis
brutish functional training
loudoun
obscurity
area code 702
candice cameron brother
frank t hopkins
thingsa
frist
how to exercise
greg lacey new orleans
beverly hill maurico cheating
kokaly
pigeon peas and rice recipe
old door hinges
naturecamps
biuwuxhsjdit
betsy fields cabinet knobs
dxa bone density pacs interface
wedding venues southampton
sodden
lxgr
the electric adjustable bed
thomas kinkade throw
margaret walker owolabi
inaccuracies
dr. hayosh st. clair shores
list of newspapers in virginia
fesba
brownmodern
refinance home mortgage va rates
granny / young man
attaching fishing line to a spinning reel
orientations
gergiev
suite hotels in toronto
levi jeans cheap
'''the canada small business financing program'''
#

Anonymous said...

writerfriday
letsallgeton
black or history or month or this or week
reuse coors light home tap
x rated wii games
backway
gi ve me the preadamatic stage
rental formal dresses/atlanta, ga
affixed
tabto
don cherry terrorist
webtrac recreation software
chicago weather in april
smirnoff
htmlinsider
brittany o connell define babe
outdoor fabrics & supplies
pink lesbian feet
bnumfmwd
abbey national plc
dead or alive website
double
itbaby
tracer ammo components
nabisco graham cracker recipes
lawyer john garland
altednative
gopay
tampa tribune online
klr650 turn signals
bronx workforce centers
tristan
youporm lap dance
military history book clubs in regina
cleats
mwpsa
reebok vs new balance walking shoes
form 990 hospital sisters health system
how to say thank you in swedish
pastjan
marins
drum canon 6011
overpopulation 'us senator'
willys east burke
#

Anonymous said...

toomight
italyymca
giving him ruined orgasms
no closing cost loans
ho bachmann trains china
serveriii
cueva cala llonga (the cathedral)
used industrial furnaces
mcoawrcb
flawed
international users group conference 2011 netherlands
toshiba 52hm84 lamp
tv ears where to buy
intercoms
stainrod
amerindians influence in trinidad
lisa ann first time
holcomb il home sale
cfssat
hail thee festival day
habitat for humanity resale
germicide
foghorn
recommended maintainance schedule for 2008 mercedes s500
powell cheval antique jewelry armoire prices
lg bd 570
ukplus
gsnu
custom hardwood floors llc
thai chef montclair
kenwood ts 2000 accessories ec2000
dehn
crown tape recorder
components of a team
nominees
melissaah
miniature village england
stickley tea table
dial in dictation software
larsonn
aspen
we run the city.net; club baltimore
hypoxia factors in alzheimers disease
medical treatment for starvation
#

Anonymous said...

lifetime
cueing
carpet tiles ireland
yellow pages canada
ice crack oahu
physios
art deco gold link bracelet
how to get funding for a non-profit corp
foxnews
filiz
chaparral sucker car
car or truck donations sites
danger monarch butterflies
troubleif
gosaid
credit card merchant accounts e
forensic pathology a handbook for pathologists
rearview mirror backup systems
seaid
coyote cell phone ring tones
lawyer malpractice medical nj
dificiles
winstonron
little smokies recipes
bejeweled blitz on facebook
software development connekt.in
anniversario
teenerjohnny
1800 pet meds discounts
garage door hardware rust]
bournemouth daily echo newspaper
nijadia
automobile floor mats
healthy hair 4u2@aol.com
africawe
stonehenge
share bills with family
system of a down merch
whitewater reading incentive programs
everlasting
verita
msi online library
suround sound on winamp
hair salon price list
#

Anonymous said...

getherlands
gane
personal injury lawsuit funds
places to visit in northern california
budget conferencing www.free-conference-call.org
abdurrahman
list of newspapers in virginia
when saint vincent de paul catholic church in miami, florida will be officially opened
bain
diceys
oakley straight jacket white chrome +red asian fit
armbanduhren mit metallgeh„use produzent
hazards aaa hockey program
yogaathlete
itorin
bond investment software
game boy color roms
payday loan idaho
itemsenior
spank abbey escort
schram enterprises melrose park, il
rotates
cetesb
bus services to kings lynn norfolk
nuclear electrical engineering
lake shore hotels in chicago
dataosu
psychologyh
central time of total eclipse of the moon 12-21-2010 over the us
kk zach short
half size vehicles
nakigoebark
doy l. daniels prison
dallas/ft worth metro couriers
comhugo
otbjhcw
luxury homes spokane washington
bachelors degree of nursing in kentucky
non profit colleges
pohjois
youhinawa
mama's little pirate?
lynn donald pope lagrange ca
cell phone companies
#

Anonymous said...

bulgaian
placeshe
laos map travel motocycle
inventek point of sale system
survival systems international
benefitted
"magellan gps www.gpsreviewhub.com"
adhesive bonding hot splicing epdm
stvdocoq
tdiscuss
cheap international travel
american airlines fear of flying
party amierica supplies
skillsensure
coraldating
track lighting installation
disney kids recipes
grand rapids backpages
podelljulia
ipod touch camera megapixle
brown architecture graduate school
lobster
fearnley
richard york merck canada
newsweek magazine covers 1965
1986 chevy l69 vacuum lines?
laveys
itarsi
elwebbs art photos
the life of riley
clark howard credit counciling
comcoat
ultrasonic jewellery cleaner
plant delivery www.houseplantsreviews.com
grooviest
prayerbut
but those who loose their life for me will find it
d cup swimwear coverage
lighthouse realty ltd
bassist
sightwas
los angeles brain injury lawyer
sarita choudhury wikepedia
alchemy for windows pyramid
#

Anonymous said...

cautioned
sameta
christmas bread recipes
the city of edmonton
eharmony's marriage counseling services
perhaps
joseph terrell pastor of grace community church
uniform accounting system
revolutions
wayneall
scarlett johanson and adoption
kitchen space saving ideas
wi badgers rosebowl game schudule
stevenwe
akurat
med spa in minnesota
men jerking off with toys
does tetnus bacteria live in dogs mouth
gamer
fantasy art woman with sword
alexandria immigration legal advice
clephan
francedale
bad credit auto financing car dealer
rat & caecum & hyperplasia
grand junction dinosaur valley
madfor
boots
organize charity car wash
42" sharp led tv
virginia natural gas
gurny
jerry hummel georgia
watch storage boxes
grantstation
bourgeousie
glow worm flexicom 24cx manual pdf
caterham car servicing sunbury
web application developer
doorfrail
ghar
cell phone service in indonesia
experian credit report personal
blue book used car prices
#

Anonymous said...

fixturing
bene
website application development
"ford expedition vs. f350"
pbs kids games
parkington
marion davies last will
james keel public library
linville
leggyhaving
girls seth macfarlane slept with
pnc bank commercial lending east brunswick
gold's gym power spin 230 battery cap
overspent
weiteren
obituarties johnson city tn wiseman
christoph or koch
akc weimaraner puppy breeders
foxtel
at what tempature does stryrafoam melt
just karaoke software
answermany
ferociously
home made water distiller
windows low e argon gas higher tax credit
interest free credit card offers
copyleft
linksbetzina
last mango in paris
dream act cons
red dead redemption fame honor
albion
dc universe pvp
miniature braided rugs
winterhe
rioni
personalized body jewelry
walter r johnson hither hills
web proxy theopenlist.info
jungles
sweetery
"address for clallam county sheriff"
donald trump ethnic background
mark harmon's father
#