Sending mails to contact lists

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
28 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Sending mails to contact lists

rajsaini
Hi,

I have created Announcement mailing list and now customers are
subscribing to this list. I want to send periodic email (Communication
Event) to the member of contact list. I searched on Google, Wiki and
mailing list archive but did not find any definite solution on sending
mails to the contact list subscribers..

Does such functionality exist in Ofbiz? If yes, can some one give a
small hint on how to achieve this?

Thanks,

Raj Saini


Reply | Threaded
Open this post in threaded view
|

Re: Sending mails to contact lists

Ray Barlow
Hi Raj,

In the marketing app click on contact list, then find your list, then
click on Comm Events and then Create New Contact List Comm Event should
land you here:
https://demo.hotwaxmedia.com/marketing/control/EditContactListCommEvent?contactListId=9000&DONE_PAGE=/marketing/control/ListContactList
based on the trunk demo server.

Set your from details and party roles (maybe N/A), fill your subject and
content and click save.

When you're happy with it change the status to "In-Progress" and click
save again. The comm events should then start to trigger and the email
flow, although you'll want to test it on a small list to start with. If
the list is clean and processes through OK the status should
automatically change to "Complete" when it is done but if there are
badly formatted email addresses that can stick the status and you will
need to manually mark as complete but you can review the logs to find
the errors.

Ray





Raj Saini wrote:

> Hi,
>
> I have created Announcement mailing list and now customers are
> subscribing to this list. I want to send periodic email (Communication
> Event) to the member of contact list. I searched on Google, Wiki and
> mailing list archive but did not find any definite solution on sending
> mails to the contact list subscribers..
>
> Does such functionality exist in Ofbiz? If yes, can some one give a
> small hint on how to achieve this?
>
> Thanks,
>
> Raj Saini
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Sending mails to contact lists

Ray Barlow
In reply to this post by rajsaini
Forgot to mention but I don't think the start and finish dates work or
not as I would have expected last time I looked so leave them blank for
your first testing.

Ray


Raj Saini wrote:

> Hi,
>
> I have created Announcement mailing list and now customers are
> subscribing to this list. I want to send periodic email (Communication
> Event) to the member of contact list. I searched on Google, Wiki and
> mailing list archive but did not find any definite solution on sending
> mails to the contact list subscribers..
>
> Does such functionality exist in Ofbiz? If yes, can some one give a
> small hint on how to achieve this?
>
> Thanks,
>
> Raj Saini
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Sending mails to contact lists

rajsaini
In reply to this post by Ray Barlow
Hi Ray,

Thanks a ton. I will give it a try.

Thanks again,

Raj

Ray Barlow wrote:

> Hi Raj,
>
> In the marketing app click on contact list, then find your list, then
> click on Comm Events and then Create New Contact List Comm Event should
> land you here:
> https://demo.hotwaxmedia.com/marketing/control/EditContactListCommEvent?contactListId=9000&DONE_PAGE=/marketing/control/ListContactList
> based on the trunk demo server.
>
> Set your from details and party roles (maybe N/A), fill your subject and
> content and click save.
>
> When you're happy with it change the status to "In-Progress" and click
> save again. The comm events should then start to trigger and the email
> flow, although you'll want to test it on a small list to start with. If
> the list is clean and processes through OK the status should
> automatically change to "Complete" when it is done but if there are
> badly formatted email addresses that can stick the status and you will
> need to manually mark as complete but you can review the logs to find
> the errors.
>
> Ray
>
>
>
>
>
> Raj Saini wrote:
>  
>> Hi,
>>
>> I have created Announcement mailing list and now customers are
>> subscribing to this list. I want to send periodic email (Communication
>> Event) to the member of contact list. I searched on Google, Wiki and
>> mailing list archive but did not find any definite solution on sending
>> mails to the contact list subscribers..
>>
>> Does such functionality exist in Ofbiz? If yes, can some one give a
>> small hint on how to achieve this?
>>
>> Thanks,
>>
>> Raj Saini
>>
>>
>>
>>    
>
>  

Reply | Threaded
Open this post in threaded view
|

Re: Sending mails to contact lists

Alan Halley
In reply to this post by rajsaini
Hi

I am having problems with sendEmailToContactList.

My operating system is CentOs.

As I understand it this runs an Async service to send the emails.  The problem I have is that I never see the emails being sent.

The sendEmailToContactList service runs and creates entries in COMMUNICATION_EVENT and JOB_SAND_BOX  table.

The service then seems to assume that all is well and runs setCommunicationEventComplete.

I have run sendEmail service from webtools and this sends emails succesfully so I have inferred my email is configured properly.

I'm at a loss to understand how an asynchronous service operates i.e. what is the workflow and what service picks up the job and runs it (is it JobPoller?)

The JobSandBox shows all the jobs as finished but I'm not fully clear n what this means.

Any help would be greatly appreciated.

Thanks

Alan Halley

----- Original Message ----
From: Raj Saini <[hidden email]>
To: [hidden email]
Sent: Wednesday, 5 March, 2008 2:56:14 PM
Subject: Re: Sending mails to contact lists

Hi Ray,

Thanks a ton. I will give it a try.

Thanks again,

Raj

Ray Barlow wrote:

> Hi Raj,
>
> In the marketing app click on contact list, then find your list, then
> click on Comm Events and then Create New Contact List Comm Event should
> land you here:
> https://demo.hotwaxmedia.com/marketing/control/EditContactListCommEvent?contactListId=9000&DONE_PAGE=/marketing/control/ListContactList
> based on the trunk demo server.
>
> Set your from details and party roles (maybe N/A), fill your subject and
> content and click save.
>
> When you're happy with it change the status to "In-Progress" and click
> save again. The comm events should then start to trigger and the email
> flow, although you'll want to test it on a small list to start with. If
> the list is clean and processes through OK the status should
> automatically change to "Complete" when it is done but if there are
> badly formatted email addresses that can stick the status and you will
> need to manually mark as complete but you can review the logs to find
> the errors.
>
> Ray
>
>
>
>
>
> Raj Saini wrote:
>  
>> Hi,
>>
>> I have created Announcement mailing list and now customers are
>> subscribing to this list. I want to send periodic email (Communication
>> Event) to the member of contact list. I searched on Google, Wiki and
>> mailing list archive but did not find any definite solution on sending
>> mails to the contact list subscribers..
>>
>> Does such functionality exist in Ofbiz? If yes, can some one give a
>> small hint on how to achieve this?
>>
>> Thanks,
>>
>> Raj Saini
>>
>>
>>
>>    
>
>  




Reply | Threaded
Open this post in threaded view
|

Re: Sending mails to contact lists

rajsaini
I had similar problem and I reported this in
https://issues.apache.org/jira/browse/OFBIZ-1699. Fix is in SVN now.
Problem should go away if you update to latest revision.

Raj

If you update your proble
Alan Halley wrote:

> Hi
>
> I am having problems with sendEmailToContactList.
>
> My operating system is CentOs.
>
> As I understand it this runs an Async service to send the emails.  The problem I have is that I never see the emails being sent.
>
> The sendEmailToContactList service runs and creates entries in COMMUNICATION_EVENT and JOB_SAND_BOX  table.
>
> The service then seems to assume that all is well and runs setCommunicationEventComplete.
>
> I have run sendEmail service from webtools and this sends emails succesfully so I have inferred my email is configured properly.
>
> I'm at a loss to understand how an asynchronous service operates i.e. what is the workflow and what service picks up the job and runs it (is it JobPoller?)
>
> The JobSandBox shows all the jobs as finished but I'm not fully clear n what this means.
>
> Any help would be greatly appreciated.
>
> Thanks
>
> Alan Halley
>
> ----- Original Message ----
> From: Raj Saini <[hidden email]>
> To: [hidden email]
> Sent: Wednesday, 5 March, 2008 2:56:14 PM
> Subject: Re: Sending mails to contact lists
>
> Hi Ray,
>
> Thanks a ton. I will give it a try.
>
> Thanks again,
>
> Raj
>
> Ray Barlow wrote:
>  
>> Hi Raj,
>>
>> In the marketing app click on contact list, then find your list, then
>> click on Comm Events and then Create New Contact List Comm Event should
>> land you here:
>> https://demo.hotwaxmedia.com/marketing/control/EditContactListCommEvent?contactListId=9000&DONE_PAGE=/marketing/control/ListContactList
>> based on the trunk demo server.
>>
>> Set your from details and party roles (maybe N/A), fill your subject and
>> content and click save.
>>
>> When you're happy with it change the status to "In-Progress" and click
>> save again. The comm events should then start to trigger and the email
>> flow, although you'll want to test it on a small list to start with. If
>> the list is clean and processes through OK the status should
>> automatically change to "Complete" when it is done but if there are
>> badly formatted email addresses that can stick the status and you will
>> need to manually mark as complete but you can review the logs to find
>> the errors.
>>
>> Ray
>>
>>
>>
>>
>>
>> Raj Saini wrote:
>>  
>>    
>>> Hi,
>>>
>>> I have created Announcement mailing list and now customers are
>>> subscribing to this list. I want to send periodic email (Communication
>>> Event) to the member of contact list. I searched on Google, Wiki and
>>> mailing list archive but did not find any definite solution on sending
>>> mails to the contact list subscribers..
>>>
>>> Does such functionality exist in Ofbiz? If yes, can some one give a
>>> small hint on how to achieve this?
>>>
>>> Thanks,
>>>
>>> Raj Saini
>>>
>>>
>>>
>>>    
>>>      
>>  
>>    
>
>
>
>
>
>  

Reply | Threaded
Open this post in threaded view
|

Re: Sending mails to contact lists

Jacques Le Roux
Administrator
In reply to this post by Alan Halley
Some logs could help (especially snippets around this job)

Jacques

From: "Alan Halley" <[hidden email]>
Hi

I am having problems with sendEmailToContactList.

My operating system is CentOs.

As I understand it this runs an Async service to send the emails.  The problem I have is that I never see the emails being sent.

The sendEmailToContactList service runs and creates entries in COMMUNICATION_EVENT and JOB_SAND_BOX  table.

The service then seems to assume that all is well and runs setCommunicationEventComplete.

I have run sendEmail service from webtools and this sends emails succesfully so I have inferred my email is configured properly.

I'm at a loss to understand how an asynchronous service operates i.e. what is the workflow and what service picks up the job and
runs it (is it JobPoller?)

The JobSandBox shows all the jobs as finished but I'm not fully clear n what this means.

Any help would be greatly appreciated.

Thanks

Alan Halley

