cancel
Showing results for 
Search instead for 
Did you mean: 

JavaDocs for Module Development

Former Member
0 Kudos

Hi All,

I need to find a documentation for the methods getMessageProperty/setMessageProperty of the Message Class in the Adapter Framework.

I have already looked into the <b>sample_ra.rar</b> from my XI installation but i couldn't find this method in there.

I'd appreciate any help.

Tks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I just downloaded and extracted the sample_ra.jar file. I was able to find the javadoc of both methods in the interface Message. Pls see below:

============================================

getMessageProperty

public java.lang.String getMessageProperty(java.lang.String namespace,

java.lang.String name)Returns the value of an additional message property, in case that such an value exists.

Parameters:

namespace - The namespace of the property to get.

name - The name of the property to get.

Returns:

The value for the given namespace/name combination, or null, when no such value exists.

============================================

setMessageProperty

public void setMessageProperty(java.lang.String namespace,

java.lang.String name,

java.lang.String value)

throws InvalidParamExceptionSets an additional message field, if supported by the Message profile implementation. Such additional fields will not be visible as an own table column in the MS message monitoring, since it is to be stored as part of the message header. This mechanism allows different protocol implementations to support more message fiels, as per default available in the MS Message interface. Such fields can be accessed through this API method, without casting to the specific Message implementation.

Parameters:

namespace - The namespace of the property to set.

name - The name of the property to set.

value - The value of the property to set. When null is given as the value param, an already set value will be deleted.

Throws:

InvalidParamException - If either the length of one of the parameters is too long, or in case of an unknown/not allowed namespace/name combination (but only if the Message implementation has the necessary knowledge about the valid namespace/name pairs).

Former Member
0 Kudos

Thanks William,

I tried but couldn't find this documentation. Can you send it to me? If you you have the link I can download it myself.

Regards,

Leonardo Tayt-son

henrique_pinto
Active Contributor
0 Kudos

Leonardo,

it's in your XI system. 🐵

Try the following path:

/usr/sap/<sysID>/DVEBMGS<InstNumber>/j2ee/cluster/server0/apps/sap.com/com.sap.aii.af.sample.ra/connector/connectors/sample_ra.rar/sample_ra.jar

Regards,

Henrique.

Answers (1)

Answers (1)

Former Member
0 Kudos

I managed to solve the problem using a work-around.

I have used the JCO library instead of HTTPS requests.

Leonardo