You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by fachhoch <fa...@gmail.com> on 2011/06/15 21:25:47 UTC

new bee embedding karaf

Mine is a wicket , spring, hibernate   application , I deploy this in
weblogic , Now I want to use the benefits of osgi , I was   suggested to use
karaf, I  read the documentation trying to get started , Please advice me on
embedding karaf into my app ,are there any examples ?
 

--
View this message in context: http://karaf.922171.n3.nabble.com/new-bee-embedding-karaf-tp3069036p3069036.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: new bee embedding karaf

Posted by Caspar MacRae <ea...@gmail.com>.
If you can't move from weblogic then the only immediately obvious routes
are;

1) embedding a framework - you almost certainly won't be needing the extras
provided by Karaf, keep it simple code against standard framework launching
API introduced in 4.2 (note; you'll lose a lot of OSGi goodness, e.g. your
entities will need to be deployed on the weblogic side as would your OSGi
services' interfaces - so you could dynamically deploy fixes but not add
functionality public outside of the OSGi framework)

2) remoting - there are a number of distributed OSGi options available,
Apache CXF and ECF (Eclipse Communication Framework) - you could connect to
these via a number of transports; web services etc

3) use some OSGi demo apps to prove the investment is worth the policy shift
(whoever sets this policy *should* be technically minded enough to see the
worth clearly)

With option 2, you may as well use standard JEE stuff - then you're just
dealing with the remoting and load-balancing will provide the pluggable
illusion (minimal rewrite, familiar territory, well documented old school),
though the thought of sticky sessions with Wicket sends shudders down my
spine.

If you go down the embedded route, then "OSGi in Action"
http://www.manning.com/hall/ has a good chapter explaining embedding (AFAIKR
full source) and will provide a good grounding in OSGi too.

On an aside; the thing that appears to draw people to OSGi is the true
hot-deploy, pluggable nature - but it's real virtue, as most discover are
the consistent, minimal and emergent qualities of the framework's
architecture (look at how the remote services spec so elegantly dovetails
with existing framework).

I think you're in the difficult of position of seeing the cake but not being
allowed to eat it =)



On 15 June 2011 22:28, fachhoch <fa...@gmail.com> wrote:

>  Thanks for ur reply, I cannot move from weblogic , its beyound my control,
> What I want is benefits of osgi in my application like update a module
> without restarting container or add new features all this..I cannot move
> from weblogic for now and canot rewrite my code, iam looking for some
> plugable framework which will provide me the osgi benefits.
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/new-bee-embedding-karaf-tp3069036p3069694.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

Re: new bee embedding karaf

Posted by fachhoch <fa...@gmail.com>.
 Thanks for ur reply, I cannot move from weblogic , its beyound my control,
What I want is benefits of osgi in my application like update a module
without restarting container or add new features all this..I cannot move 
from weblogic for now and canot rewrite my code, iam looking for some
plugable framework which will provide me the osgi benefits.


--
View this message in context: http://karaf.922171.n3.nabble.com/new-bee-embedding-karaf-tp3069036p3069694.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: new bee embedding karaf

Posted by Achim Nierbeck <bc...@googlemail.com>.
Ok, another mailing list same question :-)

why use weblogic as the container, use Karaf as the container. Give us a
hint on what you
are trying to do. Are you in desperate need for the weblogic web-container?
If not, forget about it and try with standard Karaf. It's not about
"embedding" OSGi
or Karaf in your application it's about bringing your application into
OSGi and
after that you're able to use Karaf as a runtime for your
Wicket-Spring-Webapp :-)

Regards, Achim

Am 15.06.2011 21:25, schrieb fachhoch:
> Mine is a wicket , spring, hibernate   application , I deploy this in
> weblogic , Now I want to use the benefits of osgi , I was   suggested to use
> karaf, I  read the documentation trying to get started , Please advice me on
> embedding karaf into my app ,are there any examples ?
>  
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/new-bee-embedding-karaf-tp3069036p3069036.html
> Sent from the Karaf - User mailing list archive at Nabble.com.


-- 
-----

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>  Committer & Project Lead