on 10-18-2010 11:26 PM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
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?
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
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
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.