Login  Register

Re: [OFBiz] Users - How to use the Job Scheduler

Posted by David E. Jones on Jul 25, 2005; 8:01am
URL: http://ofbiz.116.s1.nabble.com/OFBiz-Users-How-to-use-the-Job-Scheduler-tp135177p135181.html


No, I'm not sure what that is. The install process I'm referring to  
gets the seed data into the database, usually with "ant run-install"  
or some such.

For more information, look at the Setup Guide or Basic Production  
Setup Guide. Both are linked to on the Docs & Books page of the  
ofbiz.org site.

-David


On Jul 24, 2005, at 11:15 PM, deepak sahu wrote:

> Hello David,
> What "install process" are you referring to?
> Are you referring to the following snippet:
>
> long startTime = new java.util.Date().getTime();
>  int frequency = RecurrenceRule.DAILY;
>  int interval = 1;
>  int count = 20;
>  LocalDispatcher dispatcher=dctx.getDispatcher();
>  dispatcher.schedule("myService",_context, startTime, frequency,
> interval, count);
>          }catch (GenericServiceException e){
>  Debug.logError("Error trying to Schedule Recurring payment Service: "
> + e.getMessage());
>         }
>
> Can you tell me where/how should I use the above snippet?
>
> Deepak
>
> On 7/22/05, David E. Jones <[hidden email]> wrote:
>
>>
>> You can't just put data into Entity Engine XML files, they must be
>> loaded through either the install process or the XML Import pages in
>> the WebTools webapp.
>>
>> -David
>>
>>
>> On Jul 22, 2005, at 10:00 AM, deepak sahu wrote:
>>
>>
>>> Hello Everyone,
>>> I am using OFBiz (version 5027) on Windows 2000.
>>> I have a requirement of running a particular piece of job after
>>> every 15 days.
>>> I came across the Job Scheduler feature of OFBiz and I think this is
>>> what I should use.
>>>
>>> After going through this list and the code in Order application I
>>> understand that to use a scheduled job I need to add
>>> MyAppScheduledServices.xml and make an entry in the
>>> ofbiz-component.xml of MyApp.
>>>
>>> Basically I copied the ProductScheduledServices.xml into MyApp\data
>>> and made required changes. I gave unique values for the
>>> recurrenceRuleId,recurrenceInfoIdand jobId. I gave the startDateTime
>>> as 2005-07-22 00:00:00.000 and runTime as 2005 07-22 15:00:00.000.
>>> I specified a service which has a System.out.println statement.  
>>> Next I
>>> restarted the server and waited for the service to be called. I got
>>> nothing.
>>> I checked the JobSandbox entity with webtools but didn't find any
>>> entry for my service.
>>>
>>> Can anybody plz tell me what I am missing?
>>> I would really appreciate some help.
>>>
>>> With Regards,
>>> Deepak
>>>
>>> _______________________________________________
>>> Users mailing list
>>> [hidden email]
>>> http://lists.ofbiz.org/mailman/listinfo/users
>>>
>>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.ofbiz.org/mailman/listinfo/users
>>
>>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users
>

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users

smime.p7s (3K) Download Attachment