----- Original Message ----
From: Raj Saini <[hidden email]>
To: [hidden email]
Sent: Wednesday, 5 March, 2008 2:56:14 PM
Subject: Re: Sending mails to contact lists

Hi Ray,

Thanks a ton. I will give it a try.

Thanks again,

Raj

Ray Barlow wrote:

> Hi Raj,
>
> In the marketing app click on contact list, then find your list, then
> click on Comm Events and then Create New Contact List Comm Event should
> land you here:
> https://demo.hotwaxmedia.com/marketing/control/EditContactListCommEvent?contactListId=9000&DONE_PAGE=/marketing/control/ListContactList
> based on the trunk demo server.
>
> Set your from details and party roles (maybe N/A), fill your subject and
> content and click save.
>
> When you're happy with it change the status to "In-Progress" and click
> save again. The comm events should then start to trigger and the email
> flow, although you'll want to test it on a small list to start with. If
> the list is clean and processes through OK the status should
> automatically change to "Complete" when it is done but if there are
> badly formatted email addresses that can stick the status and you will
> need to manually mark as complete but you can review the logs to find
> the errors.
>
> Ray
>
>
>
>
>
> Raj Saini wrote:
>
>> Hi,
>>
>> I have created Announcement mailing list and now customers are
>> subscribing to this list. I want to send periodic email (Communication
>> Event) to the member of contact list. I searched on Google, Wiki and
>> mailing list archive but did not find any definite solution on sending
>> mails to the contact list subscribers..
>>
>> Does such functionality exist in Ofbiz? If yes, can some one give a
>> small hint on how to achieve this?
>>
>> Thanks,
>>
>> Raj Saini
>>
>>
>>
>>
>
>





Reply | Threaded
Open this post in threaded view
|

Re: Sending mails to contact lists

Alan Halley
In reply to this post by rajsaini
Hi

Thanks for responding so quickly.

Here is a sample from our logs

2008-03-09 18:54:32,412 (http-0.0.0.0-8443-Processor3) [    ConfigXMLReader.java:297:INFO ] RequestMap Created: (94) records in 0.036s
2008-03-09 18:54:32,420 (http-0.0.0.0-8443-Processor3) [    ConfigXMLReader.java:391:INFO ] ViewMap Created: (5) records in 0.0080s
2008-03-09 18:54:32,458 (http-0.0.0.0-8443-Processor3) [    ConfigXMLReader.java:391:INFO ] ViewMap Created: (47) records in 0.046s
2008-03-09 18:54:32,468 (http-0.0.0.0-8443-Processor3) [     RequestHandler.java:243:INFO ] [Processing Request]: createContactListCommEvent sessionId=B328DB76615497C4705AD4CC42AB3401.jvm1
2008-03-09 18:54:32,528 (http-0.0.0.0-8443-Processor3) [       SequenceUtil.java:341:INFO ] Got bank of sequenced IDs for [CommunicationEvent]; curSeqId=10760, maxSeqId=10770, bankSize=10
2008-03-09 18:54:32,543 (http-0.0.0.0-8443-Processor3) [     ServiceEcaRule.java:101:INFO ] For Service ECA [createCommunicationEvent] on [commit] got false for condition: [null][][contactListId][is-empty][null][][true][String][]
2008-03-09 18:54:32,549 (http-0.0.0.0-8443-Processor3) [     ServiceEcaRule.java:118:INFO ] Running Service ECA Service: sendCommEventAsEmail, triggered by rule on Service: createCommunicationEvent
2008-03-09 18:54:32,560 (http-0.0.0.0-8443-Processor3) [     RequestHandler.java:433:INFO ] [RequestHandler.doRequest]: Response is a view. sessionId=B328DB76615497C4705AD4CC42AB3401.jvm1
2008-03-09 18:54:32,561 (http-0.0.0.0-8443-Processor3) [     RequestHandler.java:584:INFO ] servletName=control, view=EditContactListCommEvent sessionId=B328DB76615497C4705AD4CC42AB3401.jvm1
2008-03-09 18:54:32,616 (http-0.0.0.0-8443-Processor3) [      ScreenFactory.java:118:INFO ] Got 11 screens in 0.051s from: file:/home/mercatx/ofbiz/svntmp/mercatx/branches/cw1/applications/marketing/widget/ContactListScreens.xml
2008-03-09 18:54:32,648 (http-0.0.0.0-8443-Processor3) [      ScreenFactory.java:118:INFO ] Got 3 screens in 0.016s from: file:/home/mercatx/ofbiz/svntmp/mercatx/branches/cw1/applications/marketing/widget/CommonScreens.xml
2008-03-09 18:54:32,704 (http-0.0.0.0-8443-Processor3) [      ScreenFactory.java:118:INFO ] Got 16 screens in 0.046s from: file:/home/mercatx/ofbiz/svntmp/mercatx/branches/cw1/framework/common/widget/CommonScreens.xml
2008-03-09 18:54:32,729 (http-0.0.0.0-8443-Processor3) [  ModelScreenWidget.java:360:INFO ] In the include-screen tag the screen name was empty, ignoring include; in screen [GlobalDecorator]
2008-03-09 18:54:32,794 (default-invoker-Thread-3839) [         JobInvoker.java:211:INFO ] Invoker [default-invoker-Thread-3839] received job [1205088872557] from poller [org.ofbiz.service.job.JobPoller@1a0d866]
2008-03-09 18:54:32,846 (default-invoker-Thread-3839) [ GenericAsyncEngine.java:137:INFO ] Persisted job queued : 1205088872842
2008-03-09 18:54:43,519 (default-invoker-Thread-3839) [         JobInvoker.java:211:INFO ] Invoker [default-invoker-Thread-3839] received job [1205088872842] from poller [org.ofbiz.service.job.JobPoller@1a0d866]
2008-03-09 18:54:43,523 (default-invoker-Thread-3839) [PersistedServiceJob.java:138:INFO ] org.ofbiz.service.job.PersistedServiceJob@5c3e75[15865] -- Next runtime: -1
[Error] :2:12: cvc-elt.1: Cannot find the declaration of element 'ofbiz-ser'.
2008-03-09 18:54:43,555 (default-invoker-Thread-3839) [     ServiceEcaRule.java:118:INFO ] Running Service ECA Service: setCommEventComplete, triggered by rule on Service: sendEmailToContactList
2008-03-09 18:54:43,595 (default-invoker-Thread-3839) [     ServiceEcaRule.java:101:INFO ] For Service ECA [updateCommunicationEvent] on [commit] got false for condition: [null][][statusId][equals][null][COM_IN_PROGRESS][true][String][]
2008-03-09 18:54:43,596 (default-invoker-Thread-3839) [     ServiceEcaRule.java:101:INFO ] For Service ECA [updateCommunicationEvent] on [commit] got false for condition: [null][][statusId][equals][null][COM_IN_PROGRESS][true][String][]
2008-03-09 18:54:43,597 (default-invoker-Thread-3839) [     ServiceEcaRule.java:101:INFO ] For Service ECA [updateCommunicationEvent] on [commit] got false for condition: [null][][statusId][equals][null][COM_IN_PROGRESS][true][String][]
2008-03-09 18:54:43,598 (default-invoker-Thread-3839) [     ServiceEcaRule.java:101:INFO ] For Service ECA [updateCommunicationEvent] on [commit] got false for condition: [null][][statusId][equals][null][COM_IN_PROGRESS][true][String][]
2008-03-09 18:54:47,053 (http-0.0.0.0-8080-Processor8) [ControlEventListener.java:62 :INFO ] Creating session: 5A05014119FC4FD6E87E94F4377F59AB.jvm1
2008-03-09 18:54:47,057 (http-0.0.0.0-8080-Processor8) [     ControlServlet.java:93 :INFO ] The character encoding of the request is: [null]. The character encoding we will use for the request and response is: [UTF-8]
2008-03-09 18:54:47,058 (http-0.0.0.0-8080-Processor8) [       VisitHandler.java:221:INFO ] Found visitorId [null] in cookie


Alan

----- Original Message ----
From: Jacques Le Roux <[hidden email]>
To: [hidden email]
Sent: Sunday, 9 March, 2008 9:09:46 PM
Subject: Re: Sending mails to contact lists

Some logs could help (especially snippets around this job)

Jacques

From: "Alan Halley" <[hidden email]>
Hi

I am having problems with sendEmailToContactList.

My operating system is CentOs.

As I understand it this runs an Async service to send the emails.  The problem I have is that I never see the emails being sent.

The sendEmailToContactList service runs and creates entries in COMMUNICATION_EVENT and JOB_SAND_BOX  table.

The service then seems to assume that all is well and runs setCommunicationEventComplete.

I have run sendEmail service from webtools and this sends emails succesfully so I have inferred my email is configured properly.

I'm at a loss to understand how an asynchronous service operates i.e. what is the workflow and what service picks up the job and
runs it (is it JobPoller?)

The JobSandBox shows all the jobs as finished but I'm not fully clear n what this means.

Any help would be greatly appreciated.

Thanks

Alan Halley

----- Original Message ----
From: Raj Saini <[hidden email]>
To: [hidden email]
Sent: Wednesday, 5 March, 2008 2:56:14 PM
Subject: Re: Sending mails to contact lists

Hi Ray,

Thanks a ton. I will give it a try.

Thanks again,

Raj

Ray Barlow wrote:

> Hi Raj,
>
> In the marketing app click on contact list, then find your list, then
> click on Comm Events and then Create New Contact List Comm Event should
> land you here:
> https://demo.hotwaxmedia.com/marketing/control/EditContactListCommEvent?contactListId=9000&DONE_PAGE=/marketing/control/ListContactList
> based on the trunk demo server.
>
> Set your from details and party roles (maybe N/A), fill your subject and
> content and click save.
>
> When you're happy with it change the status to "In-Progress" and click
> save again. The comm events should then start to trigger and the email
> flow, although you'll want to test it on a small list to start with. If
> the list is clean and processes through OK the status should
> automatically change to "Complete" when it is done but if there are
> badly formatted email addresses that can stick the status and you will
> need to manually mark as complete but you can review the logs to find
> the errors.
>
> Ray
>
>
>
>
>
> Raj Saini wrote:
>
>> Hi,
>>
>> I have created Announcement mailing list and now customers are
>> subscribing to this list. I want to send periodic email (Communication
>> Event) to the member of contact list. I searched on Google, Wiki and
>> mailing list archive but did not find any definite solution on sending
>> mails to the contact list subscribers..
>>
>> Does such functionality exist in Ofbiz? If yes, can some one give a
>> small hint on how to achieve this?
>>
>> Thanks,
>>
>> Raj Saini
>>
>>
>>
>>
>
>








