Thanks Rakesh, Gregory, and Will,
All your responses are so helpful. According to your suggestions, I need Groovy embeddable, so I just installed Groovy module 1.0 and it is working. Next I need create my new command by extending MgnlCommand. I will ask for further help later. Sean Rakesh Vidyadharan wrote: > > Hi Sean, > > I have not used the Groovy Scheduler, but the standard scheduler works (I > included the groovy embedded under WEB-INF/lib). All you need to do is > extend MgnlCommand in your groovy scripts, and then register these > commands with your module (or add to an existing module). You can copy > the config:/modules/scheduler/config/jobs/demo and paste to the parent > node. Change the command, repository etc. as appropriate and you should > be all set. If using your own module, I think the command needs to be > under config:/modules/<yourmodule>/commands/<yourmodule>/<mycommand>. All > a command node requires is a class property, which will be your groovy > class. > > Rakesh > > > On 22/06/2010 13:42, "Sean Zheng" <[email protected]> wrote: > > > > > Hi Rakesh, > > That is really what I am looking for. I need use Groovy Scheduler to run > Groovy scripts to import data from business system(based on SQL Server), > then publish the data by Magnolia. > > But I cannot find any further instructions about this. Could you please > give > me some clue? > > Thanks > > Sean > > > > Rakesh Vidyadharan wrote: >> >> I am not sure if there is anything out of the box, but I wrote a bunch of >> groovy scripts that imported the data I wanted from SQL Server into a >> standard JackRabbit repository. I then exported the repository, and made >> that part of my module bootstrap sequence to import all the content. We >> also have a bunch of updater groovy scripts that are run via the Magnolia >> scheduler that update the initial content with updated content from the >> backend database. >> >> Rakesh >> >> >> On 22/06/2010 12:30, "Sean Zheng" <[email protected]> wrote: >> >> >> >> >> Hi All, >> >> I am new to Magnolia and start using it in my project. I cannot find a >> step-by-step instructions about how to import SQL Server data into >> Magnolia(I am working in Eclipse). Who kindly let me know where I can >> find >> this manual? or which module I should review? >> >> Thanks in advance. >> >> Sean >> -- >> View this message in context: >> http://old.nabble.com/How-to-import-data-from-SQL-Server-to-repo-tp28962840p28962840.html >> Sent from the Magnolia - User mailing list archive at Nabble.com. >> >> >> ---------------------------------------------------------------- >> For list details see >> http://www.magnolia-cms.com/home/community/mailing-lists.html >> To unsubscribe, E-mail to: <[email protected]> >> ---------------------------------------------------------------- >> >> >> >> ---------------------------------------------------------------- >> For list details see >> http://www.magnolia-cms.com/home/community/mailing-lists.html >> To unsubscribe, E-mail to: <[email protected]> >> ---------------------------------------------------------------- >> >> >> > > -- > View this message in context: > http://old.nabble.com/How-to-import-data-from-SQL-Server-to-repo-tp28962840p28963561.html > Sent from the Magnolia - User mailing list archive at Nabble.com. > > > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- > > > > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- > > > -- View this message in context: http://old.nabble.com/How-to-import-data-from-SQL-Server-to-repo-tp28962840p28966109.html Sent from the Magnolia - User mailing list archive at Nabble.com. ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
