How to use createQueueSession(boolean transacted,int acknowled)

Did any one know what and why we need to set the transacted value ? Either to true or by default( false ). I know if set it to true, the acknowled value will be ignored and it do means that the connection is transacted. But could any one tell me what is mean connection "transacted" ? Thank you

A session may optionally be specified as transacted. .each transacted session may support a series of actions.each transaction contains a produced set of messages and set of messages to be consumed.whan a transaction commits ,the produced messages are
acknowledged and messages are consumed.if a transaction is rollbacked ,the produced messages are destroyed and consumed messages are rollbacked.
we need to set the transacted value to indicate wheteher out application supports transaction .
if the transaction mode is SESSION_TRANSACTED ,then only the acknowledge mode is ignored.

Similar Messages

  • How to use INVOKE function with INT parameter types

    Can you tell me how to use invoke function with int parameter type ?

    Pass the int as an Integer.

  • How to use SUBMIT for transaction program?

    Hello,
    Please help me with following requirement.
    I need to pass selection screen values from ZReport to transaction F.01 and collect displayed data output in internal table in ZReport and use internal table for further processing.
    Please let me know,
    1) How to use SUBMIT with transaction code or modulepool program (<b>remember I don't want to submit report program</b>)?
    2) How to collect F.01 output data and bring back to Zreport ?
    Thanks in advance.

    Hi ab,
    1.  How to collect F.01 output data and bring back to Zreport
    The data (of output) can be collected,
    for display purpose.
    We cannot get the full data, which makes sense.
    2. The data shall be collected, in a printable format only,
       ie. with vertical lines, horizontal lines (if any) etc.
    regards,
    amit m.

  • How do use the method record(int score) in this code?

    how do i use record(int score) from the class Stats to record a new score?
    public class ScoreInfo {
    private int score;
    private int numStudents;
    public ScoreInfo(int aScore){
          score = aScore;
          numStudents=1;
    public void increment(){numStudents++;}
    public int getScore(){return score;}
    public int getFrequency(){return numStudents;}
    import java.util.ArrayList;
    import java.*;
    public class Stats
    private ArrayList<ScoreInfo> scoreList;
    public boolean record(int score)
         int k=0;
         while(k<scoreList.size() && score > scoreList.get(k).getScore()){
              k++;
         boolean found = k<scoreList.size() && score == scoreList.get(k).getScore();
          if(found){scoreList.get(k).increment();}
          else{scoreList.add(k,new ScoreInfo(score));}
          return found;
    public void recordScores(int[] stuScores)
    static int score = 50;
    public static void main(String[] args) throws Exception
    Stats stats = new Stats();
    ScoreInfo thestat = new ScoreInfo(score);
    stats.scoreList.add(thestat);
    }

    hiwa wrote:
    In your main() method, or in any code which tries to create a new score, below is wrong:
    ScoreInfo thestat = new ScoreInfo(score);
    stats.scoreList.add(thestat);They should be:
    stats.record(thestat); // record() method creates a new ScoreInfo
    // and add it to the scoreList, see your own posted code
    stats.record(thestat); will not work because record has a parameter that needs an integer not an object
    i tried public static void main(String[] args) throws Exception
    Stats stats = new Stats();
    ScoreInfo thestat = new ScoreInfo(7);
    stats.record(7);
    but i get this error Exception in thread "main" java.lang.NullPointerException
    at Stats.record(Stats.java:13)
    at Stats.main(Stats.java:39)

  • How to Use a Boolean Vector To Index an Array

    Say I have an array A = [1 2 3 4 5 6 7 8 9 10].
    I also have a boolean array B = [1 1 0 0 0 0 0 0 0 1].
    I want to use the boolean array B to pick out elements in A, creating a new array C = [1 2 10]. In MATLAB, I would just type C = A(B).
    I'm scratching my head trying to figure out how to do this. One solution would be to run through a for loop, querying B(i), and deleting A(i) if B(i) = 1. But this would change the size of A, so that the second time I did this, my index would be wrong.
    Anyone know a clean way of doing this?
    BONUS: If I have a 2D AA, with multiple columns, it would be nice to use B to pick out multiple columns of AA (in MATLAB, this would be CC = AA(:,B).
    Solved!
    Go to Solution.

    This can be done with auto-indexing with conditional tunnels.  The same approach could easily be applied to a 2D array, as well:

  • How to use a boolean to log time?

    Hi all,
    In my application, I want to use a boolean to log a time on continuous bases. When boolean gets 1, it logs system time. When boolean gets 0, it logs system time...& the cycle goes on.. We can use push button for changing boolean value...
    Please guide me,,
    Thank you,
    Vaibhav Gandhi
    B.E. Instrumentation & Control,
    INDIA
    Solved!
    Go to Solution.

    Hi vaibhav,
     I created a switch control,whenver its state is changed..that particular time is logged...Check the attachment..
    Thanks and regards,
    srikrishnaNF
    Attachments:
    Example_VI_BD.png ‏12 KB

  • How to use the method  setReadTimeout(int longtimes) in HttpUrlConnection?

    I have to use the HttpUrlConnection to download files ,sometimes the speed is very slow or just blocked for no reason.(no Exception was throw and I can't see any changes from my swing Interface)
    It seems the thread is dead. I try to use setReadTimeout() to control the read . but it isn't working ,
    Now I have to questions?
    one how to use the setReadTimeout() so it can throw the SocketTimeoutException like the API said
    second how to solve the problem I metioned before : sometimes the speed is very slow or just blocked for no reason
    Please somebody help me !!!

    That is not true. For example ajax continuous, http monitor or media streaming in client side is unusable without nio http client (or implementation is much simple and better). All logic is coming to client side from server. Modern client are very powerful and same time servers are overloaded.

  • How to use one boolean button to control many boolean buttons?

    I would like to create a LabView control interface with boolean buttons.
    As my attachment picture shown, there are four boolean buttons.
    The button1 is the main power, if I press ON button1, other three
    buttons also turned to ON at the same time.
    How do I build up the LabView program in the block diagram?
    What should I do???
    Attachments:
    booleans.bmp ‏722 KB

    Controls and indicators function as variables. In a text based language, you could just write the name of the variable again. In LV, since each control only has one terminal, you need local variables to do this. To create a local variable, right click on the control and from the popup menu select Create>>Local Variable. You can have a local as read or write. Create a local for each of the buttons and wire the data coming out of the first button into the locals.
    There is something that is very important to understand here - when you use locals, you can disrupt the dataflow nature of LV and create race conditions. For example - if, after fixing your code, you were to click on one of the buttons, to set it to F, it would immediately be set back to T by the running code. This can be very dangerous. Also, I see you're using the continuous run mode. You should use a loop instead. Try looking for some LV by searching google for "Labview tutorials. Also, here's one you can start with.
    Try to take over the world!

  • How to use Process_type in Transaction Launcher Wizard?

    We have a number of Process_types already setup in the CRMC_PROC_TYPE table. These were setup for use by the Winclient IC Action boxes to display transactions. With the Action boxes being the forerunner to the Transaction Launcher.
    We now need to put the same functionality into the Webclient IC and so I'm trying to setup the Transaction Launcher entries which utilise these process_types.
    If you take a look at table CRMC_PROC_TYPE you'll see the kind of data that it holds so providing a Process_type and forwarding to a called transactions is neat solution.
    Unfortunately I can't find a way of providing such a Process_type. Assuming that I have a Process_type, say called Z111, how can I add this to Transaction launcher process, or any process, that allows me to call a transaction/business object and forward a Process_type?
    All I'm trying to achieve is to call a CRM transactiion and pass in the Process_type so that the appropriate values from the CRMC_PROC_TYPE table are used, as they are when the Action Boxes are used in the Winclient IC to display transactions.
    My desk is covered in the hair that I've been pulling out from my head in frustration of trying to get this simple requirement to work. I keep being told that it should work but nobody, as yet, can tell me how to achieve it, and every way I've tried does not work and simply raises more questions..
    Jas

    If anyone believes that what I am trying to achieve is impossible then I would dearly like to hear from you.
    At present I am merely trying to use the process_type within the called transaction. But this is proving to be impossible.
    Jason

  • How to Use a boolean function in a process

    Hi,
    I created a boolean function named change_pwd with 3 varchar2 parameters : login_name, old-pwd and new_pwd. I would like to use it in a process but I can't, this is how I do it :<br><br>
    select change_pwd (
    v('P12_Login'),v('P12_Old_Pwd'),v('P12_New_Pwd')) from dual;
    <br><br>
    Benn

    I got this error : <br><br>
    ORA-06550: line 2, column 8: PLS-00382: expression is of wrong type ORA-06550: line 2, column 1: PLS-00428: an INTO clause is expected in this SELECT statement
    <br><br>
    and here is my function :<br><br>
    create or replace function "CHANGE_PWD"<br>
    (p_username in VARCHAR2,<br>
    p_old_password in VARCHAR2, <br>
    p_new_password in VARCHAR2)<br>
    return boolean<br>
    is<br>
    l_count number;<br>
    l_password varchar2(4000);<br>
    l_stored_password varchar2(4000); <br>
    l_idcontact number;<br>
    begin<br>
    -- Check to see if the user is in the user table<br>
    select count(*) into l_count from CONTACTS where MATRICULE = p_username;<br>
    if l_count > 0 then<br>
    -- take the stored password<br>
    select u.MOTDEPASSE, u.IdContacts into l_stored_password, l_idcontact from <br>UTILISATEURS u, CONTACTS c where u.IdContacts = c.IdContacts AND c.MATRICULE = p_username;<br>
    <br>
    -- apply the cash function<br>
    l_password := user_hash(p_username, p_old_password);<br>
    <br>
    -- compare the hashed password with the stored password<br>
    if l_password = l_stored_password then<br>
    -- change password<br>
    update UTILISATEURS set MotDePasse = user_hash(p_username, <br>p_new_password) where idcontacts = l_idcontact;
    return true;<br>
    else<br>
    return false;<br>
    end if;<br>
    else<br>
    return false;<br>
    end if;<br>
    end;<br>

  • How to use a Dynamic Transaction Screen Variant

    Hi,
    I'm trying to use a standard variant (ZVA01) asociated to trx VA01.
    I created this transaction variant in order to avoid changes of adresses's fields  of the partners (bill to party)  during the Sales Order creation.
    I set as 'Only Display' this fields.
    The problem we have is that, we also have 'One Time customers', in this case those blocked fields should be available to change its data during SO creation.
    How can I change dynamically the transaction variant to be used in VA01 , based on
    in the type of cliente (CPD or not CPD) ??
    I have read that there exists a DYNAMIC TRANSACTION VARIANTs option, but I have  not understood its way of use.
    Could some body give me a link to this topic or explain it ?? .
    Thanks ...
    Regards
    Tania Moreno

    Tania,
    I have never heard of 'DYNAMIC TRANSACTION VARIANT'.  There does exist Dynamic date variables for Variants.
    http://help.sap.com/saphelp_erp60/helpdata/en/c0/980398e58611d194cc00a0c94260a5/frameset.htm
    I think you should probably use a userexit to achieve your business requirements.  Perhaps USEREXIT_FIELD_MODIFICATION
    within include MV45AFZZ.
    Best Regards,
    DB49

  • How to use DataSource and External transaction in 9ias?

    I'm working on a project that the application server needs to connect to over 100 databases.
    I'd like to use connection pooling and external transaction service defined in OC4J's Datasources.
    I wonder if anyone has an example of using datasource and external transaction service for OC4J.
    Right now, I export toplink project to a java source and do the initialization there manually but I don't know how to use Datasource to get connections and how to use the external transaction service in the java code for OC4J.
    I really appreciate you help.
    Wei

    Here is a fill in the blank example on how you could set this up through code:
    Project project = new MyProject();
    // alternatively, use the XMLProjectReader
    server = project.createServerSession();
    server.getLogin().useExternalConnectionPooling();
    server.getLogin().setConnector(new JNDIConnector(new javax.naming.InitialContext(), "jdbc/DataSourceName"));
    // the next line depends on the type of driver you want to use.
    server.getLogin().useOracleThinJDBCDriver();
    server.getLogin().useOracle();
    server.getLogin().setUserName("username");
    server.getLogin().setPassword("password");
    server.getLogin().useExternalTransactionController();
    server.setExternalTransactionController(new Oracle9iJTSExternalTransactionController());
    server.logMessages();
    server.login();

  • How to use EBW_DQ_SS for datasource 0UC_SALES_STATS_02

    Hello All,
    Could someone please guide me how to use the OLTP transaction code EBW_DQ_SS. It is mentioned in help.sap that we need to execute this t-code to update data to the delta queue of datasource 0UC_SALES_STAT_02.
    I tried running this t-code with following selections:
    Date ID: Current Date; Run ID = any key; Posting date: 1st Jan 2010 - 31st Dec 2010.
    But however much I try, no data is updated to the delta queue. (Data is available in tables ERDK and ERCH)
    Kindly help.
    Thanks & Regards,
    Labanya.

    First In BW, execute  infopackages:
    Full u2013 returns 0
    Init u2013 returns 0     
    Then Go to  R/3, run EBW_DQ_SS.  Select a date and deactivate old runs.  Select a date 1 year in the future to be sure all old runs are deactivated.  Unlock mass activity type and delete old runs. 
    Execute EBW_DQ_SS by entering your inputs.
    The above mass activity run will populate the delta queue.
    Then Run Delta Info pkg which will pull records into BW
    Thanks
    KPK

  • How to use indexof  for LinkedList

    i am not getting how to use the function "public int indexOf(Object o)" described here http://java.sun.com/javase/6/docs/api/java/util/LinkedList.html#indexOf(java.lang.Object)
    in my program to find the index of either a or b
    the code is
    import java.io.*;
    import java.util.*;
    class link{
    public static void main(String arg[]){
    LinkedList ll = new LinkedList();
    ll.add("a");
    ll.add("b");
    System.out.println("stored" + ll);
    }}

    You find the index of "a" with int indexOfA = ll.indexOf("a");Finding the index of "b" (or anything else) is similar.

  • How to use boolean?

    I now boolean is a data type that returns either true or false but i dont really know how to use it. Can someone please explain it for me with some common examples or codes would be highly appreaciated?
    One more question, how do you use boolean isDigit(char ch) or boolean isLetter(char ch)?
    Thanks

    public static jePrastevilo(int number){
    for(int
    int deljitelj=2;deljitelj<number;deljitelj++){
                        if(number%deljitelj==0)
                             return false;
                        else return true;
    Why this doesn't work? Retun type required?You need to make sure that the method declares that it is returning a boolean.
    i.e. public static boolean jePrastevilo(int number)
    Also think about what happens when number is less than 2?

Maybe you are looking for