Reply | Threaded
Open this post in threaded view
|

Re: Sending mails to contact lists

Jacques Le Roux
Administrator
Did you try Raj's advice (I commited his changes in https://issues.apache.org/jira/browse/OFBIZ-1699) ?

Jacques

From: "Alan Halley" <[hidden email]>
Hi

Thanks for responding so quickly.

Here is a sample from our logs

2008-03-09 18:54:32,412 (http-0.0.0.0-8443-Processor3) [    ConfigXMLReader.java:297:INFO ] RequestMap Created: (94) records in
0.036s
2008-03-09 18:54:32,420 (http-0.0.0.0-8443-Processor3) [    ConfigXMLReader.java:391:INFO ] ViewMap Created: (5) records in 0.0080s
2008-03-09 18:54:32,458 (http-0.0.0.0-8443-Processor3) [    ConfigXMLReader.java:391:INFO ] ViewMap Created: (47) records in 0.046s
2008-03-09 18:54:32,468 (http-0.0.0.0-8443-Processor3) [     RequestHandler.java:243:INFO ] [Processing Request]:
createContactListCommEvent sessionId=B328DB76615497C4705AD4CC42AB3401.jvm1
2008-03-09 18:54:32,528 (http-0.0.0.0-8443-Processor3) [       SequenceUtil.java:341:INFO ] Got bank of sequenced IDs for
[CommunicationEvent]; curSeqId=10760, maxSeqId=10770, bankSize=10
2008-03-09 18:54:32,543 (http-0.0.0.0-8443-Processor3) [     ServiceEcaRule.java:101:INFO ] For Service ECA
[createCommunicationEvent] on [commit] got false for condition: [null][][contactListId][is-empty][null][][true][String][]
2008-03-09 18:54:32,549 (http-0.0.0.0-8443-Processor3) [     ServiceEcaRule.java:118:INFO ] Running Service ECA Service:
sendCommEventAsEmail, triggered by rule on Service: createCommunicationEvent
2008-03-09 18:54:32,560 (http-0.0.0.0-8443-Processor3) [     RequestHandler.java:433:INFO ] [RequestHandler.doRequest]: Response is
a view. sessionId=B328DB76615497C4705AD4CC42AB3401.jvm1
2008-03-09 18:54:32,561 (http-0.0.0.0-8443-Processor3) [     RequestHandler.java:584:INFO ] servletName=control,
view=EditContactListCommEvent sessionId=B328DB76615497C4705AD4CC42AB3401.jvm1
2008-03-09 18:54:32,616 (http-0.0.0.0-8443-Processor3) [      ScreenFactory.java:118:INFO ] Got 11 screens in 0.051s from:
file:/home/mercatx/ofbiz/svntmp/mercatx/branches/cw1/applications/marketing/widget/ContactListScreens.xml
2008-03-09 18:54:32,648 (http-0.0.0.0-8443-Processor3) [      ScreenFactory.java:118:INFO ] Got 3 screens in 0.016s from:
file:/home/mercatx/ofbiz/svntmp/mercatx/branches/cw1/applications/marketing/widget/CommonScreens.xml
2008-03-09 18:54:32,704 (http-0.0.0.0-8443-Processor3) [      ScreenFactory.java:118:INFO ] Got 16 screens in 0.046s from:
file:/home/mercatx/ofbiz/svntmp/mercatx/branches/cw1/framework/common/widget/CommonScreens.xml
2008-03-09 18:54:32,729 (http-0.0.0.0-8443-Processor3) [  ModelScreenWidget.java:360:INFO ] In the include-screen tag the screen
name was empty, ignoring include; in screen [GlobalDecorator]
2008-03-09 18:54:32,794 (default-invoker-Thread-3839) [         JobInvoker.java:211:INFO ] Invoker [default-invoker-Thread-3839]
received job [1205088872557] from poller [org.ofbiz.service.job.JobPoller@1a0d866]
2008-03-09 18:54:32,846 (default-invoker-Thread-3839) [ GenericAsyncEngine.java:137:INFO ] Persisted job queued : 1205088872842
2008-03-09 18:54:43,519 (default-invoker-Thread-3839) [         JobInvoker.java:211:INFO ] Invoker [default-invoker-Thread-3839]
received job [1205088872842] from poller [org.ofbiz.service.job.JobPoller@1a0d866]
2008-03-09 18:54:43,523 (default-invoker-Thread-3839) [PersistedServiceJob.java:138:INFO ]
org.ofbiz.service.job.PersistedServiceJob@5c3e75[15865] -- Next runtime: -1
[Error] :2:12: cvc-elt.1: Cannot find the declaration of element 'ofbiz-ser'.
2008-03-09 18:54:43,555 (default-invoker-Thread-3839) [     ServiceEcaRule.java:118:INFO ] Running Service ECA Service:
setCommEventComplete, triggered by rule on Service: sendEmailToContactList
2008-03-09 18:54:43,595 (default-invoker-Thread-3839) [     ServiceEcaRule.java:101:INFO ] For Service ECA
[updateCommunicationEvent] on [commit] got false for condition: [null][][statusId][equals][null][COM_IN_PROGRESS][true][String][]
2008-03-09 18:54:43,596 (default-invoker-Thread-3839) [     ServiceEcaRule.java:101:INFO ] For Service ECA
[updateCommunicationEvent] on [commit] got false for condition: [null][][statusId][equals][null][COM_IN_PROGRESS][true][String][]
2008-03-09 18:54:43,597 (default-invoker-Thread-3839) [     ServiceEcaRule.java:101:INFO ] For Service ECA
[updateCommunicationEvent] on [commit] got false for condition: [null][][statusId][equals][null][COM_IN_PROGRESS][true][String][]
2008-03-09 18:54:43,598 (default-invoker-Thread-3839) [     ServiceEcaRule.java:101:INFO ] For Service ECA
[updateCommunicationEvent] on [commit] got false for condition: [null][][statusId][equals][null][COM_IN_PROGRESS][true][String][]
2008-03-09 18:54:47,053 (http-0.0.0.0-8080-Processor8) [ControlEventListener.java:62 :INFO ] Creating session:
5A05014119FC4FD6E87E94F4377F59AB.jvm1
2008-03-09 18:54:47,057 (http-0.0.0.0-8080-Processor8) [     ControlServlet.java:93 :INFO ] The character encoding of the request
is: [null]. The character encoding we will use for the request and response is: [UTF-8]
2008-03-09 18:54:47,058 (http-0.0.0.0-8080-Processor8) [       VisitHandler.java:221:INFO ] Found visitorId [null] in cookie


Alan

----- Original Message ----
From: Jacques Le Roux <[hidden email]>
To: [hidden email]
Sent: Sunday, 9 March, 2008 9:09:46 PM
Subject: Re: Sending mails to contact lists

Some logs could help (especially snippets around this job)

Jacques

From: "Alan Halley" <[hidden email]>
Hi

I am having problems with sendEmailToContactList.

My operating system is CentOs.

As I understand it this runs an Async service to send the emails.  The problem I have is that I never see the emails being sent.

The sendEmailToContactList service runs and creates entries in COMMUNICATION_EVENT and JOB_SAND_BOX  table.

The service then seems to assume that all is well and runs setCommunicationEventComplete.

I have run sendEmail service from webtools and this sends emails succesfully so I have inferred my email is configured properly.

I'm at a loss to understand how an asynchronous service operates i.e. what is the workflow and what service picks up the job and
runs it (is it JobPoller?)

The JobSandBox shows all the jobs as finished but I'm not fully clear n what this means.

Any help would be greatly appreciated.

Thanks

Alan Halley

----- Original Message ----
From: Raj Saini <[hidden email]>
To: [hidden email]
Sent: Wednesday, 5 March, 2008 2:56:14 PM
Subject: Re: Sending mails to contact lists

Hi Ray,

Thanks a ton. I will give it a try.

Thanks again,

Raj

Ray Barlow wrote:

> Hi Raj,
>
> In the marketing app click on contact list, then find your list, then
> click on Comm Events and then Create New Contact List Comm Event should
> land you here:
> https://demo.hotwaxmedia.com/marketing/control/EditContactListCommEvent?contactListId=9000&DONE_PAGE=/marketing/control/ListContactList
> based on the trunk demo server.
>
> Set your from details and party roles (maybe N/A), fill your subject and
> content and click save.
>
> When you're happy with it change the status to "In-Progress" and click
> save again. The comm events should then start to trigger and the email
> flow, although you'll want to test it on a small list to start with. If
> the list is clean and processes through OK the status should
> automatically change to "Complete" when it is done but if there are
> badly formatted email addresses that can stick the status and you will
> need to manually mark as complete but you can review the logs to find
> the errors.
>
> Ray
>
>
>
>
>
> Raj Saini wrote:
>
>> Hi,
>>
>> I have created Announcement mailing list and now customers are
>> subscribing to this list. I want to send periodic email (Communication
>> Event) to the member of contact list. I searched on Google, Wiki and
>> mailing list archive but did not find any definite solution on sending
>> mails to the contact list subscribers..
>>
>> Does such functionality exist in Ofbiz? If yes, can some one give a
>> small hint on how to achieve this?
>>
>> Thanks,
>>
>> Raj Saini
>>
>>
>>
>>
>
>









Reply | Threaded
Open this post in threaded view
|

Re: Sending mails to contact lists

Alan Halley
In reply to this post by rajsaini
Hi Jacques

I tried Raj's fix but it didn't make any difference.

Alan

----- Original Message ----
From: Jacques Le Roux <[hidden email]>
To: [hidden email]
Sent: Monday, 10 March, 2008 8:46:03 AM
Subject: Re: Sending mails to contact lists

Did you try Raj's advice (I commited his changes in https://issues.apache.org/jira/browse/OFBIZ-1699) ?

Jacques

From: "Alan Halley" <[hidden email]>
Hi

Thanks for responding so quickly.

Here is a sample from our logs

