Hi Vikash,

Welcome aboard :)

There are different ways to accomplish more or less the same things in OSGi:

1. 'Pure API'
2. DS (Declarative Services)
3. iPOJO
4. Spring/DM

I'd say that you need to choose one and go ahead. When you get
experience you could explore other flavors but trying to understand
everything in parallel at the same time from day one is too much.

I've chosen DS because, IMHO, it's simple enough, powerful enough, non
intrusive and lightweight.
Other people may disagree... anyway... it's  matter of choosing what
better satisfies your requirements.

The 'pure API' you will have to use anyway. What I mean is that the
other 3 paradigms can make your life much easier and more productive. If
you have a look at DS (it's part of official 4.2 specification) and you
compare against 'Whiteboard Pattern' you will understand. Well... lots
of things to study... :)

I've created some proofs of concept using DS and I use Maven in order to
automagically build everything.

I've put my humble projects online. Beware they are only intended for
study/exploration, etc: most things work pretty well but eventually
something may be broken.

http://www.jquantlib.org/ftp/rgomes/downloads/jquantlib/tmp/multi-projects.tar.bz2

If you have questions, please let me know.

Credits: most code is based on Neil Bartlett's book:
http://neilbartlett.name/blog/osgibook/
... a must read!

Have fun :)

Richard Gomes
M: +44(77)9955-6813
http://www.jquantlib.org/index.php/User:RichardGomes
twitter: frgomes

JQuantLib is a library for Quantitative Finance written in Java.
http://www.jquantlib.org/
twitter: jquantlib



Vikash Anand wrote:
> Hi All,
>
> I am new to OSGI. Infact saw OSGI yesterday itself. I have gone
> through the
> tutorials on JavaWorld and ServerSide and have made a small "Hello World"
> application and have ran it successfully. I have even exported it as
> plugin/jar.
>
> Now what I want is to create a client application that uses this
> jar/plugin.
> Please help me or give some pointers how to do it. I had placed the
> same in
> plugin folder so that that becomes part of Eclipse and could see classes
> created by me in client application but I do not know how to invoke
> services
> ("Hello World" service) from that client application.
>
> Any help with code or pointers would be helpful.
>
> -- 
> Thanks and Regards,
> Vikash Anand.
> ------------------------------------------------------------------------
>
> _______________________________________________
> OSGi Developer Mail List
> [email protected]
> https://mail.osgi.org/mailman/listinfo/osgi-dev
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to