cancel
Showing results for 
Search instead for 
Did you mean: 

error with the xmlpayload in a J2EE module

Former Member
0 Kudos

Hello,

I've created an adapter in order to send the messages only when it is time.

My problem is that when it is not time, I must stop the process. I thought about two ways to do so :

- throw an exception (UnsupportedOperationException for example)

- Modify the data in the xml object (xmlpayload) : erase all the data, erase the xml structure, value the xmlpayload with null...

With the first method, I can't see the messages in the AuditLog nor in the Integration engine-> Monitoring.

With the second method, I get an exception whatever change I make in the xmlPayload.

Has anybody any idea on the best way to proceed?

Regards

Yann

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Yann...

A curios question...How are determining whether the message needs to be processed or not? is it based on the source message? Is it not possible to do the same thing using mapping with a BPM?

If the logic of determining whether to process the message or not can be put anywhere..try to include it in a mapping. The mapping could be like this -

1 source message

2 target messages(the additional message in the target is to say whether the message needs to be processed)

in a bpm...get the source message..do the mapping and after the mapping , using a switch step check what part you need to go forward with.

Thanks,

Renjith

Former Member
0 Kudos

Hi Renjith,

the determination of whether the message needs to be processed or not is based on time parameters. Those parameters are set in the Module Configuration part and retrieved in the module.

It basically the startime and the endtime defining the period during which the message should be processed.

I don't understand the way you suggest to achieve that goal using BPM... you mean it is possible to stop a process?

Regards

Yann

Former Member
0 Kudos

Hi Renjith

I've looked further to your solution proposals.

The mechanism I want to set should be used in many scenarii. Therefore, I'm not sure your mapping solution would be appropriate, as I would have to independantly change each mapping (and some of them are already very complex).

I'm not familiar with BMP yet, and I wonder whether it could be re-used for each scenario or whether I would have to create a new one each time I need.

The advantage of adapter module is that it can be deployed once and for all and then any time I need to use it, I just have to configure the Communication Channel so.

But maybe there is a better (and working) solution...??

regards

Yann