2008-03-09 18:54:32,412 (http-0.0.0.0-8443-Processor3) [    ConfigXMLReader.java:297:INFO ] RequestMap Created: (94) records in
0.036s
2008-03-09 18:54:32,420 (http-0.0.0.0-8443-Processor3) [    ConfigXMLReader.java:391:INFO ] ViewMap Created: (5) records in 0.0080s
2008-03-09 18:54:32,458 (http-0.0.0.0-8443-Processor3) [    ConfigXMLReader.java:391:INFO ] ViewMap Created: (47) records in 0.046s
2008-03-09 18:54:32,468 (http-0.0.0.0-8443-Processor3) [     RequestHandler.java:243:INFO ] [Processing Request]:
createContactListCommEvent sessionId=B328DB76615497C4705AD4CC42AB3401.jvm1
2008-03-09 18:54:32,528 (http-0.0.0.0-8443-Processor3) [       SequenceUtil.java:341:INFO ] Got bank of sequenced IDs for
[CommunicationEvent]; curSeqId=10760, maxSeqId=10770, bankSize=10
2008-03-09 18:54:32,543 (http-0.0.0.0-8443-Processor3) [     ServiceEcaRule.java:101:INFO ] For Service ECA
[createCommunicationEvent] on [commit] got false for condition: [null][][contactListId][is-empty][null][][true][String][]
2008-03-09 18:54:32,549 (http-0.0.0.0-8443-Processor3) [     ServiceEcaRule.java:118:INFO ] Running Service ECA Service:
sendCommEventAsEmail, triggered by rule on Service: createCommunicationEvent
2008-03-09 18:54:32,560 (http-0.0.0.0-8443-Processor3) [     RequestHandler.java:433:INFO ] [RequestHandler.doRequest]: Response is
a view. sessionId=B328DB76615497C4705AD4CC42AB3401.jvm1
2008-03-09 18:54:32,561 (http-0.0.0.0-8443-Processor3) [     RequestHandler.java:584:INFO ] servletName=control,
view=EditContactListCommEvent sessionId=B328DB76615497C4705AD4CC42AB3401.jvm1
2008-03-09 18:54:32,616 (http-0.0.0.0-8443-Processor3) [      ScreenFactory.java:118:INFO ] Got 11 screens in 0.051s from:
file:/home/mercatx/ofbiz/svntmp/mercatx/branches/cw1/applications/marketing/widget/ContactListScreens.xml
2008-03-09 18:54:32,648 (http-0.0.0.0-8443-Processor3) [      ScreenFactory.java:118:INFO ] Got 3 screens in 0.016s from:
file:/home/mercatx/ofbiz/svntmp/mercatx/branches/cw1/applications/marketing/widget/CommonScreens.xml
2008-03-09 18:54:32,704 (http-0.0.0.0-8443-Processor3) [      ScreenFactory.java:118:INFO ] Got 16 screens in 0.046s from:
file:/home/mercatx/ofbiz/svntmp/mercatx/branches/cw1/framework/common/widget/CommonScreens.xml
2008-03-09 18:54:32,729 (http-0.0.0.0-8443-Processor3) [  ModelScreenWidget.java:360:INFO ] In the include-screen tag the screen
name was empty, ignoring include; in screen [GlobalDecorator]
2008-03-09 18:54:32,794 (default-invoker-Thread-3839) [         JobInvoker.java:211:INFO ] Invoker [default-invoker-Thread-3839]
received job [1205088872557] from poller [org.ofbiz.service.job.JobPoller@1a0d866]
2008-03-09 18:54:32,846 (default-invoker-Thread-3839) [ GenericAsyncEngine.java:137:INFO ] Persisted job queued : 1205088872842
2008-03-09 18:54:43,519 (default-invoker-Thread-3839) [         JobInvoker.java:211:INFO ] Invoker [default-invoker-Thread-3839]
received job [1205088872842] from poller [org.ofbiz.service.job.JobPoller@1a0d866]
2008-03-09 18:54:43,523 (default-invoker-Thread-3839) [PersistedServiceJob.java:138:INFO ]
org.ofbiz.service.job.PersistedServiceJob@5c3e75[15865] -- Next runtime: -1
[Error] :2:12: cvc-elt.1: Cannot find the declaration of element 'ofbiz-ser'.
2008-03-09 18:54:43,555 (default-invoker-Thread-3839) [     ServiceEcaRule.java:118:INFO ] Running Service ECA Service:
setCommEventComplete, triggered by rule on Service: sendEmailToContactList
2008-03-09 18:54:43,595 (default-invoker-Thread-3839) [     ServiceEcaRule.java:101:INFO ] For Service ECA
[updateCommunicationEvent] on [commit] got false for condition: [null][][statusId][equals][null][COM_IN_PROGRESS][true][String][]
2008-03-09 18:54:43,596 (default-invoker-Thread-3839) [     ServiceEcaRule.java:101:INFO ] For Service ECA
[updateCommunicationEvent] on [commit] got false for condition: [null][][statusId][equals][null][COM_IN_PROGRESS][true][String][]
2008-03-09 18:54:43,597 (default-invoker-Thread-3839) [     ServiceEcaRule.java:101:INFO ] For Service ECA
[updateCommunicationEvent] on [commit] got false for condition: [null][][statusId][equals][null][COM_IN_PROGRESS][true][String][]
2008-03-09 18:54:43,598 (default-invoker-Thread-3839) [     ServiceEcaRule.java:101:INFO ] For Service ECA
[updateCommunicationEvent] on [commit] got false for condition: [null][][statusId][equals][null][COM_IN_PROGRESS][true][String][]
2008-03-09 18:54:47,053 (http-0.0.0.0-8080-Processor8) [ControlEventListener.java:62 :INFO ] Creating session:
5A05014119FC4FD6E87E94F4377F59AB.jvm1
2008-03-09 18:54:47,057 (http-0.0.0.0-8080-Processor8) [     ControlServlet.java:93 :INFO ] The character encoding of the request
is: [null]. The character encoding we will use for the request and response is: [UTF-8]
2008-03-09 18:54:47,058 (http-0.0.0.0-8080-Processor8) [       VisitHandler.java:221:INFO ] Found visitorId [null] in cookie


Alan

----- Original Message ----
From: Jacques Le Roux <[hidden email]>
To: [hidden email]
Sent: Sunday, 9 March, 2008 9:09:46 PM
Subject: Re: Sending mails to contact lists

Some logs could help (especially snippets around this job)

Jacques

From: "Alan Halley" <[hidden email]>
Hi

I am having problems with sendEmailToContactList.

My operating system is CentOs.

As I understand it this runs an Async service to send the emails.  The problem I have is that I never see the emails being sent.

The sendEmailToContactList service runs and creates entries in COMMUNICATION_EVENT and JOB_SAND_BOX  table.

The service then seems to assume that all is well and runs setCommunicationEventComplete.

I have run sendEmail service from webtools and this sends emails succesfully so I have inferred my email is configured properly.

I'm at a loss to understand how an asynchronous service operates i.e. what is the workflow and what service picks up the job and
runs it (is it JobPoller?)

The JobSandBox shows all the jobs as finished but I'm not fully clear n what this means.

Any help would be greatly appreciated.

Thanks

Alan Halley

----- Original Message ----
From: Raj Saini <[hidden email]>
To: [hidden email]
Sent: Wednesday, 5 March, 2008 2:56:14 PM
Subject: Re: Sending mails to contact lists

Hi Ray,

Thanks a ton. I will give it a try.

Thanks again,

Raj

Ray Barlow wrote:

> Hi Raj,
>
> In the marketing app click on contact list, then find your list, then
> click on Comm Events and then Create New Contact List Comm Event should
> land you here:
> https://demo.hotwaxmedia.com/marketing/control/EditContactListCommEvent?contactListId=9000&DONE_PAGE=/marketing/control/ListContactList
> based on the trunk demo server.
>
> Set your from details and party roles (maybe N/A), fill your subject and
> content and click save.
>
> When you're happy with it change the status to "In-Progress" and click
> save again. The comm events should then start to trigger and the email
> flow, although you'll want to test it on a small list to start with. If
> the list is clean and processes through OK the status should
> automatically change to "Complete" when it is done but if there are
> badly formatted email addresses that can stick the status and you will
> need to manually mark as complete but you can review the logs to find
> the errors.
>
> Ray
>
>
>
>
>
> Raj Saini wrote:
>
>> Hi,
>>
>> I have created Announcement mailing list and now customers are
>> subscribing to this list. I want to send periodic email (Communication
>> Event) to the member of contact list. I searched on Google, Wiki and
>> mailing list archive but did not find any definite solution on sending
>> mails to the contact list subscribers..
>>
>> Does such functionality exist in Ofbiz? If yes, can some one give a
>> small hint on how to achieve this?
>>
>> Thanks,
>>
>> Raj Saini
>>
>>
>>
>>
>
>












Reply | Threaded
Open this post in threaded view
|

Re: Sending mails to contact lists

rajsaini
Hi Alan,

I have contact list emails working for me correctly. Can you tell what
and how exactly you are doing?

Raj

Alan Halley wrote:

