Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to code JMS client to receive message from XI?

Hello guys,

I'm trying to setup an integration scenario with FTP as sender and JMS java client as receiver. XI AS as JMS provider, thus "Access JMS Provider with JNDI" is set as transport protocol for the receiver communication channel. As I code the java client, I need the jar file that contains SAP JMS implementation like the class com.sap.engine.services.jndi.InitialContextFactoryImpl. Where can I download this jar file to run the java client?

(The jms client is not running in the same machine as XI)

BTW, the initial context in the java JMS client is created like:

Properties p = new Properties();

p.put(Context.INITIAL_CONTEXT_FACTORY,"com.sap.engine.services.jndi.InitialContextFactoryImpl");

p.put(Context.PROVIDER_URL,"http://pwdf2709.wdf.sap.corp:50010");

jndiContext = new InitialContext(p);

However I'm not sure about protocol in the URL, is it HTTP or anything else?

Can somebody give me a hint for the problems?

Thanks

Jianjun

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question