cancel
Showing results for 
Search instead for 
Did you mean: 

unable to set the JMS Attribute

Former Member
0 Kudos

Hi,

Scenario : File to JMS.

Aim : We are trying to set the one of the JMS attribute(in this case its 'DCJMSMessageProperty0') through "Specify Additional JMS Message Properties " on the Advanced tab of the receiver JMS adapter so that it would contain the PI message ID.

Correlation settings are as follows:

Set JMS CorrelationID To : PI Message ID(MessageID)

Set JMS Property to : DCJMSMessageProperty0

Value : PI Message ID(MessageID)

When i do so, get following error.

Delivery of the message to the application using connection JMS_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: while trying to invoke the method com.sap.aii.af.sdk.xi.mo.xmb.DynamicConfiguration.get(java.lang.String, java.lang.String) of an object loaded from local variable 'dynConfig'

Basically, I want to set DCJMSMessageProperty0 with value as PI message ID.

Can you focus.

Thanks,

Vishal

Accepted Solutions (0)

Answers (1)

Answers (1)

stefan_grube
Active Contributor
0 Kudos

You can use the Dynamicconfigurationbean to set this attribute:

http://help.sap.com/saphelp_nwpi711/helpdata/en/45/da2239feb22e98e10000000a155369/frameset.htm

Add this bean in the module chain of your JMS adapter channel.

Former Member
0 Kudos

This scenario is without creating ESR objects, else i would have set it via above mentioned bean.

stefan_grube
Active Contributor
0 Kudos

Since when is the JMS adapter channel an ESR object?

Just put the bean to the channel and maintain the channel parameters.

Former Member
0 Kudos

hi Vishal,

You do not need ESR mappings as Stefan has already mentioned. Just update the module parameters according to example 2 in the link. Your message id would be set by the channel.

Regards,

Ninu

Former Member
0 Kudos

you are correct, but that was just for your information and i have already done with that

AF_Modules/DynamicConfigurationBean

Parameter Name          Value

key.0                              insert http://sap.com/xi/XI/System/JMS DCJMSMessageProperty0

value.0                         message.messageId

stefan_grube
Active Contributor
0 Kudos

That should work. So check your channel config twice.

Which PI release do you use?

Former Member
0 Kudos

i know, it should work but messageId is not getting set into the intended property i.e. DCJMSMessageProperty0.

stefan_grube
Active Contributor
0 Kudos

If this does not work, I do not know any other solution besides writing own code.

Former Member
0 Kudos

hi Vishal,

Can you please try giving read instead of insert?

REgards,

Ninu

Regards,

Ninu