> Hi Jacques
>
> I tried Raj's fix but it didn't make any difference.
>
> Alan
>
> ----- Original Message ----
> From: Jacques Le Roux <[hidden email]>
> To: [hidden email]
> Sent: Monday, 10 March, 2008 8:46:03 AM
> Subject: Re: Sending mails to contact lists
>
> Did you try Raj's advice (I commited his changes in https://issues.apache.org/jira/browse/OFBIZ-1699) ?
>
> Jacques
>
> From: "Alan Halley" <[hidden email]>
> Hi
>
> Thanks for responding so quickly.
>
> Here is a sample from our logs
>
> 2008-03-09 18:54:32,412 (http-0.0.0.0-8443-Processor3) [    ConfigXMLReader.java:297:INFO ] RequestMap Created: (94) records in
> 0.036s
> 2008-03-09 18:54:32,420 (http-0.0.0.0-8443-Processor3) [    ConfigXMLReader.java:391:INFO ] ViewMap Created: (5) records in 0.0080s
> 2008-03-09 18:54:32,458 (http-0.0.0.0-8443-Processor3) [    ConfigXMLReader.java:391:INFO ] ViewMap Created: (47) records in 0.046s
> 2008-03-09 18:54:32,468 (http-0.0.0.0-8443-Processor3) [     RequestHandler.java:243:INFO ] [Processing Request]:
> createContactListCommEvent sessionId=B328DB76615497C4705AD4CC42AB3401.jvm1
> 2008-03-09 18:54:32,528 (http-0.0.0.0-8443-Processor3) [       SequenceUtil.java:341:INFO ] Got bank of sequenced IDs for
> [CommunicationEvent]; curSeqId=10760, maxSeqId=10770, bankSize=10
> 2008-03-09 18:54:32,543 (http-0.0.0.0-8443-Processor3) [     ServiceEcaRule.java:101:INFO ] For Service ECA
> [createCommunicationEvent] on [commit] got false for condition: [null][][contactListId][is-empty][null][][true][String][]
> 2008-03-09 18:54:32,549 (http-0.0.0.0-8443-Processor3) [     ServiceEcaRule.java:118:INFO ] Running Service ECA Service:
> sendCommEventAsEmail, triggered by rule on Service: createCommunicationEvent
> 2008-03-09 18:54:32,560 (http-0.0.0.0-8443-Processor3) [     RequestHandler.java:433:INFO ] [RequestHandler.doRequest]: Response is
> a view. sessionId=B328DB76615497C4705AD4CC42AB3401.jvm1
> 2008-03-09 18:54:32,561 (http-0.0.0.0-8443-Processor3) [     RequestHandler.java:584:INFO ] servletName=control,
> view=EditContactListCommEvent sessionId=B328DB76615497C4705AD4CC42AB3401.jvm1
> 2008-03-09 18:54:32,616 (http-0.0.0.0-8443-Processor3) [      ScreenFactory.java:118:INFO ] Got 11 screens in 0.051s from:
> file:/home/mercatx/ofbiz/svntmp/mercatx/branches/cw1/applications/marketing/widget/ContactListScreens.xml
> 2008-03-09 18:54:32,648 (http-0.0.0.0-8443-Processor3) [      ScreenFactory.java:118:INFO ] Got 3 screens in 0.016s from:
> file:/home/mercatx/ofbiz/svntmp/mercatx/branches/cw1/applications/marketing/widget/CommonScreens.xml
> 2008-03-09 18:54:32,704 (http-0.0.0.0-8443-Processor3) [      ScreenFactory.java:118:INFO ] Got 16 screens in 0.046s from:
> file:/home/mercatx/ofbiz/svntmp/mercatx/branches/cw1/framework/common/widget/CommonScreens.xml
> 2008-03-09 18:54:32,729 (http-0.0.0.0-8443-Processor3) [  ModelScreenWidget.java:360:INFO ] In the include-screen tag the screen
> name was empty, ignoring include; in screen [GlobalDecorator]
> 2008-03-09 18:54:32,794 (default-invoker-Thread-3839) [         JobInvoker.java:211:INFO ] Invoker [default-invoker-Thread-3839]
> received job [1205088872557] from poller [org.ofbiz.service.job.JobPoller@1a0d866]
> 2008-03-09 18:54:32,846 (default-invoker-Thread-3839) [ GenericAsyncEngine.java:137:INFO ] Persisted job queued : 1205088872842
> 2008-03-09 18:54:43,519 (default-invoker-Thread-3839) [         JobInvoker.java:211:INFO ] Invoker [default-invoker-Thread-3839]
> received job [1205088872842] from poller [org.ofbiz.service.job.JobPoller@1a0d866]
> 2008-03-09 18:54:43,523 (default-invoker-Thread-3839) [PersistedServiceJob.java:138:INFO ]
> org.ofbiz.service.job.PersistedServiceJob@5c3e75[15865] -- Next runtime: -1
> [Error] :2:12: cvc-elt.1: Cannot find the declaration of element 'ofbiz-ser'.
> 2008-03-09 18:54:43,555 (default-invoker-Thread-3839) [     ServiceEcaRule.java:118:INFO ] Running Service ECA Service:
> setCommEventComplete, triggered by rule on Service: sendEmailToContactList
> 2008-03-09 18:54:43,595 (default-invoker-Thread-3839) [     ServiceEcaRule.java:101:INFO ] For Service ECA
> [updateCommunicationEvent] on [commit] got false for condition: [null][][statusId][equals][null][COM_IN_PROGRESS][true][String][]
> 2008-03-09 18:54:43,596 (default-invoker-Thread-3839) [     ServiceEcaRule.java:101:INFO ] For Service ECA
> [updateCommunicationEvent] on [commit] got false for condition: [null][][statusId][equals][null][COM_IN_PROGRESS][true][String][]
> 2008-03-09 18:54:43,597 (default-invoker-Thread-3839) [     ServiceEcaRule.java:101:INFO ] For Service ECA
> [updateCommunicationEvent] on [commit] got false for condition: [null][][statusId][equals][null][COM_IN_PROGRESS][true][String][]
> 2008-03-09 18:54:43,598 (default-invoker-Thread-3839) [     ServiceEcaRule.java:101:INFO ] For Service ECA
> [updateCommunicationEvent] on [commit] got false for condition: [null][][statusId][equals][null][COM_IN_PROGRESS][true][String][]
> 2008-03-09 18:54:47,053 (http-0.0.0.0-8080-Processor8) [ControlEventListener.java:62 :INFO ] Creating session:
> 5A05014119FC4FD6E87E94F4377F59AB.jvm1
> 2008-03-09 18:54:47,057 (http-0.0.0.0-8080-Processor8) [     ControlServlet.java:93 :INFO ] The character encoding of the request
> is: [null]. The character encoding we will use for the request and response is: [UTF-8]
> 2008-03-09 18:54:47,058 (http-0.0.0.0-8080-Processor8) [       VisitHandler.java:221:INFO ] Found visitorId [null] in cookie
>
>
> Alan
>
> ----- Original Message ----
> From: Jacques Le Roux <[hidden email]>
> To: [hidden email]
> Sent: Sunday, 9 March, 2008 9:09:46 PM
> Subject: Re: Sending mails to contact lists
>
> Some logs could help (especially snippets around this job)
>
> Jacques
>
> From: "Alan Halley" <[hidden email]>
> Hi
>
> I am having problems with sendEmailToContactList.
>
> My operating system is CentOs.
>
> As I understand it this runs an Async service to send the emails.  The problem I have is that I never see the emails being sent.
>
> The sendEmailToContactList service runs and creates entries in COMMUNICATION_EVENT and JOB_SAND_BOX  table.
>
> The service then seems to assume that all is well and runs setCommunicationEventComplete.
>
> I have run sendEmail service from webtools and this sends emails succesfully so I have inferred my email is configured properly.
>
> I'm at a loss to understand how an asynchronous service operates i.e. what is the workflow and what service picks up the job and
> runs it (is it JobPoller?)
>
> The JobSandBox shows all the jobs as finished but I'm not fully clear n what this means.
>
> Any help would be greatly appreciated.
>
> Thanks
>
> Alan Halley
>
> ----- Original Message ----
> From: Raj Saini <[hidden email]>
> To: [hidden email]
> Sent: Wednesday, 5 March, 2008 2:56:14 PM
> Subject: Re: Sending mails to contact lists
>
> Hi Ray,
>
> Thanks a ton. I will give it a try.
>
> Thanks again,
>
> Raj
>
> Ray Barlow wrote:
>  
>> Hi Raj,
>>
>> In the marketing app click on contact list, then find your list, then
>> click on Comm Events and then Create New Contact List Comm Event should
>> land you here:
>> https://demo.hotwaxmedia.com/marketing/control/EditContactListCommEvent?contactListId=9000&DONE_PAGE=/marketing/control/ListContactList
>> based on the trunk demo server.
>>
>> Set your from details and party roles (maybe N/A), fill your subject and
>> content and click save.
>>
>> When you're happy with it change the status to "In-Progress" and click
>> save again. The comm events should then start to trigger and the email
>> flow, although you'll want to test it on a small list to start with. If
>> the list is clean and processes through OK the status should
>> automatically change to "Complete" when it is done but if there are
>> badly formatted email addresses that can stick the status and you will
>> need to manually mark as complete but you can review the logs to find
>> the errors.
>>
>> Ray
>>
>>
>>
>>
>>
>> Raj Saini wrote:
>>
>>    
>>> Hi,
>>>
>>> I have created Announcement mailing list and now customers are
>>> subscribing to this list. I want to send periodic email (Communication
>>> Event) to the member of contact list. I searched on Google, Wiki and
>>> mailing list archive but did not find any definite solution on sending
>>> mails to the contact list subscribers..
>>>
>>> Does such functionality exist in Ofbiz? If yes, can some one give a
>>> small hint on how to achieve this?
>>>
>>> Thanks,
>>>
>>> Raj Saini
>>>
>>>
>>>
>>>
>>>      
>>    
>
>
>
>
>
>
>
>
>
>
>
>
>
>  

Reply | Threaded
Open this post in threaded view
|

Service Synchronization

SkipDever
In reply to this post by rajsaini
I have a few services that take from 4 to 8 hours to complete with the large data sets I am dealing with.  I want to synchronize those services so it is impossible to start them if they are already running.  My plan is to create a new entity to hold the service name, start time, stop time, etc and have the service read the entity record to see if it is already running.

However, I know that entity records are frequently cached.  Is there a setting in the entity definition to never cache or some easy method to force the cache for the entity to clear?

Skip

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.21.4/1313 - Release Date: 3/5/2008 9:50 AM
 

Reply | Threaded
Open this post in threaded view
|

Re: Service Synchronization

David E Jones

This feature already exists in the Service Engine, BTW.

-David


On Mar 10, 2008, at 6:37 PM, skip@thedevers wrote:

> I have a few services that take from 4 to 8 hours to complete with  
> the large data sets I am dealing with.  I want to synchronize those  
> services so it is impossible to start them if they are already  
> running.  My plan is to create a new entity to hold the service  
> name, start time, stop time, etc and have the service read the  
> entity record to see if it is already running.
>
> However, I know that entity records are frequently cached.  Is there  
> a setting in the entity definition to never cache or some easy  
> method to force the cache for the entity to clear?
>
> Skip
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.21.4/1313 - Release Date:  
> 3/5/2008 9:50 AM
>
>

Reply | Threaded
Open this post in threaded view
|

RE: Service Synchronization

SkipDever
Can you point me to the entity name or how to call the service start?
Doesn't make much sense writing something new that already exists.

Skip

-----Original Message-----
From: David E Jones [mailto:[hidden email]]
Sent: Monday, March 10, 2008 6:38 PM
To: [hidden email]
Subject: Re: Service Synchronization



This feature already exists in the Service Engine, BTW.

-David


On Mar 10, 2008, at 6:37 PM, skip@thedevers wrote:

> I have a few services that take from 4 to 8 hours to complete with
> the large data sets I am dealing with.  I want to synchronize those
> services so it is impossible to start them if they are already
> running.  My plan is to create a new entity to hold the service
> name, start time, stop time, etc and have the service read the
> entity record to see if it is already running.
>
> However, I know that entity records are frequently cached.  Is there
> a setting in the entity definition to never cache or some easy
> method to force the cache for the entity to clear?
>
> Skip
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.21.4/1313 - Release Date:
> 3/5/2008 9:50 AM
>
>


No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.21.4/1313 - Release Date: 3/5/2008
9:50 AM

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.21.4/1313 - Release Date: 3/5/2008
9:50 AM

Reply | Threaded
Open this post in threaded view
|

Re: Service Synchronization

David E Jones

Check out the "semaphore" attribute on the service element/tag in the  
service def XML file. In other words, you just specify how it should  
behave on the service definition.

