RE: [JBoss-user] scheduler service

2003-10-10 Thread Stephane Nicoll
no -Original Message- From: Alwyn Schoeman [mailto:[EMAIL PROTECTED] Sent: Friday, October 10, 2003 11:01 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] scheduler service Hi, Must your MBean also implement Schedulable in this case? On Fri, Oct 03, 2003 at 09:03:35PM +0800, Scott M

Re: [JBoss-user] scheduler service

2003-10-10 Thread Alwyn Schoeman
Hi, Must your MBean also implement Schedulable in this case? On Fri, Oct 03, 2003 at 09:03:35PM +0800, Scott M Stark wrote: > An example that invokes the listThreadDump op on the > jboss.system:type=ServerInfo mbean: > > > name="jboss.test:service=Scheduler,name=SchedulableMBeanExa

Re: [JBoss-user] scheduler service

2003-10-03 Thread harm
Thanks for the quick reply. In which file should I add this? Thanks, Harm. Scott M Stark <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 10/03/2003 03:03 PM Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject Re: [JBoss-user] scheduler service An example that i

RE: [JBoss-user] scheduler service

2003-10-03 Thread Stephane Nicoll
Hello again, I hope you kept my last mail about MBeans. We gonna call it with a scheduler, called ConnectorService: Just add this in your jboss-service.xml to schedule your MBean jboss.j2ee:service=EjbModule,module=KialaPointServer.jar jboss:service=Naming kiala.b2b:servic

Re: [JBoss-user] scheduler service

2003-10-03 Thread Scott M Stark
An example that invokes the listThreadDump op on the jboss.system:type=ServerInfo mbean: true jboss.system:type=ServerInfo listThreadDump() NOW 1 10 -- Scott Stark Chief Technology Officer JBoss Group, LLC

Re: [JBoss-user] Scheduler Question

2003-07-23 Thread manish sharan
Hi, Well I havent use the Scheduler in 3.2x but I have been heavisly using home grown job sceduler based on jboss scheduler mbean for Jboss 3.0.x. Basically I modified the jboss scheduler mbean to write a timer tick to a queue. I have a Schedule processor mdb which listen to this queue and e

Re: [JBoss-user] Scheduler Question

2003-07-23 Thread Brian Wallis
On Wed, 23 Jul 2003 09:27 pm, Magesh Prabhu wrote: > Hi Guys, > > My application heavily depends on job Scheduling and relies on the > notification by the Scheduler. I tried using Quartz Scheduler and ran in to > deadlock issues. I'm investigating on the dead-lock issues and I found > Quartz Schedu

Re: [JBoss-user] Scheduler MBean

2003-07-19 Thread Phil Shrimpton
On Friday 18 July 2003 21:56, Phil Shrimpton wrote: Hi, > What I am trying at the moment is milliseconds past 1st July 1am, which > should exclude the date format altogether This worked. Phil -- 11:33am up 94 days, 25 min, 1 user, load average: 1.20, 1.11, 1.08 ICQ: 760757

Re: [JBoss-user] Scheduler MBean

2003-07-18 Thread Phil Shrimpton
On Friday 18 July 2003 17:36, Scott M Stark wrote: Hi, > This will work, but you do get drift, there is no correction for daylight > savings, leap year, support for holidays, etc. Not worried about slippage, unless it is hours I just need something to run, after midnight, and before people g

Re: [JBoss-user] Scheduler MBean

2003-07-18 Thread Phil Shrimpton
On Friday 18 July 2003 14:23, Brian Wallis wrote: Hi, > > Does not seem to. 'NOW' + 8640 works every 24 hours from when I > > start it, but I can't seem to get it to work if I enter a date/time value > > And you don't get any errors in the log? No, but I do if I enter an incorrect date for

Re: [JBoss-user] Scheduler MBean

2003-07-18 Thread Scott M Stark
This will work, but you do get drift, there is no correction for daylight savings, leap year, support for holidays, etc. Our scheduler is a trivial interval based service that is not approriate for cron like or more sophisticated requirements. You might look at quartz and improving its integrat

