Hello,
>>What are your approaches regarding this requirement in the context of java-only?
I would suggest you to schedule jobs like this:
Customize Alerts Using Job in PI 7.31/PO
>> alerts are consumed according to the given interval and not in "real time" when error occurs, today solution using BADI is "real time" - if possible I would prefer "real time" solution
Check this:
Michal's PI tips: How to trigger an alert for Component Based Message Alerts (CBMA) via "API" ?
>>an separate service determine the actual alert count would be helpful to provide the correct value for maxAlerts, this have to be called beforehand
I haven't tried it but i think u can do that, since these consumers are nothing but JMS queues only so i think there will be a method to read number of alert counts.
>>In history I saw emails generated by the standard alert consumer which only contain details for the first alert, in my case I need details especially the message id for all errorneous messages
If ur max alert parameter is greater than 1 then u should see multiple alert text (along with message id and other details) in ur email message.
Thanks
Amit Srivastava