cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Additional JMS Parameters ...

Former Member
0 Kudos

Hi experts,

We are using PI 7.1 and I've set up a communication Channel using JMS Adapter to send

messages to a Sonic MQ queue.

I need to send some values as JMS parameters, two of which are constants and two are values

from the Sender message. I tried defining and setting up the parameters with constants values

in the Communication Channel under the Advanced tab by selecting the check-box

set Adapter-specific Message Attributes as follows:

Name TYPE

*********** *******

ContentType String

ReturnValue boolean

Name VAlue

*********** ***********

Contenttype CompanyCode

ReturnValute true

This however lead to an error in the Adapter Engine (RWB).

My problem is:

1. Can anyone please instruct me as to how to go about defining and setting up

additional JMS parameters?

2. How to go about defining/setting up variables that will get their values from

the sender message?

Thanks & Cheers,

Joe

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I also had a similar query, check if the replies help you:

Best Regards,

Pankaj.

Former Member
0 Kudos

Hi Pankaj,

I checked your solution ( ) to solve your query problem using a UDF I must say that you might be able to help me here. Since I already know the name of the property and its type (key0..key9), I would like to dynamically set the value of the property (value0..value9) based on the data of an incoming message.

Cheers,

Joe

rajasekhar_reddy14
Active Contributor
0 Kudos
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get
(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/JMS","DCJMSMessageProperty0"); .
conf.put(key1,Var1); 
return "";

Var1 is argument to UDF ,comes from source message,

Regards,

Raj

Former Member
0 Kudos

Hi Raj ,

This solved my problem and I must say that Pankaj suggested the same thing but it was I that didn't under, sorry!

I would like to change my point setting for Pankaj but don't know how to...

Cheers,

Joe

Answers (1)

Answers (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi,

try below steps

1) In Adapter Specific Message Attributes under the "Advanced" tab, use the table to enter your property names into the table (up to 10).

2). Click on the "Module" tab of the communication channel.

3). In the processing sequence, add a new module called "AF_Modules/DynamicConfigurationBean" type "Local Enterprise Bean" .

4) You can now enter name value pairs in the module configuration table , if you want to assign a value of "TEST" to a property called "Source Scheme" (created in step 1, and first entry in table), then the configuration would be as follows:

Module Key Parameter Name Parameter Value

key.0 insert http://sap.com/xi/XI/System/JMS <http://sap.com/xi/XI/System/JMS> DCJMSMessageProperty0 value.0 TEST

Regards,

RAJ

Former Member
0 Kudos

Hej Raj,

I thought that I understood your explaination but still couldn't seem to get it to work.

This is what I did:

1. Under Parameter tab - Advanced, I did the following:

Created 1 parameter/Type under "Specify Additional" JMS Message Properties:

Name = ContentType

Java Type = String

2. Under Module tab -Process Sequence, I created the following:

Module Name: AF_Modules/DynamicConfigurationBean

Type: Local Enterprise Bean

Module Key: 0

3. Under Module tab - Module Configuration, I created the following:

Module Key = 0

Parameter Name = ContentType

Parameter Value = ExportConfirmation

You mentioned "http://sap.com/xi/XI/System/JMS <http://sap.com/xi/XI/System/JMS> DCJMSMessageProperty0" in your explaination but I didn't understand where to place it/them.

RKothari
Contributor
0 Kudos

Hello,

Please try mentioning the parameter as:

Module Key = 0

Parameter Name = key.0

Parameter Value = insert http://sap.com/xi/XI/System/JMS <http://sap.com/xi/XI/System/JMS> DCJMSMessageProperty0

Module Key = 0

Parameter Name = value.0

Parameter Value = TEST

-Rahul

Former Member
0 Kudos

Hi guys,

thanks for your help in solving the first part of my problem; sending static values where the

PARAMETER VALUE = insert http://sap.com/xi/XI/System/JMS DCJMSMessageProperty0

and NOT

PARAMETER VALUE = insert http://sap.com/xi/XI/System/JMS <http://sap.com/xi/XI/System/JMS> DCJMSMessageProperty0

The second part of my problem is:

How do I go about sending values that are populated from the incoming messages as JMS Properties?

Former Member
0 Kudos

Check my wiki:

How to handle multiple message formats from 1 JMS Queue

http://wiki.sdn.sap.com/wiki/display/XI/Howtohandlemultiplemessageformatsfrom1JMS+Queue

Regards

Liang

Former Member
0 Kudos

Hi,

I am trying to send a file over FTPS (FTP using SSL/TLS) .

But it fails with the following error in RWB - Communication Channel monitoring:

Error when getting an FTP connection from connection pool: com.sap.aii.af.lib.util.concurrent.ResourcePoolException:

Unable to create new pooled resource: FTPEx: 'AUTH TLS': command not understood

I running NW711_05 and my FTP Connection Parameters are as follows:

Server: OurServerName

Port: 21

Data Connection: Passive {even tried Active but got the same error}

Timeout: 20

Connection Security: FTPS (FTP Using SSL/TLS) for control connection

X Use X.509 Certificate for Client Authentication

Keystore: service_ssl

X.509 Certificate and Private Key: ssl-credentials

Do I need to do any specific configuration/settings on the receiving FTP-server side?

kind regards,

Joe