Re: [JBoss-user] Scheduler MBean

2003-07-18 Thread Brian Wallis
On Fri, 18 Jul 2003 11:43 pm, Phil Shrimpton wrote: > Does not seem to. 'NOW' + 8640 works every 24 hours from when I start > it, but I can't seem to get it to work if I enter a date/time value And you don't get any errors in the log? (I often have problems getting date strings correct :-) I

Re: [JBoss-user] Scheduler MBean

2003-07-18 Thread Marek Lange
Brian Wallis wrote: On Fri, 18 Jul 2003 10:20 pm, Phil Shrimpton wrote: Hi, I have implemented a schedualed MBean, and all works fine, I can get it 'triggering' every minute, every 10 etc., but I need it to 'trigger' at 1am every day, and can't find the correct combination of attributes. Has anyo

Re: [JBoss-user] Scheduler MBean

2003-07-18 Thread Phil Shrimpton
On Friday 18 July 2003 12:52, [EMAIL PROTECTED] wrote: Hi, > I don't know the answer to your question! But if there is no answer, > you could use an algorithm such as the following.. [snip] Thanks, thats my backup plan, but I am sure there must be a 'proper' way to do it. Phil -- 1:22pm

Re: [JBoss-user] Scheduler MBean

2003-07-18 Thread Phil Shrimpton
On Friday 18 July 2003 13:09, Brian Wallis wrote: Hi, > > I have implemented a schedualed MBean, and all works fine, I can get it > > 'triggering' every minute, every 10 etc., but I need it to 'trigger' at > > 1am every day, and can't find the correct combination of attributes. > > Doesn't someth

Re: [JBoss-user] Scheduler MBean

2003-07-18 Thread Brian Wallis
On Fri, 18 Jul 2003 10:20 pm, Phil Shrimpton wrote: > Hi, > > I have implemented a schedualed MBean, and all works fine, I can get it > 'triggering' every minute, every 10 etc., but I need it to 'trigger' at 1am > every day, and can't find the correct combination of attributes. > > Has anyone got a

RE: [JBoss-user] Scheduler MBean

2003-07-18 Thread Danny . Yates
Hi, I don't know the answer to your question! But if there is no answer, you could use an algorithm such as the following: (Please excuse the pseudo-code, I've never written an MBean, so don't actually know the interface) class MyMBean extends MBean { private boolean runToday = false;

Re: [JBoss-user] scheduler service

2003-03-27 Thread Guy Rouillier
Karri Niemelä wrote: We are trying to use the scheduler service with jboss (3.0.4). It works ok, but we have the following problem: This scheduled task is bit time consuming, it takes about 5 min's to complete. When this scheduled task is started, jboss isnt "completing" any other tasks, although

Re: [JBoss-user] Scheduler in JBoss

2002-12-31 Thread Guy Rouillier
Have you taken a look at testsuite? There is an example there. See \jboss-3.0.4-src\testsuite\src\resources\util\test-default-scheduler-service .xml and \jboss-3.0.4\server\default\deploy\scheduler-service.xml. - Original Message - From: "Thaer Hani Al-Ibaisi" <[EMAIL PROTECTED]> To: <[E

Re: [JBoss-user] Scheduler

2002-12-17 Thread Randy Shoup
he binary distribution), but the syntax was exactly what you have below. David Jencks wrote: Date: Mon, 16 Dec 2002 15:36:45 -0500 From: David Jencks <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Scheduler Reply-To: [EMAIL PROTECTED] When you had the .sar in the .ear, did y

Re: [JBoss-user] Scheduler

2002-12-16 Thread Glenn Lewis
The scheduler does a findAll() using the localHome for a bean. I tried making the scheduler mbean depend on the jboss.j2ee localHome mbean, but it made no difference. I traced it through a bit. The localHome can be looked up okay and is not null, however the findAll() fails with a null pointer

Re: [JBoss-user] Scheduler

