Skip to Content
author's profile photo Former Member
Former Member

SAP JMS Provider Metadata

Hi all,

is it possible to send metadata with JMS Messages using the SAP JMS provider built in in SAP Netweaver PI 7.1 Java Stack ?

I have a generic message format and the routing should be based on metadata for the JMS message.

Best regards,

Martin

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 28, 2008 at 06:32 AM

    Hopefully you understand what i mean.

    I have a Java application which is sending messages to PI via JMS. Only the sending Java application knows the receiver for the message. It's not possible to determine the receiver by PI as the message just contains raw data and the receiver can't be determined out of this.

    So we would like to send the receiver as metainformation, which is not part of the message itself and subsequently base the receiver determination in PI on this metadata.

    Best regards,

    martin

    Add a comment
    10|10000 characters needed characters exceeded

    • You can put data into the JMS header.

      The JMS adapter can read the JMS header ans store the values in ASMA.

      You can do receiver determination based on ASMA.

      Check online help for reading the JMS header:

      "If you want to set additional JMS message attributes, select Specify Additional JMS Message Properties (Maximum of 10).

      In the table, enter the Name and Java Type of the JMS message properties whose values are to be included in the message header of the PI message.

      Under Java Type, you define the JMS Java message type for the attribute in the created JMS message. You can enter the following:

      boolean

      byte

      short

      int

      long

      float

      double

      String

      The technical names of the additional attributes are DCJMSMessageProperty0, DCJMSMessageProperty1, ..., DCJMSMessageProperty9.

      You can enter more than ten properties in the table. However, only the first ten are taken into account.

      The attribute namespace for the adapter is http://sap.com/xi/XI/System/JMS."

  • Posted on Oct 28, 2008 at 06:09 AM

    Hello Martin

    Can you explain this further please, with a example if possible.

    Regards

    Bhavesh

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.