RE: How to set orion to perform a timely task.. (CRON???)

2001-03-06 Thread Daryl Hall

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???)

2001-03-06 Thread Juan Lorandi (Chile)

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???)

2001-03-06 Thread Tim Endres

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..

2001-03-06 Thread Conrad Chan
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???)

2001-03-06 Thread Joseph B. Ottinger

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???)

2001-03-06 Thread Mike Sick

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[2]: SV: How to set orion to perform a timely task..

2001-03-06 Thread Rafael Alvarez

If you put the code at the init function, you can force the servlet to
load at startup by putting the tag

priorityNumber

in the servlet description in web.xml. priorityNumber defines the
order in which the servlets will be loaded at startup.
-- 
Best regards,
 Rafaelmailto:[EMAIL PROTECTED]






Re: How to set orion to perform a timely task.. (CRON???)

2001-03-06 Thread Robert S. Sfeir

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: SV: How to set orion to perform a timely task..

2001-03-06 Thread Juan Lorandi (Chile)

geez, you're right...
I have built a java based equivalent of wget(comes with debian), which you
could use to hit the jsp... I'll post it in my site tomorrow

JP

> -Original Message-
> From: Jesse Schoch [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 05, 2001 9:31 PM
> To: Orion-Interest
> Subject: Re: SV: How to set orion to perform a timely task..
> 
> 
> a simple jsp that activated your functions activated by a 
> cron script (or
> at on NT) would work great, and you wouldn't have to write a schedler
> 
> -jesse schoch
> 
> 
> On Mon, 5 Mar 2001, Magnus Rydin wrote:
> 
> > 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..

2001-03-06 Thread Yves Bossel
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: SV: How to set orion to perform a timely task..

2001-03-05 Thread Jesse Schoch

a simple jsp that activated your functions activated by a cron script (or
at on NT) would work great, and you wouldn't have to write a schedler

-jesse schoch


On Mon, 5 Mar 2001, Magnus Rydin wrote:

> 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..

2001-03-05 Thread Jaco van Rooijen
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..

2001-03-05 Thread Jaco van Rooijen
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..

2001-03-05 Thread Mike Cannon-Brookes
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 > 
  > 


SV: How to set orion to perform a timely task..

2001-03-05 Thread Magnus Rydin
Title: 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..

2001-03-03 Thread Falk Langhammer

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..

2001-03-03 Thread Juan Lorandi (Chile)

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..

2001-03-03 Thread Mike Sick

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
> 
> 
> 





How to set orion to perform a timely task..

2001-03-03 Thread orion

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