2002-12-16 Thread David Jencks
nnan <[EMAIL PROTECTED]> > > To: "'[EMAIL PROTECTED]'" > > <[EMAIL PROTECTED]> > > Subject: RE: [JBoss-user] Scheduler > > Date: Mon, 16 Dec 2002 09:57:56 -0800 > > Reply-To: [EMAIL PROTECTED] > > > > This message is

Re: [JBoss-user] Scheduler

2002-12-16 Thread Randy Shoup
AIL PROTECTED]> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> Subject: RE: [JBoss-user] Scheduler Date: Mon, 16 Dec 2002 09:57:56 -0800 Reply-To: [EMAIL PROTECTED] This message is in MIME format. Since your mail reader does not understand this format, some or all of

RE: [JBoss-user] Scheduler

2002-12-16 Thread JD Brennan
Title: RE: [JBoss-user] Scheduler Yep, we have the same problem.  Your original post said you needed your scheduler to access a class in your .ear.  If you need to access a bean, then you can't just put the .sar in the .ear - We solved this by just sleeping for 60 seconds and then sta

Re: [JBoss-user] Scheduler

2002-12-15 Thread David Jencks
mmm, forgot about that one. That one's from the jsr-77 stuff and doesn't participate in the service lifecycle so you can't use it for dependencies. Look for a jboss.j2ee mbean for your ejb and try it. You are correct that you add the depends element to the scheduler. david jencks On 2002.12.1

Re: [JBoss-user] Scheduler

2002-12-15 Thread Glenn Lewis
I don't exactly know how the scheduler works, but if it is deployed as an mbean from a *-service.xml Yes. file you can include an anonymous depends element to the mbean that is created as the ejb's container (look in the jmx-console). Then the scheduler won't start until the ejb is also starte

Re: [JBoss-user] Scheduler

2002-12-15 Thread David Jencks
I don't exactly know how the scheduler works, but if it is deployed as an mbean from a *-service.xml file you can include an anonymous depends element to the mbean that is created as the ejb's container (look in the jmx-console). Then the scheduler won't start until the ejb is also started and pre

Re: [JBoss-user] Scheduler

2002-12-15 Thread Glenn Lewis
Thanks for the advice. We can deploy the scheduler MBean by putting it inside a .sar, but we get a similar problem: the first time the scheduler is invoked it does a findAll on a bean that is not deployed. An error message is printed by the loginterceptor (so I'm not sure we can catch it). The

RE: [JBoss-user] Scheduler

2002-12-13 Thread JD Brennan
Title: RE: [JBoss-user] Scheduler We deploy our MBean by putting it inside a .sar inside our ejb .jar inside our .ear - there are probably other better ways, but this works for us. JD -Original Message- From: Glenn Lewis [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 12, 2002

RE: [JBoss-user] scheduler and javamail in Jboss 3.0

2002-06-27 Thread JD Brennan
Title: RE: [JBoss-user] scheduler and javamail in Jboss 3.0 Thanks, David.  Very interesting.  So is the page that says MBean View what you refer to as the detail page? That page has something called MBean Name that looks like jboss.j2ee:service=EJB,jndiName=Foo Is that the object name

RE: [JBoss-user] scheduler and javamail in Jboss 3.0

2002-06-27 Thread Qingxian Wang
You need to set dependency to make the scheduler to depend on the EJB. -Original Message- From: Natalie Wang [mailto:[EMAIL PROTECTED]] Sent: 27 June 2002 00:01 To: [EMAIL PROTECTED] Subject: [JBoss-user] scheduler and javamail in Jboss 3.0 Hi, I am using scheduler to call ejb, which

Re: [JBoss-user] scheduler and javamail in Jboss 3.0

2002-06-26 Thread David Jencks
You should be able to get the scheduler to wait for the ejb by: 1. Deploy your ejb, and look in the jmx viewer (port 8082) and find the mbean corresponding to the ejb. (in the j2ee section, not jsr77/management). Its object name is shown at the top of the detail page. 2. add a tag ejb-object-na