AQ Adapter with message selector rule

Hi,
I'm doing a B2B11g implementation on AS2. Incoming messages are processed using the AQ adapter. Now I have several (about 8) AQ-adapter implementations on the IP_IN_QUEUE that select messages using a message-selector-rule based on the DocumentType. So each SOAComposite dequeues and processes the appropriate document.
This works fine, but I'm looking for any performance recommendations on this.
What is the impact on CPU for example using message selector rules? Any do's and don'ts on this?
Thanks in advance.
Regards,
Martien

http://download.oracle.com/docs/cd/B14099_19/integrate.1012/b25307/adptr_aq.htm#CJAEIACG

Similar Messages

  • Querying messages with message selectors

    I have been looking at the JMS 1.1 spec and do not see anything that helps durable subscribers change queries without losing prior messages. If I create a durable subscription with no message selector I receive all messages for the subscribed topic. If I change the durable subscription to use a message selector (for example, "JMSPriority = 9", when I call any of the TopicSubscriber receive calls I lose all previous messages which don't match the selector. Is there any way around this?

    Ok. I get what you mean now.
    The problem lies in that you double-change the selector.
    This, in my opinion (which isn't worth much) calls for a different angle on this problem.
    Consider the following:
    a) do you absolutely have to have a topic? can't you use a queue (and use a queuebrowser) ?
    b) if you must use a topic - can you create two subscribers - one that gets all the messages, and
    another onw that only gets those with priority=7?
    c) it is bad practice to change the selector of the subscriber at runtime. If you do (as you do) - you are bound to lose messages on the second switch over.
    d) can't you just subscribe to all the messages on the same subscriber, and check upon arrival what to do with the message according to the priority?
    Now, you probably think - hey, this is silly. But regard this : you are using the selector in a way that was not foreseen (on a topic) by the spec. Why is that? because you want, with the same subscriber, to have two receiving channels (one for regular messages, and then one for "special" messages) - this is not done with one subscriber. This is done with two operating simultaneously.
    I mean - if you decide you don't want to rely on the JMS provider to hand you the higher priority messages first - that's ok, but you can't blame it for not holding messages that you don't want any more..
    Nimo.

  • Using AQ adapter with CMEF

    Anybody using the Content Management Event Framework (CMEF) from portal to invoke a BPEL process?
    I'm only interested in ADD_ITEM events in the queue, and since CMEF seems to put all events in the queue by default, I'd like to filter events to only get the ADD_ITEM ones.
    I've tried using a message selector rule on the AQ adapter of: message.action = 'ADD_ITEM' but I'm still getting other events.
    -Barry-

    After configuring the file adapter, all you need to do is , give the path as a value for the logical name which you have created earlier. That you can do on the file adapter property inspector. There is no need to do anything on the server level. Lemme know
    Thanks,
    N

  • JDBC Receiver Adapter with Native SQL String

    Hi experts
    I need to use a JDBC Receiver Adapter with Message Protocol of Native SQL String, but I don´t understand how to create my data type for XML Document Format. I studied the following example from the SAP Library,
    INSERT INTO tableName (column-name1, column-name2, column-name3) VALUES(u2018column-value1u2019, u2018column-value2u2019, u2018column-value3u2019)
    i´ll be very thankful of your recommendations.

    Another simple way is..
    Create receiver data structure like this....
    <StatementName>
    <anyName action=u201DSQL_DMLu201D>
    <access>INSERT INTO tableName (column-name1, column-name2, column-name3) VALUES('$column-value1$', '$column-value2$', '$column-value3$')
    </access>
    <key>
      <column-value1>value1</column-value1>
      <column-value2>value2<column-value2>
       <column-value3>value3<column-value3>
    </key>
    </anyName > 
    </StatementName>
    Rest are all same.

  • How to use timestamp based dynamic message selector?

    Is it possible with message selector to issue query like statement that
    weill fetch any messages that have header timestamp older than "now" + 3 hrs.
    In SQL you would say something like:
    where timestamp <= sysdate + (180/1440)
    Please let ne know.
    Thank you,
    Edmon

    hi edmon,
    to my knowledge dynamically evalutaed expressions like this are not supported by any of the JMS vendors. messageselectors are in SQL92 format and the only dynamic part in them is the contents of the message properties and headers.
    So, you're out of luck with what you want to do (e.g., remove expired messages from a destination when they havent' been consumed within a time threshold??) but i could see two possible solutions:
    1) You could use time-to-live (TTL) on the sender side. Messages that are on the destination beyond their TTL would be placed onto a dead message queue (DMQ) from where you could consume them for further processing. DMQ is not a standard-JMS feature but supported by a few vendorrs (e.g., JBoss, ArjunaMS).
    2) You could use Message-driven Services (MDS) for more elaborate server-side message processing. MDS has been pioneered by ArjunaMS but is also available with a few other JMS vendors.
    Hope that helps!
    Kind regards,
    Thomas.

  • Message selectors

              Two questions:
              1.) Where does the message selector query get executed? Either every subscriber
              gets all messages for the subscribed topic and then runs the selector against
              it, or the server runs the selector on the message before sending it out to the
              subscriber. While it may seem like the latter is preferable, I wonder how much
              performance on the server side will be affected as a result of the server processing
              ALL of the message selectors. If the former is the case, there is obviously more
              network traffic, but the server's processing time is reduced when many messages
              are sent out to many subscribers with message selectors. Does anyone have any
              input on this?
              2.) Are there any plans for Weblogic supporting subscriptions to a hierarchial
              topic? For example, subscribing to cars.* will return messages sent to the topic
              cars.bmw and cars.ford. I know this is not part of the JMS specification, but
              it is a nice addition.
              Thanks.
              Dan
              

              Tom Barnes <[email protected]> wrote:
              >Hi Dan,
              >
              >Answers in-line.
              >
              >Dan Baumbach wrote:
              >
              >> Two questions:
              >> 1.) Where does the message selector query get executed? Either every
              >subscriber
              >> gets all messages for the subscribed topic and then runs the selector
              >against
              >> it, or the server runs the selector on the message before sending it
              >out to the
              >> subscriber. While it may seem like the latter is preferable, I wonder
              >how much
              >> performance on the server side will be affected as a result of the
              >server processing
              >> ALL of the message selectors. If the former is the case, there is
              >obviously more
              >> network traffic, but the server's processing time is reduced when many
              >messages
              >> are sent out to many subscribers with message selectors. Does anyone
              >have any
              >> input on this?
              >
              >If you use the WL topic multicast extension, the former. The former
              >is the
              >obvious choice using multicast, as the server only has one network call
              >to make per
              >message...
              >
              >Otherwise, the latter. The latter is preferable, as otherwise the
              >server would
              >be making one network call be subscriber per message - which is far more
              >heavy-weight.
              >
              >>
              >>
              >> 2.) Are there any plans for Weblogic supporting subscriptions to a
              >hierarchial
              >> topic?
              >
              >This is under consideration.
              >
              >> For example, subscribing to cars.* will return messages sent to the
              >topic
              >> cars.bmw and cars.ford. I know this is not part of the JMS specification,
              >but
              >> it is a nice addition.
              >
              >Yes, topic hierarchies are not part of the JMS specification, but you
              >can emulate them
              >fairly easily, if somewhat inefficiently, by using JMS selectors with
              >a "like" clause.
              > The publisher sets a correlation-id on the message:
              >msg.setJMSCorrelationID("cars.ford");
              > The subscriber sets its selector to "JMSCorrelationID like 'cars.%'"
              >
              >>
              >>
              >> Thanks.
              >> Dan
              >
              >Tom
              >
              

  • JMS Adapter Message Selector Problem...

    Hi
    I have set the following in the invoke before producing the message and dropping on the queue
    <invoke name="Invoke_1" partnerLink="adapt"
    portType="ns1:Produce_Message_ptt"
    operation="Produce_Message"
    inputVariable="Invoke_1_Produce_Message_InputVariable"
    bpelx:inputHeaderVariable="Sender"/>
    On the receive side I have the message selector configured for the adapter as follows:
    <jca:operation
    ActivationSpec="oracle.tip.adapter.jms.inbound.JmsConsumeActivationSpec"
    DestinationName="dattjndi"
    UseMessageListener="false"
    MessageSelector="Sender=AdaptationRequest"PayloadType="TextMessage"
    OpaqueSchema="false" >
    </jca:operation>
    Where AdaptationRequest is the value for the Sender variable which will be used to filter the message. But this does not work. the messages are still not consumed. What could be the problem?
    Thanks,
    Anil

    did you check the message selector section on
    http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/jms/Message.html
    explains all the operators you can use and the correct syntax. Make a note of the case sensitivity.

  • FTP Adapter with Runtime OS Command before Message Processing

    Hi PI Techies,
    I have a confusion in using Sender FTP Adapter with Runtime OS Command before Message Processing.
    Scenario is like this:
    Ftp Adapter has to pick a file from FTP server after it checks that a Blank Marker file exists on PI server AL11 directory say "tmp directory".
    For this I am using Runtime OS Command before Message Processing where a shell script will check the existence of Blank Marker file on PI server AL11 and if found , it exits the script and FTP Adpater will then pick the Actual Data File and Process it.
    Now Confusion:
    I am confused in technical execution of steps by FTP Adapter..
    Whether FTP Adapter polling initiates the Interface or Runtime OS command checking the File existence will initiate the Interface?
    May be its follish to you guys... but please answer ..
    Regards,
    Anurag

    Hi,
    I will take it other way as we need to process the Data File not Marker File ( its just for checking the Data File is completely written on FTP server).
    Other way mean " Will Poll for Data.txt File and if  found then Runtime OS Command will do connect to FTP and check if Marker File exists, if yes then delete the marker file and read the actual Data File for processing.
    Please let me know, if Marker File does not exists on FTP folder, will it still read the Data File or will it exit the Adapter execution?
    Your help is much appreciated.
    Regards,
    Anurag

  • A basic query with respect to using Message Selectors in JMS

    Hi
    When i am going MEssage Selectors topic in web , it seems very confusing for me .
    I have written a simple JMS Application based on Weblogic as my Queue .
    I have two Java Files one for Message Producer and another file acting as Message Consumer using MDB
    I have a basic TextMessage with some header properties in my Producer file .
    Please tell me in what file should i put MessageSelector ??.
    Thanks for reading .
    Please clarify my query on this .

    Thank you very much .
    I found the code of a MDB making useage of a Selector .
    *<message-driven>*
    *     <message-selector>shirtType = 'polo'</message-selector>*
    *     </message-driven>*
    Assume that i written a MDB that listens to particular type of Messages (Polo in this case ) .
    Please tell me what happens to other messages in the Queue that were never listened by the MDB .
    Thank you .

  • BizTalk 2010 - WCF-Custom Adapter with sqlbinding - rror was encountered while attempting to transmit the message

    BizTalk 2010 RTM version with SQL 2008 R2 .
    An intermittent issue with the WCF-Custom adapter with sqlbinding, calling a SQL stored proc as below
    Message gets suspended in BT Admin console  with "An internal server error was encountered while attempting to transmit the message" .
    Event log shows 
    A message sent to adapter "WCF-Custom" on send port "xxx" with URI "mssql://server/db?" is suspended.  Error details: Unknown Error Description 
    Any advice please. Thanks
    Sullu.
    http://biztalkguide.blogspot.com/ Please mark as answer if this solved the issue.Thanks

    Hi Chen
    Is there any update on this please ?
    I have applied the latest CU and have noticed the following issue.
    BizTalk 2010 Enterprise Edition with BizTalk 2010 CU6 and CU3 for BizTalk Adapter Pack works fine , no issues noticed.
    However ,
    On a DEV VM ,BizTalk 2010 Developer Edition with BizTalk 2010 CU6 and CU3 for BizTalk Adapter Pack still gives the error mentioned in this post.
    In addition Microsoft BizTalk Adapter Pack ,Microsoft BizTalk Adapter Pack(x64) & WCF LOB Adapter SDK are also installed .
    Below is the Error message.
    Message gets suspended in BT Admin console  with "An internal server error was encountered while attempting to transmit
    the message" .
    A message sent to adapter "WCF-Custom" on send port "xxx" with URI "mssql://server/db?" is
    suspended.  Error details:
    Unknown Error Description 
    Could you please check and advice what needs to be done to resolve this ? Thanks .
    Regards,
    Sullu
    http://biztalkguide.blogspot.com/ Please mark as answer if this solved the issue.Thanks

  • Multiple queue receivers with disjoint message selectors - portable?

    Hi all,
    I was wondering whether an application that uses multiple queue receivers with disjoint message selectors would be portable across different JMS providers.
    I fear it's not - at least the spec clearly states that the implementation of message delivery to multiple receivers is provider specific, and I couldn't find any comment that this would be different with disjoint selectors. But I wanted to check with you - maybe I missed anything?
    What could be an alternative then (in case you want to avoid multiple queues)? Using a topic with durable subscribers?
    Regards,
    Sabine

    Hi Nimo,
    accepted - as long as the JMS spec requires the JMS provider to support multiple receivers. And that's exactly the point where I'm not sure...
    Literally it states:
    "For PTP, JMS does not specify the semantics of concurrent QueueReceivers for the same queue; however, JMS does not prohibit a provider from supporting this."
    The formulation "does not prohibit" makes me think that JMS allows providers also not to support this, for example, to throw an exception when a second consumer is created for the same queue, or not to serve it at all with messages as long as the first consumer is active. Not that I think it would be a very useful implementation - I just want to know if it would be possible. In that case, the application would not be portable.
    Regards,
    Sabine

  • Synchronous operation with a message selector possible?

    I have a situation where the following condition exists:
    - a number of servlet threads (1-n) will post to request to an external asynchronous system with a unique id.
    - the external system will post the responses to a JMS queue.
    - my servlet threads need to receive their - and only their message from the queue
    - my servlet threads need to have timeout
    The problem is, I need the selectivity of a message selector, but also the timeout of a .receive() method.
    I have considered filtering the responses in each onMessage event, but this will not scale well when many responses exist.
    Any recommendations will be appreciated.

    I think I answered my own question. I was confusing a MessageSelector with a MessageListener - two different animals....
    I was able to implement the pub/sub with the following syntax:
    /* the publisher would put the transaction_id (unique id) in the
    JMSCorrelationID field in the message header. */
    message.setJMSCorrelationID(transaction_id);          
    /* The subscriber will only receive messages that match this trans ID. This will be accomplished by adding the following MessageSelector clause to the subscriber session:*/
    String selector = "JMSCorrelationID = '"+transaction_id+"'";
    subscriber = subscriberSession.createSubscriber(topic,selector,true);
    "Astitva" , thanks for the help!

  • Change Adapter Specific Message Attributes with ABAP Mapping

    Hi everyone,
    I have an IDOC -> PI -> File scenario and I need the file name to be a combination of several fields of the file so variable substitution is quite complicated. I have been reading about Adapter Specific Message Attributes and since the File name is one of those attributes I think maybe I can use it. The only thing is that I'm using ABAP mapping. Can I set the file name in that way? Has anyone done it?
    Thank you for your help.
    Regards,
    Pablo

    I found it myself:
      DATA: l_dyn_record      TYPE mpp_dynamic.
          l_dyn_record-namespace = 'http://sap.com/xi/XI/System/File'.
          l_dyn_record-name = 'FileName'.
          l_dyn_record-value = w_nombrearch.
          dynamic_configuration->add_record( l_dyn_record ).
    Thanks anyway.

  • XI 3.0 SP 20 - Problem with adapter-specific message attributes

    Hi everyone,
    I am using XI 3.0 SP 20, in SP 17 i read who SOAP adapter and mail adapter have additional adapter-specific message attributes in the message header
    But in my XI SP20 dont have that function.
    There arent problem in installation of SP20 (no show errors).
    Can anybody tell me what is happening? Why dont have "adapter-specific message attributes" ?
    Thanks

    Hi,
    you have to import the SAP XI content, SAP BASIS 6.40 have to be updated. Because the new attributes for adapters are saved in the Adapter Metadata located in the Integration Repository. If you have not update the content, you will not be able to find new options.
    Start IR and navigate to the SAP BASIS 6.40, double click on this SWCV and click on the Details tab, you should be able see which Support Package the SAP BASIS has at moment. Update it to SP20 if it is still SP17. You will be able to see the required new attributes in Mail Adapter.
    regards,
    Hai

  • JMS Sender adapter Message selector

    Does anyone know of a good blog where someone is showing how to use the JMS message selector option in the JMS sender channel?  I'd like a screenshot of what is actually typed into this field most of all.

    did you check the message selector section on
    http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/jms/Message.html
    explains all the operators you can use and the correct syntax. Make a note of the case sensitivity.

Maybe you are looking for

  • Mac mini server sleep mode

    I set up a Mac mini this weekend using a secondary  hdmi connection to my tv to be used as a media center and a central location for home sharing iTunes (etc.).  I set the computer and display sleep settings to "never", so as to always be able to con

  • Copy and paste/save image as

    i wanted to know if there is anyway to take a picture from safari on the iphone and save it to the iphone. also is there anyway to copy and paste selected text on the internet or otherwise

  • Using report of emails as recipient of WF mail task

    Hi all Would you say it is possible to use a report as the "send mail" recipient in a Work Flow? I would like to generate a report of the top managers in the company and eventually send a mail to all of them. Since managers tend to change I need to p

  • Where is mov file for example

    I am looking at the example http://java.sun.com/products/java-media/jmf/2.1.1/solutions/DemoJMFJ3D.html but they did not seem to put a mov file I could use out there, so I dug up a mov file off the web and got errors Unable to handle format: mp4a, 48

  • IOS Data Protection

    When setting an App ID for my DPS App in the iOS Developer account I have the choice to set Data Protection. Do I set this on or off and if on what level of Sharing and Permissions do I use?