The backend is home grown background server which access the same database as Web apps and prepares things for Web apps. I can run separate server and communicates but that means twice as many database connections and memory usage as oppose to using same process for both Lift and server. I did not work with servlets before but as i understand it is a background server already, i was thinking to extend it with some scheduling and threaded job ability.
On Jul 10, 4:03 am, Timothy Perrett <timo...@getintheloop.eu> wrote: > You dont mention the kind of backend process you want to talk to, but > you may well be interested in this post I wrote about > lift-amqp:http://is.gd/CkPX > > Included is a neat example of how you can get inter-process > communication using middleware messaging and it explains in fair > detail the AMQP implementation in Lift. Perhaps you could send > messages to and from your backend from your lift app? > > Cheers, Tim > > On Jul 10, 1:27 am, Vlad Seryakov <vserya...@gmail.com> wrote: > > > I am building Web application using Lift (my first one) which is the > > port of existing Tcl/Aolserver based application. In the existing one > > i have two parts: Web and backend. Backedn part consists of jobs > > running in the background from time to time using schedule or on > > demand. I am trying to figure out the architecture and practical way > > of doing this in servlet/Lift environment. I used to have telnet > > interface but this is not a requirement, i can test using special > > temporary Web interface. Is there any recommendation or experience > > regarding such applications? > > for example, i have special job for importing huge Xml files into the > > database. The problem of loading big Xml files in Scala is already a > > challenge but for now i assume i have unlimited memory. The problem i > > have how to test it. Using scala interpreter mode i could test the Xml > > loading and parsing, now i need to load it into database and i have > > Mapper setup for my schema. Calling this job from simple Web snippet > > is my only choice? > > > Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---