Background tasks

17 views
Skip to first unread message

Kazuo KASHIMA

unread,
Feb 10, 2011, 8:17:25 PM2/10/11
to Lift
Hi there,

This is my first post here. I started using Lift a few months ago and
find it great.
Thanks for making such a great framework.

Now, I'm working on a Lift application and would like to have
background tasks
in Lift environment. I found a similar post shown below, but it seems
different from
what I want to do.
http://groups.google.com/group/liftweb/browse_thread/thread/ce536649e6e83867/ffde3a3d619adf9d

I want to have background tasks that:
- run as a separate process (by a different OS user for security
reasons)
- can use the models and libraries in the Lift project

Should I make a new sbt project (or sub project) that depends on the
Lift one
or is there a better way?

Thanks,
Kaz

Naftoli Gugenheim

unread,
Feb 10, 2011, 8:48:06 PM2/10/11
to liftweb
I think subprojects is a good approach. For instance a project have mine has one subproject with the Mapper classes and related logic, and several different frontends as their own subproject. The advantage is that sbt tracks dependencies and knows what needs to be recompiled when. Note that the parent project does not get any code; it just holds the other projects.



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


Kazuo KASHIMA

unread,
Feb 10, 2011, 10:26:13 PM2/10/11
to Lift
Hi Naftoli,

Thanks for your reply. I haven't actually used sbt sub projects, but
I'll give that a try.

Kaz

On 2月11日, 午前10:48, Naftoli Gugenheim <naftoli...@gmail.com> wrote:
> I think subprojects is a good approach. For instance a project have mine has
> one subproject with the Mapper classes and related logic, and several
> different frontends as their own subproject. The advantage is that sbt
> tracks dependencies and knows what needs to be recompiled when. Note that
> the parent project does not get any code; it just holds the other projects.
>
> On Thu, Feb 10, 2011 at 8:17 PM, Kazuo KASHIMA <k4...@kazu.tv> wrote:
> > Hi there,
>
> > This is my first post here. I started using Lift a few months ago and
> > find it great.
> > Thanks for making such a great framework.
>
> > Now, I'm working on a Lift application and would like to have
> > background tasks
> > in Lift environment. I found a similar post shown below, but it seems
> > different from
> > what I want to do.
>
> >http://groups.google.com/group/liftweb/browse_thread/thread/ce536649e...
Reply all
Reply to author
Forward
0 new messages