-David


On Mar 10, 2008, at 8:54 PM, skip@thedevers wrote:

> Can you point me to the entity name or how to call the service start?
> Doesn't make much sense writing something new that already exists.
>
> Skip
>
> -----Original Message-----
> From: David E Jones [mailto:[hidden email]]
> Sent: Monday, March 10, 2008 6:38 PM
> To: [hidden email]
> Subject: Re: Service Synchronization
>
>
>
> This feature already exists in the Service Engine, BTW.
>
> -David
>
>
> On Mar 10, 2008, at 6:37 PM, skip@thedevers wrote:
>
>> I have a few services that take from 4 to 8 hours to complete with
>> the large data sets I am dealing with.  I want to synchronize those
>> services so it is impossible to start them if they are already
>> running.  My plan is to create a new entity to hold the service
>> name, start time, stop time, etc and have the service read the
>> entity record to see if it is already running.
>>
>> However, I know that entity records are frequently cached.  Is there
>> a setting in the entity definition to never cache or some easy
>> method to force the cache for the entity to clear?
>>
>> Skip
>>
>> No virus found in this outgoing message.
>> Checked by AVG Free Edition.
>> Version: 7.5.516 / Virus Database: 269.21.4/1313 - Release Date:
>> 3/5/2008 9:50 AM
>>
>>
>
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.21.4/1313 - Release Date:  
> 3/5/2008
> 9:50 AM
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.21.4/1313 - Release Date:  
> 3/5/2008
> 9:50 AM
>

Reply | Threaded
Open this post in threaded view
|

Re: Sending mails to contact lists

Alan Halley
In reply to this post by rajsaini
Hi Raj

The steps I take are:-

1. Select Marketing tab in Webtools
2. Select a ContactList I've already created
3. Create a new CommEvent on that list -- see attached image
4. Press save

I see the SEC rule firing a sendEMailToContactList being invoked and requesting an Async Service.

The Async service attempts to run but does nothing

Hope you can help.

Thanks

Alan

----- Original Message ----
From: Raj Saini <[hidden email]>
To: [hidden email]
Cc: Calum Miller <[hidden email]>
Sent: Monday, 10 March, 2008 8:47:10 PM
Subject: Re: Sending mails to contact lists

Hi Alan,

I have contact list emails working for me correctly. Can you tell what
and how exactly you are doing?

Raj

Alan Halley wrote:

> Hi Jacques
>
> I tried Raj's fix but it didn't make any difference.
>
> Alan
>
> ----- Original Message ----
> From: Jacques Le Roux <[hidden email]>
> To: [hidden email]
> Sent: Monday, 10 March, 2008 8:46:03 AM
> Subject: Re: Sending mails to contact lists
>
> Did you try Raj's advice (I commited his changes in https://issues.apache.org/jira/browse/OFBIZ-1699) ?
>
> Jacques
>
> From: "Alan Halley" <[hidden email]>
> Hi
>
> Thanks for responding so quickly.
>
> Here is a sample from our logs
>
> 2008-03-09 18:54:32,412 (http-0.0.0.0-8443-Processor3) [    ConfigXMLReader.java:297:INFO ] RequestMap Created: (94) records in
> 0.036s
> 2008-03-09 18:54:32,420 (http-0.0.0.0-8443-Processor3) [    ConfigXMLReader.java:391:INFO ] ViewMap Created: (5) records in 0.0080s
> 2008-03-09 18:54:32,458 (http-0.0.0.0-8443-Processor3) [    ConfigXMLReader.java:391:INFO ] ViewMap Created: (47) records in 0.046s
> 2008-03-09 18:54:32,468 (http-0.0.0.0-8443-Processor3) [    RequestHandler.java:243:INFO ] [Processing Request]:
> createContactListCommEvent sessionId=B328DB76615497C4705AD4CC42AB3401.jvm1
> 2008-03-09 18:54:32,528 (http-0.0.0.0-8443-Processor3) [      SequenceUtil.java:341:INFO ] Got bank of sequenced IDs for
> [CommunicationEvent]; curSeqId=10760, maxSeqId=10770, bankSize=10
> 2008-03-09 18:54:32,543 (http-0.0.0.0-8443-Processor3) [    ServiceEcaRule.java:101:INFO ] For Service ECA
> [createCommunicationEvent] on [commit] got false for condition: [null][][contactListId][is-empty][null][][true][String][]
> 2008-03-09 18:54:32,549 (http-0.0.0.0-8443-Processor3) [    ServiceEcaRule.java:118:INFO ] Running Service ECA Service:
> sendCommEventAsEmail, triggered by rule on Service: createCommunicationEvent
> 2008-03-09 18:54:32,560 (http-0.0.0.0-8443-Processor3) [    RequestHandler.java:433:INFO ] [RequestHandler.doRequest]: Response is
> a view. sessionId=B328DB76615497C4705AD4CC42AB3401.jvm1
> 2008-03-09 18:54:32,561 (http-0.0.0.0-8443-Processor3) [    RequestHandler.java:584:INFO ] servletName=control,
> view=EditContactListCommEvent sessionId=B328DB76615497C4705AD4CC42AB3401.jvm1
> 2008-03-09 18:54:32,616 (http-0.0.0.0-8443-Processor3) [      ScreenFactory.java:118:INFO ] Got 11 screens in 0.051s from:
> file:/home/mercatx/ofbiz/svntmp/mercatx/branches/cw1/applications/marketing/widget/ContactListScreens.xml
> 2008-03-09 18:54:32,648 (http-0.0.0.0-8443-Processor3) [      ScreenFactory.java:118:INFO ] Got 3 screens in 0.016s from:
> file:/home/mercatx/ofbiz/svntmp/mercatx/branches/cw1/applications/marketing/widget/CommonScreens.xml
> 2008-03-09 18:54:32,704 (http-0.0.0.0-8443-Processor3) [      ScreenFactory.java:118:INFO ] Got 16 screens in 0.046s from:
> file:/home/mercatx/ofbiz/svntmp/mercatx/branches/cw1/framework/common/widget/CommonScreens.xml
> 2008-03-09 18:54:32,729 (http-0.0.0.0-8443-Processor3) [  ModelScreenWidget.java:360:INFO ] In the include-screen tag the screen
> name was empty, ignoring include; in screen [GlobalDecorator]
> 2008-03-09 18:54:32,794 (default-invoker-Thread-3839) [        JobInvoker.java:211:INFO ] Invoker [default-invoker-Thread-3839]
> received job [1205088872557] from poller [org.ofbiz.service.job.JobPoller@1a0d866]
> 2008-03-09 18:54:32,846 (default-invoker-Thread-3839) [ GenericAsyncEngine.java:137:INFO ] Persisted job queued : 1205088872842
> 2008-03-09 18:54:43,519 (default-invoker-Thread-3839) [        JobInvoker.java:211:INFO ] Invoker [default-invoker-Thread-3839]
> received job [1205088872842] from poller [org.ofbiz.service.job.JobPoller@1a0d866]
> 2008-03-09 18:54:43,523 (default-invoker-Thread-3839) [PersistedServiceJob.java:138:INFO ]
> org.ofbiz.service.job.PersistedServiceJob@5c3e75[15865] -- Next runtime: -1
> [Error] :2:12: cvc-elt.1: Cannot find the declaration of element 'ofbiz-ser'.
> 2008-03-09 18:54:43,555 (default-invoker-Thread-3839) [    ServiceEcaRule.java:118:INFO ] Running Service ECA Service:
> setCommEventComplete, triggered by rule on Service: sendEmailToContactList
> 2008-03-09 18:54:43,595 (default-invoker-Thread-3839) [    ServiceEcaRule.java:101:INFO ] For Service ECA
> [updateCommunicationEvent] on [commit] got false for condition: [null][][statusId][equals][null][COM_IN_PROGRESS][true][String][]
> 2008-03-09 18:54:43,596 (default-invoker-Thread-3839) [    ServiceEcaRule.java:101:INFO ] For Service ECA
> [updateCommunicationEvent] on [commit] got false for condition: [null][][statusId][equals][null][COM_IN_PROGRESS][true][String][]
> 2008-03-09 18:54:43,597 (default-invoker-Thread-3839) [    ServiceEcaRule.java:101:INFO ] For Service ECA
> [updateCommunicationEvent] on [commit] got false for condition: [null][][statusId][equals][null][COM_IN_PROGRESS][true][String][]
> 2008-03-09 18:54:43,598 (default-invoker-Thread-3839) [    ServiceEcaRule.java:101:INFO ] For Service ECA
> [updateCommunicationEvent] on [commit] got false for condition: [null][][statusId][equals][null][COM_IN_PROGRESS][true][String][]
> 2008-03-09 18:54:47,053 (http-0.0.0.0-8080-Processor8) [ControlEventListener.java:62 :INFO ] Creating session:
> 5A05014119FC4FD6E87E94F4377F59AB.jvm1
> 2008-03-09 18:54:47,057 (http-0.0.0.0-8080-Processor8) [    ControlServlet.java:93 :INFO ] The character encoding of the request
> is: [null]. The character encoding we will use for the request and response is: [UTF-8]
> 2008-03-09 18:54:47,058 (http-0.0.0.0-8080-Processor8) [      VisitHandler.java:221:INFO ] Found visitorId [null] in cookie
>
>
> Alan
>
> ----- Original Message ----
> From: Jacques Le Roux <[hidden email]>
> To: [hidden email]
> Sent: Sunday, 9 March, 2008 9:09:46 PM
> Subject: Re: Sending mails to contact lists
>
> Some logs could help (especially snippets around this job)
>
> Jacques
>
> From: "Alan Halley" <[hidden email]>
> Hi
>
> I am having problems with sendEmailToContactList.
>
> My operating system is CentOs.
>
> As I understand it this runs an Async service to send the emails.  The problem I have is that I never see the emails being sent.
>
> The sendEmailToContactList service runs and creates entries in COMMUNICATION_EVENT and JOB_SAND_BOX  table.
>
> The service then seems to assume that all is well and runs setCommunicationEventComplete.
>
> I have run sendEmail service from webtools and this sends emails succesfully so I have inferred my email is configured properly.
>
> I'm at a loss to understand how an asynchronous service operates i.e. what is the workflow and what service picks up the job and
> runs it (is it JobPoller?)
>
> The JobSandBox shows all the jobs as finished but I'm not fully clear n what this means.
>
> Any help would be greatly appreciated.
>
> Thanks
>
> Alan Halley
>
> ----- Original Message ----
> From: Raj Saini <[hidden email]>
> To: [hidden email]
> Sent: Wednesday, 5 March, 2008 2:56:14 PM
> Subject: Re: Sending mails to contact lists
>
> Hi Ray,
>
> Thanks a ton. I will give it a try.
>
> Thanks again,
>
> Raj
>
> Ray Barlow wrote:

