cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP to JMS issue

Former Member
0 Kudos

I have created a BPM which sends HTTP request over to JMS Websphere MQ (receiver comm channel). After I send async data to the MQ, I have a transformation step which reads the correlation id. In order for this to work, I have enabled Adapter specific message attributes.

This is the code I have in my UDF (is a step after send step)

java.util.Map map = container.getTransformationParameters();

DynamicConfiguration conf = (DynamicConfiguration) container

.getTransformationParameters()

.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey key = DynamicConfigurationKey.create(

"http://sap.com/xi/XI/System/JMS", "DCJMSCorreleationID" );

String corrId = conf.get(key);

return corrId;

I get a null value eventhough I see a corr id in the adapter monitor.

In the mapping trace, I see

<Trace level="3" type="T">Dynamic configuration is empty</Trace>

Any ideas on what I'm doing wrong here.

Thank you.

Accepted Solutions (0)

Answers (1)

Answers (1)

moorthy
Active Contributor
0 Kudos

Hi,

Similar thread discussion-

May be code problem

http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm

Regards,

Moorthy

Former Member
0 Kudos

Thanks Moorthy.

I'm able to set the correlation id before send and retrieve it after send.

Sequence being

HTTP -> Transform (set corr id) -> Send JMS -> Transform (retrieve corr id)

The problem is if my communicaiton channel is down, I still can retrieve the correlation id from the dynamic config. I was hoping would get a null if the channel is down and a value if the channel is up and running.

How can I tell if the channel is down?

Thanks, Parimala

moorthy
Active Contributor
0 Kudos

For the channel is down, you can set up Adapter alerts for this. Just like normal alert configuration.

So that person can be notified thru Alert/Email.

Regards,

Moorthy

Former Member
0 Kudos

Unfortunately, this one object is not set up in our current CCMS monitoring and therefore I cannot get any alerts.

Do you know how I can get this to work. CCMS monitor shows alerts for IS, QRFC queues, Java components. But I don't see anything for Adapters.

I don't mind writing an EJB to check status. I see in com.sap.aii.af.monitor.api.AdapterStatus with method getStatusData()....not sure how this one works.

I appreciate any help. Thank you.