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 .

Similar Messages

  • A query with respect to creation of the  shared Objects.

    Hi ,
    I am having a query with respect to creation of the  shared Objects.
    I have seen a example where the Author is creatining Shared Object as shown
    below :
    SharedObj = null;
    sharedObj = SharedObject.getLocal("myTasks");
    and there is nothing related to the word "myTasks" anywhere in the Application .
    Can anybody please let me know what is this word "myTasks" mean here ??
    Thanks in advance .

    hi,
    With a shared object it will create one if it doesn't exist, so "myTasks" will become the shared object name or if it exists it will load any objects that are within that shared object.
    Below is a simple example that uses sharedobjects to store login details.
    http://gumbo.flashhub.net/login/
    David

  • Basic questions with respect to ABAP WebDynpro Application

    Hi All,
    I have two basic questions with respect to an ABAP WebDynpro application :
    a) If an ABAP WebDynpro application has been developed, how could it be made available to the end user?
    b) Can an ABAP WebDynpro application be developed in ECC or is it only applicable for version 4.6c?
    Thanks & Regards,
    Sushanth Hulkod

    Sushanth Hulkod wrote:
    > a) If an ABAP WebDynpro application has been developed, how could it be made available to the end user?
    >
    > b) Can an ABAP WebDynpro application be developed in ECC or is it only applicable for version 4.6c?
    a) If an ABAP WebDynpro application has been developed, how could it be made available to the end user?
    Answer - By providing direct link of the WD application created in SE80, creating iView for webdynpro abap application in the portal environment and  NWBC environment
    b) Can an ABAP WebDynpro application be developed in ECC or is it only applicable for version 4.6c?
    Answer - Yes it can be developed in ECC. Webdynpro ABAP is introduced in NW 2004s (SAP NetWeaver 7.0 or ECC 6.0)
    Thanks,
    Chandra

  • A question with respect to using RSL in an Application

    Hi
    This question is with respect to using RSL in an Application
    we are deciding to use RSL in our Application for improving the performance .  Before using them i am having some queries ,please share your ideas on these questions :
    Please let me know
    How can i decide what swc file is suited for my Application ??
    How many types of swc files are there what is the default swc file ??
    and how can i choose my swc suited for my Application ??
    Waiting for your replies .
    Thanks in advance .

    The SWCs you reference on the RSL options for MXMLC must match the ones that
    will be used as RSLs

  • I shared one contact with a friend using message and she got my other messages with others.

    I am using a iPhone 4 on iOS 7.0.4.  I shared a contact with my friend using message and she got my other messages between my other friends, and she also found all her contacts are deleted as well.  Can someone help? what happened to my phone? is it safe for me to message others?

    You prob hit Delete All at the top  instead of the trash can at the bottom which will do only the selected msg.
    Sorry, unless the entire converstaion is on a backup you can't retrieve it.

  • How to use Message Selector in BPEL

    Hi all
    I´m using a JMS Adapter to consume messages from a JMS queue (a JMS adapter which create the BPEL instance when a message arrives).
    The process must select messages which meet certain criterias, so I´m using Message Selector to filter the messages and only pick up the ones who interest me .
    But I am not able to get it to work.
    I want JMS adapter to consume messages based on field "MessageID" =1006 in my message.
    So in my message selector I wrote MessageID =1006
    But its not picking up message.Kindly help what am i doing wrong.
    Thanks in advance.
    Karan

    yes it is the message producer who should set the property
    see http://download.oracle.com/javaee/6/api/javax/jms/Message.html the various setXXXProperty(name, value)
    once the message is on the queue, I am not aware of a way to change its properties, unless by consuming it and reposting it modified...
    well if you are really desperate you can write a MDB who consumes all messages without a given property and repost them WITH the property.... better if reposting to a different queue to avoid trouble...

  • Problem using Message-Selector

    Hi,
    out client-application subscribe to a JMS-topic on OC4J (9.0.3) using the following code
    TopicConnectionFactory oConnectionFactory = (TopicConnectionFactory) ctx.lookup("jms/MyTopicConnectionFactory");
    oConnection = oConnectionFactory.createTopicConnection();
    oTopicSession = oConnection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
    Topic topic = (Topic)ctx.lookup("jms/MyTopic");
    TopicSubscriber sub = oTopicSession.createSubscriber(topic);
    Everything works fine.
    But when we replace the last line to use Message-Selectors
    TopicSubscriber sub = oTopicSession.createSubscriber(topic,"username = 'abc'",false);
    we get the following (strange) error (which occurs at excactly that line)
    javax.jms.InvalidDestinationException: Invalid topic
    The topic can't be invalid, because we could subscribe without Message-Selector. Do I have to modify the topic at the JMS-Configuration? Any ideas?
    Thanks,
    Gilbert

    Hi Gilbert,
    The way I've done it is by defining the rule when creating the subscriber in the database (thru DBMS_AQ). The following document might give you some insight.
    http://otn.oracle.com/pls/db92/db92.show_toc?partno=a96587&remark=drilldown&word=DBMS_AQ
    HTH.

  • 0equipment_attr query with respect to 0calyear

    Dear  all,
    i need to make a query showing number of equipments, i use infoprovider 0equipment, however, i need to get records with respect to 0calyear. Is it possible with making a query with 0equipment and how?
    thanks.

    Hi thanks for the reply,
    i guess i should use 0date or 0date_from and fill 0calyear from this field.
    Where i am confused is when i upload data in 0equipment_attr, it overwrites all fields with new values.
    i need to develop a report as follows:
    calyear              equipment number             total capacity
    2008                           12                             23500
    2007                            11                            19000
    can it be possible?
    thanks

  • Using Message Selector w/JMSCorrelationID causes auto-commit

    I'm using the following code to create a session with transactions enabled:
    Session session = connection.createQueueSession(true, Session.AUTO_ACKNOWLEDGE);
    String messageSelector = "JMSCorrelationID = 'myid'";
    QueueReceiver receiver = session.createReceiver(ioQueue, messageSelector);
    When I call receiver.receiveNoWait(), it retrieves the message, but automatically commits it. If I call session.rollback() directly afterward, I don't get any exceptions, but the message is completely removed from the queue (as if I had committed it).
    If I use the same exact code with an empty message selector (""), the rollback works fine all the time.
    Does anyone have any idea why? I'm using MQ v5.3 on W2k.
    Thanks!
    Jeff

    use CLIENT_ACKNOWLEDGE
    Session session = connection.createQueueSession(true, Session.CLIENT_ACKNOWLEDGE);
    );//Session.AUTO_ACKNOWLEDGE);
    from the spec:
    CLIENT_ACKNOWLEDGE - With this option, a client acknowledges a
    message by calling the message�s acknowledge method. Acknowledging a
    consumed message automatically acknowledges the receipt of all messages
    that have been delivered by its session.
    AUTO_ACKNOWLEDGE - With this option, the session automatically
    acknowledges a client�s receipt of a message when it has either successfully
    returned from a call to receive or the MessageListener it has called to process
    the message successfully returns.

  • Execute query with drill down using abap

    Hello together,
    I need to execute a query using abap and I need the result of the drill down on one characteristic in the query.
    I try to use RRX_GRID_CMD_PROCESS to execute query, but I don't understand how to do the drill down.
    I thought I have to specify somehow the name of the object on which I need to make the drill down. I tried to send this as a parameter to e_t_drill... but this is not working. I have also seen that
    e_t_drill[] = g_sx_buffer-r_request->n_sx_request-drill, but this is empty.
    Could you, please explain how to do this?
    Thank you,
    Iuliana

    Our RKF def is as follows:
    Keyfigure: 0deb_cre_lc
    Chars:
    Posting Keys: 01,02,11,12
    Year start date: Restricting it with a variable created on it. Variable is of type Customer exit.This variable
    gets value from key date which is entered by user dynamically.
    Specified the offsets of Yr start date as 0 to 365.
    Regards,
    smitha.

  • A query with respect to Flex 3 States

    Hi ,
    I am new to Flex3. states
    I have started with a sample application , but i couldn't able to understand some of the things in Flex 3 States . Please help .
    This is my sample Application what i am trying :
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
        xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="absolute"
        currentState="bad">
        <mx:states>
            <mx:State name="bad">
                <mx:SetProperty target="{label1}" name="text" value="Bad Day!"/>
                <mx:SetProperty target="{linkbutton1}" name="label" value="Go Good"/>
                <mx:SetEventHandler target="{linkbutton1}" name="click" handler="this.currentState='vgood'"/>
            </mx:State>
            <mx:State name="vgood" >
                    <mx:SetProperty target="{linkbutton1}"  name="label" value="Go Good"/>
            </mx:State>
        </mx:states>
        <mx:Label
            x="255" y="191"
            text="Good Day !"
            fontWeight="bold"
            fontSize="22" id="label1"/>
        <mx:Button
            x="255" y="98"
            label="Go To Bad Day" 
            click="this.currentState='bad'" id="linkbutton1"/>
    </mx:Application>
    Please see the above code , It is working fine , but i am having some questions related to it .
    Please tell me whether  Is it possible to know under what state the Application is currently in ??
    Thnaks in advance .

    Okay fine , i will do that .
    I am having one more question related to flex 3 states . That is :
    Refering to the above program  posted , in case if i need to change the current state , i am depending on this
                <mx:SetEventHandler target="{linkbutton1}" name="click" handler="this.currentState='vgood'"/>
    Is it not possible to achive the above requirement using <mx:Property>
                <mx:SetProperty target="{linkbutton1}" name="label" value="Go Good" handler="this.currentState='vgood'"/>
    (I have tried with  this , but its not working , the mx:property is not accepting the handler attribute ) )
    seems Flex learning curve is so big .

  • How can I send a post query with attached data using Labview?

    Hi,
    I need to send data (a file of 5KB) to a php server.
    In order to do it, I need to send a post request with attached data.
    I'm using Labview 6.1 and I have the Internet Toolkit.
    But I just see the Get Method. Isn't implemented the post method in Labview?
    Thanks for your help
    Best regards

    Hi,
    In order to use the POST request method as opposed to the GET request method I used a VI set up as shown in the attached GIF.
    From the front panel you need to provide values for the 3 inputs. "Bytes to read" is an arbitrarily large number that meets or exceeds the maximum number of bytes you expect as a response from your server. "Address" is just the URL of the server, e.g. "10.90.1.1" or "localhost" or "www.google.com". "Data in" is the actual request you're sending with the data included.
    "Data in" would be in a format similar to everything in the quotes below (important to have 2 carriage returns to finish the request);
    POST /phppage.php HTTP/1.1
    Content-Length: ??
    Host: http://www.mywebserver.com
    Content-Type: application/x-www-form
    -urlencoded
    email=[email protected]&password=mypassword
    For sending your data file you just have to set the requisite MIME-type and then include the file data in place of the form data in the example above.
    Hope this helps,
    Neil
    Attachments:
    LV_TCP_code.gif ‏4 KB

  • A query with respect to Cairngorm Events

    I am new to cairngorm .
    I am designing a StudentApplication using Flex with Cairngorm .
    I am struck at writing a Event class for Cairngorm .Please guide me
    Assume that this StudentApplication is suppourting Create , Delete , Update ,Read Operations .
    My question is do i need to write 4 Event classes , each representing that Operation ,
    Or is it possible to do in one Event class by taking 4 different Sring constants , each representing the Appropiate Action .
    package com.control
        import com.adobe.cairngorm.control.CairngormEvent;
        public class CreateEvent extends CairngormEvent
    public static const EVENT_CREATE_STUDENT : String = "EVENT_CREATE_STUDENT";
    My question is do i need to make Create , Update , Delete , Read Events for every
    Event of my Application ??
    Please guide me .
    Thanks in advance .

    Hi Kiran,
    You can write all the events in a single class say StudentEvent class and perform the appropriate action according to the event type(delete,update,add..etc) but if you do so you need to process the result returned from the remote service based on the event type in command later and write your logic.
    for ex:
    In your command layer(StudentCommand) in the result Handler...function you need to process this way..
    public function result( data : Object ) : void
                if(data != null)
                        if(_eventtype == "deletestudent")
                             // Write you logic to delete student
                        else if(_eventtype == "createstudent")
                             // Write you logic to create student
                        else if(_eventtype == "updatestudent")
                             // Write you logic to update student
                        else
                             // Write you logic to read student details
    deletestudent, createstudent, updatestudent, readsrstudent are the four event types which you decalre as Static Constants in StudentEventclass.
    If you wanna write 4 event classes for all then also its good so that you can have seperate wrapper class for all the events.
    If you want to have customized and reduced code then use the Single event class. Its based on your requirement...
    Thanks,
    Bhasker Chari

  • Validation of outbound FIle with respect to outbound Message type

    Hi Experts,
       I have file system at outbound side and defined the Data Type, Message Type for this. Now a want to validate the outbound file against the Message type structure i have defined. Now if the file is not validated against Message type, i want to create the log file that will explain what were the errors in the outbound file and move the file to other archive else send it to inbound system.
    Plz suggest the solution.
    Thanks and regards,
    Vishal

    This is the best document for starting on Adapter Modules,
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3bdc14e1-0901-0010-b5a9-a01e29d75a6a">How To Create Modules for the J2EE Adapter Engine</a>
    Example Adapter Module,
    http://help.sap.com/saphelp_nw2004s/helpdata/en/e9/61e1407e858031e10000000a1550b0/content.htm
    Regards
    Bhavesh
    PS : Do a search on SDN. For instance, look into the How To gudies Section on the XI home page.You will find most of the documents available here.

  • Additional fields in infoset query can not be used as datasource fields

    I create one infoset query with additional fields (using ABAP code) in R/3. When I create datasource RSO2 using this infoset query, system only show all fields without additional fields that I enhanced in infoset query. Does that mean we can not get additional fields information in generic datasource creation that we enhanced in infoset query?

    dear Awa,
       you are enhanced some fields in r/3.right that fields are  shown in
    rsa6 select your data source click on display your datasource then select
    extract structure its shows how many fields are haveing particular
    datasource .or otherwise goto rso2 select your data source display
    double click on  your extractstructure  its show how many fields haveing
    the particular datasource. check the Rsa6 what ever fields you newly added that field default hide mode
    you remove the hide tickmark.