>> Hi Raj,
>>
>> In the marketing app click on contact list, then find your list, then
>> click on Comm Events and then Create New Contact List Comm Event should
>> land you here:
>> https://demo.hotwaxmedia.com/marketing/control/EditContactListCommEvent?contactListId=9000&DONE_PAGE=/marketing/control/ListContactList
>> based on the trunk demo server.
>>
>> Set your from details and party roles (maybe N/A), fill your subject and
>> content and click save.
>>
>> When you're happy with it change the status to "In-Progress" and click
>> save again. The comm events should then start to trigger and the email
>> flow, although you'll want to test it on a small list to start with. If
>> the list is clean and processes through OK the status should
>> automatically change to "Complete" when it is done but if there are
>> badly formatted email addresses that can stick the status and you will
>> need to manually mark as complete but you can review the logs to find
>> the errors.
>>
>> Ray
>>
>>
>>
>>
>>
>> Raj Saini wrote:
>>
>>   
>>> Hi,
>>>
>>> I have created Announcement mailing list and now customers are
>>> subscribing to this list. I want to send periodic email (Communication
>>> Event) to the member of contact list. I searched on Google, Wiki and
>>> mailing list archive but did not find any definite solution on sending
>>> mails to the contact list subscribers..
>>>
>>> Does such functionality exist in Ofbiz? If yes, can some one give a
>>> small hint on how to achieve this?
>>>
>>> Thanks,
>>>
>>> Raj Saini
>>>
>>>
>>>
>>>
>>>     
>>   
>
>
>
>
>
>
>
>
>
>
>
>
>


Reply | Threaded
Open this post in threaded view
|

Product cost entity

SkipDever
In reply to this post by David E Jones
When we sell a product, there are lots of ways to set the price we sell it
at.

Are there any similiar entities to store costs, eg. supplier price breaks at
quantity levels, special promotions, etc.

My current industry does this and I am about to create a new entity to
associate with SupplierProduct similiar to ProductPrice to allow the
purchasing person the opportunity to take advantage of quantity price
breaks.  If an entity or service already exists to support this, I would
prefer to use it.

I have looked, but do not find anything.  Does anyone know of something?

Skip
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.21.4/1313 - Release Date: 3/5/2008
9:50 AM

Reply | Threaded
Open this post in threaded view
|

Re: Sending mails to contact lists

rajsaini
In reply to this post by Alan Halley
Hi Alan,

Sorry for delay as I overlooked this mail some how.

You will need to change the status of CommEvent to In-Progress after
creating it. Do not create the CommEvent with In-Progress status as it
does not work.

So process should be:

1. Create CommEvent on the contact list. Status should be default (I
thin it is "Created")
2. Update the CommEvent to change the status to (In-Progress) and save it.

Second step should fire the email notification process.

Thanks,

Raj

> Hi Raj
>
> The steps I take are:-
>
> 1. Select Marketing tab in Webtools
> 2. Select a ContactList I've already created
> 3. Create a new CommEvent on that list -- see attached image
> 4. Press save
>
> I see the SEC rule firing a sendEMailToContactList being invoked and
> requesting an Async Service.
>
> The Async service attempts to run but does nothing
>
> Hope you can help.
>
> Thanks
>
> Alan
>
> ----- Original Message ----
> From: Raj Saini <[hidden email]>
> To: [hidden email]
> Cc: Calum Miller <[hidden email]>
> Sent: Monday, 10 March, 2008 8:47:10 PM
> Subject: Re: Sending mails to contact lists
>
> Hi Alan,
>
> I have contact list emails working for me correctly. Can you tell what
> and how exactly you are doing?
>
> Raj
>
> Alan Halley wrote:
> > Hi Jacques
> >
> > I tried Raj's fix but it didn't make any difference.
> >
> > Alan
> >
> > ----- Original Message ----
> > From: Jacques Le Roux <[hidden email]
> <mailto:[hidden email]>>
> > To: [hidden email] <mailto:[hidden email]>
> > Sent: Monday, 10 March, 2008 8:46:03 AM
> > Subject: Re: Sending mails to contact lists
> >
> > Did you try Raj's advice (I commited his changes in
> https://issues.apache.org/jira/browse/OFBIZ-1699) ?
> >
> > Jacques
> >
> > From: "Alan Halley" <[hidden email]
> <mailto:[hidden email]>>
> > Hi
> >
> > Thanks for responding so quickly.
> >
> > Here is a sample from our logs
> >
> > 2008-03-09 18:54:32,412 (http-0.0.0.0-8443-Processor3) [    
> ConfigXMLReader.java:297:INFO ] RequestMap Created: (94) records in
> > 0.036s
> > 2008-03-09 18:54:32,420 (http-0.0.0.0-8443-Processor3) [    
> ConfigXMLReader.java:391:INFO ] ViewMap Created: (5) records in 0.0080s
> > 2008-03-09 18:54:32,458 (http-0.0.0.0-8443-Processor3) [    
> ConfigXMLReader.java:391:INFO ] ViewMap Created: (47) records in 0.046s
> > 2008-03-09 18:54:32,468 (http-0.0.0.0-8443-Processor3) [    
> RequestHandler.java:243:INFO ] [Processing Request]:
> > createContactListCommEvent
> sessionId=B328DB76615497C4705AD4CC42AB3401.jvm1
> > 2008-03-09 18:54:32,528 (http-0.0.0.0-8443-Processor3) [      
> SequenceUtil.java:341:INFO ] Got bank of sequenced IDs for
> > [CommunicationEvent]; curSeqId=10760, maxSeqId=10770, bankSize=10
> > 2008-03-09 18:54:32,543 (http-0.0.0.0-8443-Processor3) [    
> ServiceEcaRule.java:101:INFO ] For Service ECA
> > [createCommunicationEvent] on [commit] got false for condition:
> [null][][contactListId][is-empty][null][][true][String][]
> > 2008-03-09 18:54:32,549 (http-0.0.0.0-8443-Processor3) [    
> ServiceEcaRule.java:118:INFO ] Running Service ECA Service:
> > sendCommEventAsEmail, triggered by rule on Service:
> createCommunicationEvent
> > 2008-03-09 18:54:32,560 (http-0.0.0.0-8443-Processor3) [    
> RequestHandler.java:433:INFO ] [RequestHandler.doRequest]: Response is
> > a view. sessionId=B328DB76615497C4705AD4CC42AB3401.jvm1
> > 2008-03-09 18:54:32,561 (http-0.0.0.0-8443-Processor3) [    
> RequestHandler.java:584:INFO ] servletName=control,
> > view=EditContactListCommEvent
> sessionId=B328DB76615497C4705AD4CC42AB3401.jvm1
> > 2008-03-09 18:54:32,616 (http-0.0.0.0-8443-Processor3) [      
> ScreenFactory.java:118:INFO ] Got 11 screens in 0.051s from:
> >
> file:/home/mercatx/ofbiz/svntmp/mercatx/branches/cw1/applications/marketing/widget/ContactListScreens.xml
> > 2008-03-09 18:54:32,648 (http-0.0.0.0-8443-Processor3) [      
> ScreenFactory.java:118:INFO ] Got 3 screens in 0.016s from:
> >
> file:/home/mercatx/ofbiz/svntmp/mercatx/branches/cw1/applications/marketing/widget/CommonScreens.xml
> > 2008-03-09 18:54:32,704 (http-0.0.0.0-8443-Processor3) [      
> ScreenFactory.java:118:INFO ] Got 16 screens in 0.046s from:
> >
> file:/home/mercatx/ofbiz/svntmp/mercatx/branches/cw1/framework/common/widget/CommonScreens.xml
> > 2008-03-09 18:54:32,729 (http-0.0.0.0-8443-Processor3) [  
> ModelScreenWidget.java:360:INFO ] In the include-screen tag the screen
> > name was empty, ignoring include; in screen [GlobalDecorator]
> > 2008-03-09 18:54:32,794 (default-invoker-Thread-3839) [        
> JobInvoker.java:211:INFO ] Invoker [default-invoker-Thread-3839]
> > received job [1205088872557] from poller
> [org.ofbiz.service.job.JobPoller@1a0d866]
> > 2008-03-09 18:54:32,846 (default-invoker-Thread-3839) [
> GenericAsyncEngine.java:137:INFO ] Persisted job queued : 1205088872842
> > 2008-03-09 18:54:43,519 (default-invoker-Thread-3839) [        
> JobInvoker.java:211:INFO ] Invoker [default-invoker-Thread-3839]
> > received job [1205088872842] from poller
> [org.ofbiz.service.job.JobPoller@1a0d866]
> > 2008-03-09 18:54:43,523 (default-invoker-Thread-3839)
> [PersistedServiceJob.java:138:INFO ]
> > org.ofbiz.service.job.PersistedServiceJob@5c3e75[15865] -- Next
> runtime: -1
> > [Error] :2:12: cvc-elt.1: Cannot find the declaration of element
> 'ofbiz-ser'.
> > 2008-03-09 18:54:43,555 (default-invoker-Thread-3839) [    
> ServiceEcaRule.java:118:INFO ] Running Service ECA Service:
> > setCommEventComplete, triggered by rule on Service:
> sendEmailToContactList
> > 2008-03-09 18:54:43,595 (default-invoker-Thread-3839) [    
> ServiceEcaRule.java:101:INFO ] For Service ECA
> > [updateCommunicationEvent] on [commit] got false for condition:
> [null][][statusId][equals][null][COM_IN_PROGRESS][true][String][]
> > 2008-03-09 18:54:43,596 (default-invoker-Thread-3839) [    
> ServiceEcaRule.java:101:INFO ] For Service ECA
> > [updateCommunicationEvent] on [commit] got false for condition:
> [null][][statusId][equals][null][COM_IN_PROGRESS][true][String][]
> > 2008-03-09 18:54:43,597 (default-invoker-Thread-3839) [    
> ServiceEcaRule.java:101:INFO ] For Service ECA
> > [updateCommunicationEvent] on [commit] got false for condition:
> [null][][statusId][equals][null][COM_IN_PROGRESS][true][String][]
> > 2008-03-09 18:54:43,598 (default-invoker-Thread-3839) [    
> ServiceEcaRule.java:101:INFO ] For Service ECA
> > [updateCommunicationEvent] on [commit] got false for condition:
> [null][][statusId][equals][null][COM_IN_PROGRESS][true][String][]
> > 2008-03-09 18:54:47,053 (http-0.0.0.0-8080-Processor8)
> [ControlEventListener.java:62 :INFO ] Creating session:
> > 5A05014119FC4FD6E87E94F4377F59AB.jvm1
> > 2008-03-09 18:54:47,057 (http-0.0.0.0-8080-Processor8) [    
> ControlServlet.java:93 :INFO ] The character encoding of the request
> > is: [null]. The character encoding we will use for the request and
> response is: [UTF-8]
> > 2008-03-09 18:54:47,058 (http-0.0.0.0-8080-Processor8) [      
> VisitHandler.java:221:INFO ] Found visitorId [null] in cookie
> >
> >
> > Alan
> >
> > ----- Original Message ----
> > From: Jacques Le Roux <[hidden email]
> <mailto:[hidden email]>>
> > To: [hidden email] <mailto:[hidden email]>
> > Sent: Sunday, 9 March, 2008 9:09:46 PM
> > Subject: Re: Sending mails to contact lists
> >
> > Some logs could help (especially snippets around this job)
> >
> > Jacques
> >
> > From: "Alan Halley" <[hidden email]
> <mailto:[hidden email]>>
> > Hi
> >
> > I am having problems with sendEmailToContactList.
> >
> > My operating system is CentOs.
> >
> > As I understand it this runs an Async service to send the emails.  
> The problem I have is that I never see the emails being sent.
> >
> > The sendEmailToContactList service runs and creates entries in
> COMMUNICATION_EVENT and JOB_SAND_BOX  table.
> >
> > The service then seems to assume that all is well and runs
> setCommunicationEventComplete.
> >
> > I have run sendEmail service from webtools and this sends emails
> succesfully so I have inferred my email is configured properly.
> >
> > I'm at a loss to understand how an asynchronous service operates
> i.e. what is the workflow and what service picks up the job and
> > runs it (is it JobPoller?)
> >
> > The JobSandBox shows all the jobs as finished but I'm not fully
> clear n what this means.
> >
> > Any help would be greatly appreciated.
> >
> > Thanks
> >
> > Alan Halley
> >
> > ----- Original Message ----
> > From: Raj Saini <[hidden email] <mailto:[hidden email]>>
> > To: [hidden email] <mailto:[hidden email]>
> > Sent: Wednesday, 5 March, 2008 2:56:14 PM
> > Subject: Re: Sending mails to contact lists
> >
> > Hi Ray,
> >
> > Thanks a ton. I will give it a try.
> >
> > Thanks again,
> >
> > Raj
> >
> > Ray Barlow wrote:
> >
> >> Hi Raj,
> >>
> >> In the marketing app click on contact list, then find your list, then
> >> click on Comm Events and then Create New Contact List Comm Event should
> >> land you here:
> >>
> https://demo.hotwaxmedia.com/marketing/control/EditContactListCommEvent?contactListId=9000&DONE_PAGE=/marketing/control/ListContactList 
> <https://demo.hotwaxmedia.com/marketing/control/EditContactListCommEvent?contactListId=9000&DONE_PAGE=/marketing/control/ListContactList>
> >> based on the trunk demo server.
> >>
> >> Set your from details and party roles (maybe N/A), fill your
> subject and
> >> content and click save.
> >>
> >> When you're happy with it change the status to "In-Progress" and click
> >> save again. The comm events should then start to trigger and the email
> >> flow, although you'll want to test it on a small list to start with. If
> >> the list is clean and processes through OK the status should
> >> automatically change to "Complete" when it is done but if there are
> >> badly formatted email addresses that can stick the status and you will
> >> need to manually mark as complete but you can review the logs to find
> >> the errors.
> >>
> >> Ray
> >>
> >>
> >>
> >>
> >>
> >> Raj Saini wrote:
> >>
> >>  
> >>> Hi,
> >>>
> >>> I have created Announcement mailing list and now customers are
> >>> subscribing to this list. I want to send periodic email (Communication
> >>> Event) to the member of contact list. I searched on Google, Wiki and
> >>> mailing list archive but did not find any definite solution on sending
> >>> mails to the contact list subscribers..
> >>>
> >>> Does such functionality exist in Ofbiz? If yes, can some one give a
> >>> small hint on how to achieve this?
> >>>
> >>> Thanks,
> >>>
> >>> Raj Saini
> >>>
> >>>
> >>>
> >>>
> >>>    
> >>  
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
>

