RE: How to set orion to perform a timely task.. (CRON???)
you could use the cron or at to fire off a java class that hits the jsp using the java.net package -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Robert S. Sfeir Sent: 06 March 2001 17:18 To: Orion-Interest Subject: Re: How to set orion to perform a timely task.. (CRON???) Someone suggesting hitting a JSP with a cron... how can you hit a URL with a CRON or AT command, I didn't think you could do that! Perhaps I misunderstood the explanation? R Robert S. Sfeir Director of Software Development PERCEPTICON corporation San Francisco, CA 94123 w - http://www.percepticon.com/ e- [EMAIL PROTECTED] t - (415) 749-2900 x205
RE: How to set orion to perform a timely task.. (CRON???)
you can use wget in some *nix'es I have a java based tool that does basically the same work that wget does; I'll post it tomorrow > -Original Message- > From: Joseph B. Ottinger [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, March 06, 2001 3:40 PM > To: Orion-Interest > Subject: Re: How to set orion to perform a timely task.. (CRON???) > > > Sure you can. > > * * * * * lynx --dump http://myhost/hiteveryminute.jsp > /dev/null > > This submits something to hiteveryminute.jsp every, um, minute. > > On Tue, 6 Mar 2001, Robert S. Sfeir wrote: > > > Someone suggesting hitting a JSP with a cron... how can > you hit a URL with > > a CRON or AT command, I didn't think you could do that! Perhaps I > > misunderstood the explanation? > > > > R > > > > > > Robert S. Sfeir > > Director of Software Development > > PERCEPTICON corporation > > San Francisco, CA 94123 > > w - http://www.percepticon.com/ > > e- [EMAIL PROTECTED] > > t - (415) 749-2900 x205 > > > > > > --- > Joseph B. Ottinger [EMAIL PROTECTED] > http://epesh.com/ IT Consultant > >
Re: How to set orion to perform a timely task.. (CRON???)
One way is to write a simple Java program that uses URLConnection to hit your JSP page and have CRON drive your simple program. tim. > Someone suggesting hitting a JSP with a cron... how can you hit a URL with > a CRON or AT command, I didn't think you could do that! Perhaps I > misunderstood the explanation? > > R > > > Robert S. Sfeir > Director of Software Development > PERCEPTICON corporation > San Francisco, CA 94123 > w - http://www.percepticon.com/ > e- [EMAIL PROTECTED] > t - (415) 749-2900 x205 > >
RE: How to set orion to perform a timely task..
Title: SV: How to set orion to perform a timely task.. First of all, there is an option to load a servlet at startup so that you don't need to wait for the first request comes in. Secondly I prefer this way better. You could create a separate ejb client application to start your timer daemon thread and package with your ear file. Then configure your orion-application.xml to start your embeded ejb application at start-up. Conrad -Original Message-From: Yves Bossel [mailto:[EMAIL PROTECTED]]Sent: Tuesday, March 06, 2001 6:18 AMTo: Orion-InterestSubject: RE: How to set orion to perform a timely task.. Could you explain me the servlet solution with a Timer, please ? The point that I do not undestand is following: On one hand, the servlet cannot stay loaded forever, probably the server will detect and unload unused servlets.On the other hand, in order to activate a servlet, the server has to receive an HTTP request to the tcp/ip port that server is listening to, therefore the Timer should implemente a tcp/ip socket. So, how can I wake up my servlet without having to write a socket ? Thanks for explanations, Yves Bossel
Re: How to set orion to perform a timely task.. (CRON???)
Sure you can. * * * * * lynx --dump http://myhost/hiteveryminute.jsp > /dev/null This submits something to hiteveryminute.jsp every, um, minute. On Tue, 6 Mar 2001, Robert S. Sfeir wrote: > Someone suggesting hitting a JSP with a cron... how can you hit a URL with > a CRON or AT command, I didn't think you could do that! Perhaps I > misunderstood the explanation? > > R > > > Robert S. Sfeir > Director of Software Development > PERCEPTICON corporation > San Francisco, CA 94123 > w - http://www.percepticon.com/ > e- [EMAIL PROTECTED] > t - (415) 749-2900 x205 > > --- Joseph B. Ottinger [EMAIL PROTECTED] http://epesh.com/ IT Consultant
Re: How to set orion to perform a timely task.. (CRON???)
on unix, you could d/l and use the wget command mike - Original Message - From: "Robert S. Sfeir" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Tuesday, March 06, 2001 12:18 PM Subject: Re: How to set orion to perform a timely task.. (CRON???) > Someone suggesting hitting a JSP with a cron... how can you hit a URL with > a CRON or AT command, I didn't think you could do that! Perhaps I > misunderstood the explanation? > > R > > > Robert S. Sfeir > Director of Software Development > PERCEPTICON corporation > San Francisco, CA 94123 > w - http://www.percepticon.com/ > e- [EMAIL PROTECTED] > t - (415) 749-2900 x205 > > >
Re: How to set orion to perform a timely task.. (CRON???)
Someone suggesting hitting a JSP with a cron... how can you hit a URL with a CRON or AT command, I didn't think you could do that! Perhaps I misunderstood the explanation? R Robert S. Sfeir Director of Software Development PERCEPTICON corporation San Francisco, CA 94123 w - http://www.percepticon.com/ e- [EMAIL PROTECTED] t - (415) 749-2900 x205
RE: How to set orion to perform a timely task..
Title: SV: How to set orion to perform a timely task.. Could you explain me the servlet solution with a Timer, please ? The point that I do not undestand is following: On one hand, the servlet cannot stay loaded forever, probably the server will detect and unload unused servlets.On the other hand, in order to activate a servlet, the server has to receive an HTTP request to the tcp/ip port that server is listening to, therefore the Timer should implemente a tcp/ip socket. So, how can I wake up my servlet without having to write a socket ? Thanks for explanations, Yves Bossel
RE: How to set orion to perform a timely task..
Title: SV: How to set orion to perform a timely task.. We use a client application that runs in the orion vm that uses a scheduled TIMER - they've been added in JDK1.3 Timer t = new Timer(true); t.schedule(new Job(), 0, 20); Jaco -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Magnus RydinSent: 05 March 2001 10:08To: Orion-InterestSubject: SV: How to set orion to perform a timely task.. how about an client-application that does some operation on scheudled hours? WR > -Ursprungligt meddelande- > Fran: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Skickat: den 3 mars 2001 09:44 > Till: Orion-Interest > Amne: How to set orion to perform a timely task.. > > > Hello, > I need to have my EJB perform some DB operation at midnight everyday. > How do I do that? > In PC, I could create a timer object to do that with VC++, but in Java > it does not seem to have such a functionality. And I think it's ideal > to handle it in the server side rather than play with Java. > In other words, orion may have such a cron function built in to do > something in a timely manner. > If anyone has any experience with this, please tell me how. > Thank you very much in advance. > > > Simon > >
RE: How to set orion to perform a timely task..
Title: SV: How to set orion to perform a timely task.. We use a client application that runs in the orion vm that uses a scheduled TIMER - they've been added in JDK1.3 Timer t = new Timer(true); t.schedule(new Job(), 0, 20); Jaco -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Magnus RydinSent: 05 March 2001 10:08To: Orion-InterestSubject: SV: How to set orion to perform a timely task.. how about an client-application that does some operation on scheudled hours? WR > -Ursprungligt meddelande- > Fran: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Skickat: den 3 mars 2001 09:44 > Till: Orion-Interest > Amne: How to set orion to perform a timely task.. > > > Hello, > I need to have my EJB perform some DB operation at midnight everyday. > How do I do that? > In PC, I could create a timer object to do that with VC++, but in Java > it does not seem to have such a functionality. And I think it's ideal > to handle it in the server side rather than play with Java. > In other words, orion may have such a cron function built in to do > something in a timely manner. > If anyone has any experience with this, please tell me how. > Thank you very much in advance. > > > Simon > >
RE: How to set orion to perform a timely task..
Title: SV: How to set orion to perform a timely task.. Or if you're using JDK 1.3 there's always java.util.Timer (vastly underused IMHO). -mike -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Magnus RydinSent: Monday, March 05, 2001 7:08 PMTo: Orion-InterestSubject: SV: How to set orion to perform a timely task.. how about an client-application that does some operation on scheudled hours? WR > -Ursprungligt meddelande- > Fran: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Skickat: den 3 mars 2001 09:44 > Till: Orion-Interest > Amne: How to set orion to perform a timely task.. > > > Hello, > I need to have my EJB perform some DB operation at midnight everyday. > How do I do that? > In PC, I could create a timer object to do that with VC++, but in Java > it does not seem to have such a functionality. And I think it's ideal > to handle it in the server side rather than play with Java. > In other words, orion may have such a cron function built in to do > something in a timely manner. > If anyone has any experience with this, please tell me how. > Thank you very much in advance. > > > Simon > >
Re: How to set orion to perform a timely task..
I think, the most clean approach would be to have a cron job which starts an EJB client every time. Bye, Falk - Original Message - From: <[EMAIL PROTECTED]> > I need to have my EJB perform some DB operation at midnight everyday. > How do I do that?
RE: How to set orion to perform a timely task..
Or you could start a daemon thread in a servlet to perform as cron; we do that to initialize services we need. Flux is great too, but it's out of my budget... ;-) > -Original Message- > From: Mike Sick [mailto:[EMAIL PROTECTED]] > Sent: Saturday, March 03, 2001 3:19 PM > To: Orion-Interest > Subject: Re: How to set orion to perform a timely task.. > > > We use Flux. It was easy to integrate and it's reliable. > > see: > http://www.simscomputing.com/ > http://www.simscomputing.com/products/ > > > - Original Message - > From: <[EMAIL PROTECTED]> > To: "Orion-Interest" <[EMAIL PROTECTED]> > Sent: Saturday, March 03, 2001 12:43 PM > Subject: How to set orion to perform a timely task.. > > > > Hello, > > I need to have my EJB perform some DB operation at midnight > everyday. > > How do I do that? > > In PC, I could create a timer object to do that with VC++, > but in Java > > it does not seem to have such a functionality. And I think > it's ideal > > to handle it in the server side rather than play with Java. > > In other words, orion may have such a cron function built in to do > > something in a timely manner. > > If anyone has any experience with this, please tell me how. > > Thank you very much in advance. > > > > > > Simon > > > > > > > >
Re: How to set orion to perform a timely task..
We use Flux. It was easy to integrate and it's reliable. see: http://www.simscomputing.com/ http://www.simscomputing.com/products/ - Original Message - From: <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Saturday, March 03, 2001 12:43 PM Subject: How to set orion to perform a timely task.. > Hello, > I need to have my EJB perform some DB operation at midnight everyday. > How do I do that? > In PC, I could create a timer object to do that with VC++, but in Java > it does not seem to have such a functionality. And I think it's ideal > to handle it in the server side rather than play with Java. > In other words, orion may have such a cron function built in to do > something in a timely manner. > If anyone has any experience with this, please tell me how. > Thank you very much in advance. > > > Simon > > >