Hi,

I want to explain my desire for OSGi in Lift, I understand that Lift
being split into modules and being able to load different modules is
desirable.

However what I want to be able to do is to dynamically compile Scala
code, load into OSGi and use it from my liftweb application. I don't
want to use JRebel as this is not for development, this is for my
website.
Why do I want to do that? I am making a code generator which generates
Scala code, I want the user to be able to try out the Scala code. So
some liftweb method would generate a .scala file and another would
package it into a OSGi and load the OSGi.

It seems not so difficult to do this, even to call OSGi API to reload
a OSGi bundle from a path, but in general need Liftweb to be in OSGi
if I am doing it in the same JVM. An alternative is that I provide it
as a web-service from a OSGi and call from Liftweb.

Oh if you know a different way achive my goal I am interested to hear.

Phil

On 2月6日, 上午5時16分, Heiko Seeberger <[email protected]>
wrote:
> OK ;-)
>
> This is what I answered to Martin so far:
>
> > I do not know such a tutorial, sorry. OSGi offers "hot deployment" out of
> > the box, hence you do not need any JRebel or so. But by default (according
> > to the spec) each bundle must be a JAR, hence you need a full build cycle.
> > Eclipse Equinox allows for hosted deployment of "usual" PDE projects.
>
> Currently Lift's OSGi support is constrained to single bundle (module)
> applications. Of course this is already beneficial, because all the
> dependencies (including lift-webkit etc.) are deployed as separate modules
> and therefore can be updated separately. Also it should be possible to
> deploy different Lift apps to one OSGi container.
>
> But on the long run I would like to see real modular Lift applications:
> Where one Lift app is made up from several bundles. Maybe some of them are
> installed later and contribute to the menus, the mapper etc.
>
> OSGi and JEE integration, namely web app integration, has been quiet for
> some time, but recently there seems to be some process. I am not sure
> whether the spec will deal with composite web apps: If not, we could pioneer
> in this field.
>
> Any ideas or questions?
>
> Heiko
>
> On 5 February 2010 18:18, David Pollak <[email protected]>wrote:
>
>
>
>
>
>
>
> > On Fri, Feb 5, 2010 at 9:06 AM, Heiko Seeberger <
> > [email protected]> wrote:
>
> >> On 5 February 2010 15:05, Martin Ellis <[email protected]> wrote:
>
> >>> Any offers/suggestions?  (Sorry, I realise the question more about
> >>> OSGI than lift)
>
> >> Indeed, let's discuss this off-list ...
>
> > Can you discuss it on-list?  I'd like to learn.
>
> >> Heiko
>
> >> Work: weiglewilczek.com
> >> Blog: heikoseeberger.name
> >> Follow me: twitter.com/hseeberger
> >> OSGi on Scala: scalamodules.org
> >> Lift, the simply functional web framework: liftweb.net
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Lift" group.
> >> To post to this group, send email to [email protected].
> >> To unsubscribe from this group, send email to
> >> [email protected]<liftweb%[email protected]>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/liftweb?hl=en.
>
> > --
> > Lift, the simply functional web frameworkhttp://liftweb.net
> > Beginning Scalahttp://www.apress.com/book/view/1430219890
> > Follow me:http://twitter.com/dpp
> > Surf the harmonics
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Lift" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<liftweb%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/liftweb?hl=en.
>
> --
> Heiko Seeberger
>
> Work: weiglewilczek.com
> Blog: heikoseeberger.name
> Follow me: twitter.com/hseeberger
> OSGi on Scala: scalamodules.org
> Lift, the simply functional web framework: liftweb.net- 隱藏被引用文字 -
>
> - 顯示被引用文字 -

-- 
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.

Reply via email to