Reply | Threaded
Open this post in threaded view
|

RE: Service Synchronization

SkipDever
In reply to this post by David E Jones
David

I cannot find the use for semaphore in any document I can lay my hands on.
I looked in ALL the files using a global search for "semaphore" as well as
looking manually in framework\service\dtd\*.* and can find nothing.

I also re-read http://ofbiz.apache.org/docs/services.html

Can you point me to another document I am missing?  I would also think that
searching the java files for semaphore would have turned up something.

Is this something newer than 1Jan2008 as that is the last time I got a
build.

Skip

-----Original Message-----
From: David E Jones [mailto:[hidden email]]
Sent: Monday, March 10, 2008 7:55 PM
To: [hidden email]
Subject: Re: Service Synchronization



Check out the "semaphore" attribute on the service element/tag in the
service def XML file. In other words, you just specify how it should
behave on the service definition.

-David


On Mar 10, 2008, at 8:54 PM, skip@thedevers wrote:

> Can you point me to the entity name or how to call the service start?
> Doesn't make much sense writing something new that already exists.
>
> Skip
>
> -----Original Message-----
> From: David E Jones [mailto:[hidden email]]
> Sent: Monday, March 10, 2008 6:38 PM
> To: [hidden email]
> Subject: Re: Service Synchronization
>
>
>
> This feature already exists in the Service Engine, BTW.
>
> -David
>
>
> On Mar 10, 2008, at 6:37 PM, skip@thedevers wrote:
>
>> I have a few services that take from 4 to 8 hours to complete with
>> the large data sets I am dealing with.  I want to synchronize those
>> services so it is impossible to start them if they are already
>> running.  My plan is to create a new entity to hold the service
>> name, start time, stop time, etc and have the service read the
>> entity record to see if it is already running.
>>
>> However, I know that entity records are frequently cached.  Is there
>> a setting in the entity definition to never cache or some easy
>> method to force the cache for the entity to clear?
>>
>> Skip
>>
>> No virus found in this outgoing message.
>> Checked by AVG Free Edition.
>> Version: 7.5.516 / Virus Database: 269.21.4/1313 - Release Date:
>> 3/5/2008 9:50 AM
>>
>>
>
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.21.4/1313 - Release Date:
> 3/5/2008
> 9:50 AM
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.21.4/1313 - Release Date:
> 3/5/2008
> 9:50 AM
>


No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.21.4/1313 - Release Date: 3/5/2008
9:50 AM

No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.518 / Virus Database: 269.21.7/1324 - Release Date: 3/10/2008
7:27 PM

Reply | Threaded
Open this post in threaded view
|

Re: Service Synchronization

Vikas Mayur-2
Doing a search for semaphore in *.* (global search), it shows many results.
Few of them are :

In framework/service/dtd/services.xsd

        <xs:attribute name="semaphore" default="none">
            <xs:simpleType>
                <xs:restriction base="xs:token">
                    <xs:enumeration value="none"/>
                    <xs:enumeration value="fail"/>
                    <xs:enumeration value="wait"/>
                </xs:restriction>
            </xs:simpleType>
        </xs:attribute>


In framework/service/servicedef/services.xml

    <!-- Service Engine Services -->
    <service name="purgeOldJobs" engine="java"
            location="org.ofbiz.service.ServiceUtil" invoke="purgeOldJobs"
auth="true" use-transaction="false" semaphore="wait">


It has to some thing wrong with your search.

Vikas



On Fri, Mar 14, 2008 at 8:52 AM, skip@thedevers <[hidden email]> wrote:

> David
>
> I cannot find the use for semaphore in any document I can lay my hands on.
> I looked in ALL the files using a global search for "semaphore" as well as
> looking manually in framework\service\dtd\*.* and can find nothing.
>
> I also re-read http://ofbiz.apache.org/docs/services.html
>
> Can you point me to another document I am missing?  I would also think
> that
> searching the java files for semaphore would have turned up something.
>
> Is this something newer than 1Jan2008 as that is the last time I got a
> build.
>
> Skip
>
> -----Original Message-----
> From: David E Jones [mailto:[hidden email]]
> Sent: Monday, March 10, 2008 7:55 PM
> To: [hidden email]
> Subject: Re: Service Synchronization
>
>
>
> Check out the "semaphore" attribute on the service element/tag in the
> service def XML file. In other words, you just specify how it should
> behave on the service definition.
>
> -David
>
>
> On Mar 10, 2008, at 8:54 PM, skip@thedevers wrote:
>
> > Can you point me to the entity name or how to call the service start?
> > Doesn't make much sense writing something new that already exists.
> >
> > Skip
> >
> > -----Original Message-----
> > From: David E Jones [mailto:[hidden email]]
> > Sent: Monday, March 10, 2008 6:38 PM
> > To: [hidden email]
> > Subject: Re: Service Synchronization
> >
> >
> >
> > This feature already exists in the Service Engine, BTW.
> >
> > -David
> >
> >
> > On Mar 10, 2008, at 6:37 PM, skip@thedevers wrote:
> >
> >> I have a few services that take from 4 to 8 hours to complete with
> >> the large data sets I am dealing with.  I want to synchronize those
> >> services so it is impossible to start them if they are already
> >> running.  My plan is to create a new entity to hold the service
> >> name, start time, stop time, etc and have the service read the
> >> entity record to see if it is already running.
> >>
> >> However, I know that entity records are frequently cached.  Is there
> >> a setting in the entity definition to never cache or some easy
> >> method to force the cache for the entity to clear?
> >>
> >> Skip
> >>
> >> No virus found in this outgoing message.
> >> Checked by AVG Free Edition.
> >> Version: 7.5.516 / Virus Database: 269.21.4/1313 - Release Date:
> >> 3/5/2008 9:50 AM
> >>
> >>
> >
> >
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.5.516 / Virus Database: 269.21.4/1313 - Release Date:
> > 3/5/2008
> > 9:50 AM
> >
> > No virus found in this outgoing message.
> > Checked by AVG Free Edition.
> > Version: 7.5.516 / Virus Database: 269.21.4/1313 - Release Date:
> > 3/5/2008
> > 9:50 AM
> >
>
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.21.4/1313 - Release Date: 3/5/2008
> 9:50 AM
>
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.518 / Virus Database: 269.21.7/1324 - Release Date: 3/10/2008
> 7:27 PM
>
>
12