Maybe you are looking for

  • What is the disadvantage of RMI?

    Hi, I am trying to understand the RMI. So far what i have read in books is telling the advantages of the RMI, but I can not find the disadvantage. Could anyone tell me ? Thanks, Herbert

  • Auto copy cells to second sheet

    hi, good people! is there a way to auto copy cells in second sheet. i have many rows with data, i want from my sheet1 colum C copy all rows that contain name "apr" to sheet2, and if i add new row with name "apr" it will auto copy it to sheet2... is t

  • Sync Probelm -- An unknown error has occured (-48).

    Whenever I plug in my ipod i get this error, "The Ipod "My Ipod" cannot be synched. An unknown error has occured (-48)." Im not sure whats causing it, I know im not the only one, and ive realized this site fails at helping people. But if theres anyon

  • BATCHPARA ??

    Question about BatchPara and what is going on here. I went to index cube ZBM_C021 in BWA (ver 53) and see the following in the Job output: 12/08/2009 14:00:15 INFOCUBE: ZBM_C021 12/08/2009 14:00:15 Statistics UID of indexing job: '4G3O2H296L13RHNVBY7

  • Can I buy the iphone 5, deactivate it and activate an old phone?

    I do not have the money to afford the data plan for an iphone 5 right now, but since I am starting a contract, I wanted to take advantage of the 2 year contract price for when I am able to use it. I hear a rumor that you have to have the iphone 5 act