Equal opportunities for all queues

Hi!
My application receives messages from several queues. I use separate MyListener instance for every queue. I synchronized the onMessage method on static Object, so only one message from all queues is processed in given moment:
MyListener implements MessageListener
static Object object;
onMessage (Message message)
synchronized (object)
//process
Do the "synchronized" and "onMessage" promise equal opportunities for all input queues? Can you give a link to relevant documentation?

According to the JMS specification, a session is a single threaded context that shields applications from worrying about thread safety. So if you create all the queue receivers from the same session, you shouldn't need to synchronize onMessage. To promote equal opportunities, you'll want to synchronize as little as possible - but this is really a JMS implementation issue and you'll probably need to experiment a little to find out if any starvation occurs.
- Bjarne.

Similar Messages

  • Deployment Optimizer - Equal weightage for all the locations in the network

    Hello All,
    I am having difficulty in assigning equal weightage for all the locations in the deployment network.  My scenario is as described below:
    Deployment Source location: LOC1
    Destination locations: LOC2, LOC3
    I am running Heuristics to plan LOC2, LOC3 & LOC1, followed by
    a Deployment Optimizer run at LOC1 to deploy to LOC2 & LOC3.
    ATD quantity at LOC1 is always calculated after saftisfying the requirements at LOC1 and the remainder is deployed to LOC2 & LOC3 based on the cost settings.  This seems to be the case even if I don't run the heuristics at LOC1 and start deployment optimizer after running the heuristics at LOC2 and LOC3.
    The need at this client place is that all three locations are equally important even though LOC1 is the only deploying source location.
    This applies for all demand categories i.e. Sales orders, Forecast and forecast at all the three locations.
    I would appreciate if anybody has done this kind of configuration before and let me know how to model this.
    Thanks,
    Venkat

    Have you follow all this checking ?
    If you think that you already follow all the steps, but the value is not as per your config, you can raise ticket to SAP about it.
    But I suggest you to double check your computation.
    To determine a vendor's price level, the system compares the vendor's effective price with the market price for the material.
       1. The system first checks whether the buyer has maintained a market price for the material or the material group.
       2. If not, the system calculates the market price which is equal to the average of the effective prices for all vendors supplying this material. Prices from purchase orders and prices for subcontracting are dealt with separately.
       3. The system then applies the effective price for the vendor from the conditions.
       4. The vendor's effective price is then compared with the market price and the percentage variance determined.
       5. The system then assigns a score to the variance in accordance with the settings made in Customizing.
       6. This score is valid for the material, that is, at info record level. Since the score the vendor receives for a subcriterion is based not on an individual material, but on the total of all the materials he supplies, the following steps are necessary:
       7. The system repeats the comparison between effective price and market price for each of the vendor's materials.
       8. The system calculates an average from the sum of the scores determined. This average represents the vendor's score for the subcriterion Price Level.
    Edited by: w1n on Apr 19, 2010 2:35 PM

  • How scores distributed in equal weightage for all subcriteria in vendoreval

    Dear all,
    Kindly tell me how the scores are distributed in vendor evaluation for all the sub criterias.. like for price level , price behaviour
    because in ME63 output I got 40,40 always but for some vendor i got 45,46 like this ... what is the reason for that and how exactly it is configured. kindly give the details
    Regards,
    Saurav

    Have you follow all this checking ?
    If you think that you already follow all the steps, but the value is not as per your config, you can raise ticket to SAP about it.
    But I suggest you to double check your computation.
    To determine a vendor's price level, the system compares the vendor's effective price with the market price for the material.
       1. The system first checks whether the buyer has maintained a market price for the material or the material group.
       2. If not, the system calculates the market price which is equal to the average of the effective prices for all vendors supplying this material. Prices from purchase orders and prices for subcontracting are dealt with separately.
       3. The system then applies the effective price for the vendor from the conditions.
       4. The vendor's effective price is then compared with the market price and the percentage variance determined.
       5. The system then assigns a score to the variance in accordance with the settings made in Customizing.
       6. This score is valid for the material, that is, at info record level. Since the score the vendor receives for a subcriterion is based not on an individual material, but on the total of all the materials he supplies, the following steps are necessary:
       7. The system repeats the comparison between effective price and market price for each of the vendor's materials.
       8. The system calculates an average from the sum of the scores determined. This average represents the vendor's score for the subcriterion Price Level.
    Edited by: w1n on Apr 19, 2010 2:35 PM

  • How to apply common View criteria for all LOV View programatically?

    Hi,
    In my application I use nearly 100 VOs, which will be mapped as LOV to some base VOs. These VOs are not only for LOV but also will be used directly in screen as read-only table. All these VOs contains EFF_BGN_DTand EFF_END_DT. Requirement is to display only the active records in VO.
    We don't want to crete view criteria at design time for each and every VO. Instead we want to have a base ViewObjectImpl class, create at runtime and add this common criteria with the existing view criterias (If any given, which are actually required for the developer for screen specific functionality).
    NOTE: As all of our VOs are custom java data source implemented and none of them have queries, we cannot use whereclause API but only ViewCriteria.
    We want to create a view criteria, that somewhat looks like the below condition.
               (     (TO_CHAR( EffBgnDt, 'yyyy-mm-dd') <= '2010-02-01' )
                 AND (TO_CHAR( EffEndDt, 'yyyy-mm-dd') >= '2010-02-01' )
                 OR
               (     (TO_CHAR( EffBgnDt, 'yyyy-mm-dd') <= '2010-02-01' )
                 AND (EffEndDt IS NULL )
               )Question:
    1. Which is the best place in ViewObject class, where I will be able to create common view criteria, include it with existing criterias.
    Thanks in Advance.
    Raghu

    No it is not working. I've tested. When i test your implementation in my sample using AM tester, it is not at all going inside getCriteriaItemClause(ViewCriteriaItem pViewCriteriaItem). For example when i say, AM.findViewObject(String ViewObjectName), followed by getEstimatedRowCount(), it should apply common filter criteria and give me the result.
    Given below required scenario:
    Department table:
    ID     DEPT_NAME     START_DATE     END_DATE
    1     Hr          1-Jan-2010     
    2     Purchasing     1-Jan-2010     31-Dec-2010
    3     Shipping             1-Jan-2010     31-Dec-2055
    4     Sales          1-Jan-2010     
    Common criteria to be applied (Programatically) : :bind_current_date between StartDate and EndDate or :bind_current_date >= StartDate and EndDate is null
    VO specific view criteria (may vary VO to VO): DeptName not equal to 'Sales'
    Expected Result:
    Case 1:
             a. DeptView = AM.findViewObject("DepartmentVO")
             b. DeptView.getEstimatedRowCount()
              It should give me 3 records (Hr, Shipping, Sales)
    Case 2:
             a. DeptView = AM.findViewObject("DepartmentVO")
             b. Create View Criteria 'NotSalesDeptVC', which should not list out Sales department.
             c. Apply NotSalesDeptVC using RowSet rowSet = (RowSet) this.findByViewCriteria(NotSalesDeptVC, -1, ViewObject.QUERY_MODE_SCAN_VIEW_ROWS)
             d. rowSet.getEstimatedRowCount()
              It is in-memory filtering, will not disturb the default rowset, should give me 2 records (Hr, Shipping)
    Case 3:
             a. DeptView = AM.findViewObject("DepartmentVO")
             b. Apply 'NotSalesDeptVC' to the default row set, followed by executeQuery
             c. DeptView.getEstimatedRowCount()
              It should give me 2 records. (Hr, Shipping)
    Case 4:
             a. DeptView = AM.findViewObject("DepartmentVO")
             b. Unapply the applied 'NotSalesDeptVC', followed by executeQuery
             c. DeptView.getEstimatedRowcount()
              It should give me 3 records (Hr, Shipping, Sales)Essence is at any point of time, User should always work with active records. He no need to write extra logic to retrieve only the active records but the base Viewobject impl should have. Note, All of my view objects are custom java data source implemented and not query based. Similarly it does not meant that all of my VOs will be having some business specific View criteria. Some VOs may have. Some VOs may not have. However basic active records criteria is applicable for all VOs

  • Schedule a Webi XIR2 report to run for all values of the prompt ...

    Hi there,
    Any ideea about if it's possible to schedule a Web Intelligence XIR2 report to automatically run for all  150 different prompt values in the LOV (and have 150 different instances)?
    BOXIR2, Java deployment.
    Many thanks.

    You'd be scheduling the document 150 different times, each for one value of the LOV.
    You'd use the ReportEngine (REBean) SDK to read the LOV values, then use the Enterprise SDK to schedule.
    Here's a bit of code that illustrates how to schedule a Webi doc a single time with specified prompts.  You'd do something similar, but iterate the prompt setting and scheduling:
        IInfoStore iStore  = (IInfoStore) eSession.getService("InfoStore");
        ReportEngine reportEngine =  ((ReportEngines) eSession.getService("ReportEngines"))
                                        .getService(ReportEngines.ReportEngineType.WI_REPORT_ENGINE);
        IInfoObjects objs = iStore.query("Select TOP 1 * From CI_INFOOBJECTS Where "
                                          + " SI_KIND='Webi' And SI_INSTANCE=0 "
                                          + " And SI_NAME = '" + reportName + "'");
        //============================================================================
        // Open Webi document, then get and set Prompts collection
        //============================================================================
        IWebi            webi    = (IWebi) objs.get(0);
        DocumentInstance di      = reportEngine.openDocument(webi.getID());
        Prompts          prompts = di.getPrompts();
        for(int i = 0, m = prompts.getCount() ; i < m ; i++) {
            Prompt prompt = prompts.getItem(i);
            String name   = prompt.getName();
            if("Enter value(s) for State:".equals(name)) {
                Lov lov = prompt.getLOV();
                lov.refresh();
                Values values = lov.getAllValues();
                prompt.enterValues(new ValueFromLov[] { values.getValueFromLov(0),
                                                        values.getValueFromLov(1)});
            } else if ("Enter Shop Id:".equals(name)) {
                prompt.enterValues(new String[] { "261" });
        //===========================================================================
        // Copy prompts over to InfoObject
        //===========================================================================
        PromptsUtil.populateWebiPrompts(prompts, webi);
        //===========================================================================
        // Schedule Webi report to run once now
        //===========================================================================
        webi.getWebiFormatOptions().setFormat(IWebiFormatOptions.CeWebiFormat.Webi);
        ISchedulingInfo schedInfo = webi.getSchedulingInfo();
        schedInfo.setRightNow(true);
        schedInfo.setType(CeScheduleType.ONCE);
        iStore.schedule(objs);
    Sincerely,
    Ted Ueda

  • Setting format and format options in Output module settings for render queue item

    Hello,
    I am unable to set the "Format" and "Format options" for video in output module settings programatically using After effects apis.
    I referred the after effects cs3 sdk guide for the apis.
    I find apis for all other options in the "outputmodule settings " like :
    AEGP_SetEmbedOptions
    AEGP_SetOutputChannels
    AEGP_SetStretchInfo
    AEGP_SetSoundFormatInfo
    But there is no api listed for setting the options available in the "Format" tab and "Format options" tab.
    The "Format" tab and "Format options" tab is available in the dialog that opens when user clicks on the Output module settings for the render queue item.
    The format tab when clicked shows a drop down list with aff different formats. By default "Video for Windows" is set.
    The drop down list contains following format options
    Adobe Clip Notes
    Adobe Flash video
    Quicktime movie
    Video for Windows
    I need to be able to set the "Quicktime movie" option in the Format tab programmatically and then set the compression type as "Animation" in the compression settings programatically using the api functions available in AE CS3 SDK
    Please suggest the suitable api to do so.
    I need to write my own plugin to export to Quicktime movie using the after effects apis.
    I follow below steps to do so.
    1. AEGP_InsertMenuCommand and add export option to AE with my own plugin name
    2. In the command hook, select active item using AEGP_GetActiveItem
    3. Add it to render queue
    4. Set the output module settings for 0 th output module using
    suites.OutputModuleSuite1()
    5. Use different functions from suites.OutputModuleSuite1() to set the output module settings like EmbedOptions,StrechInfo etc.
    6. Till this step, I am doing it right. But I am not able to find any api for setting Format options using suites.OutputModuleSuite1()
    I also checked all other suites available for setting FormatOptions but no luck.
    Please help.
    Thanks,
    -Namita

    Hi Namita,
    I am experiencing the same problem.
    I am using AE CC SDK, and I am unable to change the outputmodule format to any of the other movie format types (mov, mpg, flv, etc.).
    It is always set to "avi"
    I even compiled and ran the Queuebert example in the SDK, and there I get the same problem: the path extension is always left on ".avi"
    Does anyone know how to change this?

  • How to define transaction semantics for JMS Queues

    Hi,
    My scenario in Oracle Fusion Middleware 11gR3, SOA Suite, IDE: JDeveloper 11g is as follows:
    First). receive a message from QueueA, Second). Using the message, call a serviceABC and send the same message into QueueB.
    I created a syn-BPEL, configured two JMS Adapters(for accessing Queue A & B) and one webservice binding for calling serviceABC(Proxy service). Note: I created the two queues and a connection factory under JMS System Module. As two different external systems have to access QueueA and QueueB.
    Now, when I execute the BPEL and ServiceABC gets faulted, the message is gettings consumed from QueueA and the same message is getting produced in QueueB.
    My goal is to define a transaction semantics for my composite(syn-BPEL), such that, when ServiceABC or producing the message in QueueB fails. I retain the message in QueueA(basically, rolling back the message).
    Options tried so far: 1). Created a scope for the three operations and added a compensationhandler to it and .2). XA Connection Factory is Enabled. Result: no luck:( still message from QueueA is getting consumed where as per my goal it should get rolled-back.
    Please suggest your approach, I'll try out and post the outcome back.

    Whats your architecture? Are you running your app on an application server? If so, are you in a servlet or EJB? You should be able to get the application server to manage your transactions for you in that case e.g. wrap all the JMS calls in an stateless session bean and give it Required in its transaction attribute of deployment descriptor.
    If you're not on an application server, you need to get a transaction manager, either by putting your code in an app server ( with JBoss you can use its transaction manager without necessarily having to use EJBs or Servlets, but thats not tested as thoroughly as the container managed transactions, and you will have to write some of the transaction code yourself ) or using a stand alone one.

  • Disable JRE Auto update in Vista for all users?

    I feel like a complete idiot that I can't figure this out, but it's either so obvious I'm overlooking it, or I just plain can't figure it out, so I'm hoping someone here can help.
    We have not yet been able to figure out how to simply disabled the Auto Update option when installing JRE under Vista, so it will never check for updates, no matter what user is logged into a pc. I've just installed the newest version 1.6.0_05-b13, but get the same results.
    Basically, we are creating a "base clone image" of a Vista workstation and we need the auto update feature of the JRE to be disabled so it doesn't check for updates. When a new user logs into the pc, we want them to 'inherit' this setting from the default user profile, or we simply want a 'global' setting on the pc that stops all JAVA update checks from occuring. But even though there are multiple registry keys that 'look' like they control the auto update function, no matter how we set them the update option still shows it is enabled when you open the JAVA control panel.
    We have 2 basic problems:
    - When a standard user runs the JAVA Control Panel applet and they select the 'Update' tab, the option to "uncheck" autoupdates is "grayed out". If we make the user a local administrator, then it is not grayed out anymore and they can set the option. Problem is, we have thousands of users and none of them are local administrators, hence the problem of getting it to already be defaulted to not check for updates. How do we get the update checkbox to NOT be grayed out for a NON-administrator?
    - How do we set the 'global' (or default) option to disable the auto update checkbox for ALL users? No matter what we try, when a new user logs in, the auto update feature is still enabled after their initial profile is generated from the first time login.
    I was able to figure out if I change the "EnableJavaUpdate" value in the below registry key, it will "remove" the Update tab from the JAVA Control Panel. But does the simply remove the tab? Or does it remove the tab AND disable auto updates for ALL users on the computer?
    HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy
    I've sent multiple emails to Sun asking for help on what should be a simple thing to do, but have never received a reply from them.
    Keith Hemmelman

    Thank you for the reply. I apologize for not getting back here sooner.
    We actually already use a deployment.properties file located under the Default User profile on our Vista setup. It's located under the "C:\Users\Default\AppData\LocalLow\Sun\Java\Deployment" folder. This file does get copied over to a new user profile when a new person logs in. This is what we want since we have set things like the maximum cache size and temporary file location.
    The problem though is there is no setting that disables the automatic update check within this file. The best I can figure out is that for some reason under the Vista environment, the auto update setting is controlled in the registry at: HKEY_CURRENT_USER\Software\JavaSoft\Java Update\Policy
    There is a REG_BINARY key there that appears to control this option. It is named "EnableAutoUpdateCheck". The problem is that the value of this key is "several" characters long and it is "different" from one user to the next. I tried disabling auto update under the Java Control Panel and then copied the value of this key into the same aread of the Default User hive but when a new user logs in, it ignores that setting and auto update is still enabled. I also tried using a simple "0" to disable the autoupdate or a "1" to enable it for this key, but it doesn't work either. (This is very frustrating why there isn't a simple 1 or 0 setting to turn the auto update setting on/off.)
    We had no problem getting this to work under XP. Basically we didn't have to do anything special in XP. We simply created a temporary user account and made all the settings we wanted and then copied that profile over to our Default User profile and the Java autoupdate setting under the Java Control Panel was disabled for all new users. We did the same thing under Vista, but the auto update setting was ignored and re-enabled for all new users.
    I read through the settings for the deployment.properties file located at the below link, but there is nothing there to control the auto update setting.
    http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/properties.html
    Thus, we can't get the auto update setting to be disabled in the default user profile so it will in turn be disabled for all new users that log into the computer. This is extremely frustrating.
    The other equally frustrating problem we have run into under the Vista environment is that when you run the Java Control Panel, the option to disable the auto update check is "grayed out" and the user can't uncheck this option to disable auto update. We have found you must be an administrator before this option is no longer grayed out. Since none of our thousands of users are admins, this is also a problem for us. (This option works fine for a standard user if you are on a XP machine though. It's just Vista where things have changed.)
    I've sent repeated emails to Sun in the past asking for help, but they never replied.
    Keith

  • Physical inventory document - for all A parts

    Hi,
        We are in the process of preparing our system for physical inventory count for all A parts (Cycle count indicator is A).
    1. We ran MI24 to get all open physical inventory documents.(they are around 100).
    2.Then we ran MI31 (didn't create batch input) for all A parts and the following are checked - 1. Material marked for deletion 2. only materials w/o zero stock 3. Unrestrcited use 4. Blocked 4. Include inventoried materials 5. Included inventoried batches. The variant for MI31 includes all A parts in the material selection and the required plant and SL are input. The output said, phy inventory documents could be created for 656 materials.
    3. I wrote a query with MARC and MARD to get all A parts with unrestricted quantity > 0 for the above specified plant and SL. The list produced 882.
    The above two counts are not matching.
    I ran MI31 for some of the materials which are in the list materials as per point 3 but not in the above 2. But MI31 said, no physical inventory document can be created.
    We want to make sure both the both numbers are equal (step 1 + 2 = step 3),  to make  sure all A parts will be counted. Can anyone explain why they are not matching? or Am I missing something?
    OR any other ways to make sure all A parts will be counted. Thanks,
    Regards,
    Sundar.

    Please refer my comment. It may be useful for you.
    There are two ways if you want to carry out Physical Inventory count
    1)Manual -
    First check if there are no open PI document for a material using MI31.
    Then carry out three transactions one after another MI01, MI04, MI07
    2) Automatic
    Maintain CC physical inv. indicator in material master i.e A, B, C
    Before that ensure that you have maintained SPRO setting for A, B and C.
    Ok Now check the planned count date in MARC table. Run a Z program to change the last count date
    Now run MICN and schedule a job to create PI documents

  • The way streaming is better for all performers, if they work at it [All Platforms][Other]

    I'm no trying to be your PR or law firm but, from my perspective, being new to Spotify, I think some of the performer and recording industry comments about your not paying enough could be offset by this simple idea that, few in music seem to understand about streaming: Discovery on a massive scale.Attached is a screen shot I took of just one section of many, many new records I have saved. My saved playlists from others and playlists I made have many, many more performers on them.This is what makes streaming great, and what Apple does not seem to get very well with its Music app.If a performer or label realy gets this idea of making playlists here (and elsewhere) and being on social media (Facebook, Twitter, here) to not advertise or pester but, maybe, once a week, post a new playlist or comment on another performers playlist, these tendrals of connection all mean MORE plays. The good old days of the mega performer selling loads of CDs is not over entirely but, the days of more performers and labels getting more deserving listens is here.I have pretty eclectic tastes (I used to work at Tower Records as a teen and college student) so it is a lot of classical, jazz, but also contemporary, rock, and even African. Both living and dead. Young and old performers.I would have seen NONE of these and did not see much of any music CDs for a decade or more because of music store closure. Spotify brings back the music store and the ability to discover and audition an album (maybe even making the artist some money but not buying it!). Sure, iTunes and Amazon let you do that but, some classical CDs cost $25+ with downloads not that much less AND lower quality on Amazon. I'd listen then weigh it; How many times will I listen to this? Unless it was $7-10 AND I loved it, I skipped buying. I would even hold out a few years for lower price or buy used CDs instead.Now I am listening to more performers of all kinds I would never have heard and never have bought. Perhaps the big names are making less. But many less known but superb performers are being heard by me. If any artist does good work and promotes it online and it is ACTUALLY good work (rare for all genres), then people will listen and they will make money. Bad, unpromoted, derivative, worn out, lousy music with lazy artists or badly run labels, will not make money.  

    Indeed :-)
    This forum is riddled with questions by users that cannot get their computer to do what they want, *despite* the fact they use a very precise and (usually) unambiguous method of telling it want they want it to do -- a programming language. Making it comprehend *natural* language is, by any way of measuring, a number of degrees more difficult.
    That said: in what way would a computer program (advanced or "dumb") be able to help the OP? Spell check is one -- but it's not a *fact* that anything written *badly* equals nonsense. In politics, for example, the most eloquent speakers still manage to make a fool of themselves :D The same goes for "grammar". Of course, bad grammar is more difficult to understand -- EVEN for a human. So a computer is bound to fail on that as well.
    Fact checking then? I usually can't even find what I want in one go with Almighty Google (which seems to turn things around: if it cannot find "enough" web pages with the exact phrase you asked it, it automatically assumes you are interested in synonyms, antonyms, homonyms, and other *unrelated* stuff! Yeah THANK you but I want to find what I typed in!)
    A good starting point would be to define in more detail what this hypothetical software *ought* to do -- that needs to be a bit more concrete than "I want it to do my job for me."

  • Can validations  be done inside  FOR ALL and can we use conventional insert

    Hi All,
    I have to move millions of data from one 'table1' to ' table 2'. Table 2 is equal Table 1 columns+ an extra column . data for the extra column is retrieved from table 3 using foreign keys of table 3 and table 1.how shud i do it using bulk collect and for all insert... I have given the sample code for my problem..
    TABLES:
    table 1 columns: emp_name, emp_id , emp_add, emp_txt
    table 2 columns: emp_name, emp_id, emp_add,emp_txt,emp_ref
    table 3 column: emp_txt,emp_ref,emp_size
    CODE:
    create or replace
    procedure bulk_proc IS
    v_emp_ref varchar2(20);
    cursor cur_t1 is
    select * from table 1;
    TYPE bulk_t1 is table of cur_t1%rowtype;
    v_bulk_t1 bulk_t1;
    cursor cur_t3 is
    select a.emp_txt,b.emp_ref from table 1 a, table 3 b where a.emp_txt = b.emp_txt;
    TYPE bulk_t3 is table of cur_t3%rowtype;
    v_bulk_t3 bulk_t3;
    begin
    open cur_t1;
    open cur_t3;
    loop
    fetch cur_t1 bulk collect into v_bulk_t1 ;
    exit when v_bulk_t1.count=0;
    fetch cur_t3 bulk collect into v_bulk_t3 ;
    exit when v_bulk_t3.count=0;
    for i in v_bulk_t1.first..v_bulk_t1.last loop
    for j in v_bulk_t3.first..v_bulk_t3.last loop
    if (v_bulk_t1(i).emp_txt = v_bulk_t3(j).emp_txt) then
    v_emp_ref := v_bulk_t1(i).emp_txt ;
    else
    v_emp_ref := null;
    end if;
    for all m in 1..v_bulk_t1.count
    insert into t2(emp_name, emp_id, emp_add,emp_txt,emp_ref) values
    (v_bulk_t1(m).emp_name,
    v_bulk_t1(m).emp_id,
    v_bulk_t1(m).emp_add,
    v_bulk_t1(m).emp_txt,
    v_emp_ref);
    end loop;
    end loop;
    end loop;
    close cur_t3;
    close cur_t1;
    end bulk_proc;
    can we do validations inside FOR ALL command..i am getting error.is it possible to use conventional insert inside 'for all command' or do we have to use only 'insert ti values v_bulk_t1(i)' like that....Do i have to use only conventional cursor for this problem?...please help me..

    1.I want to push 18 million records from one table to another table with validations....Can i use ur code for it? You can always test how the example Tubby provided works in your environment.
    Usually a single SQL statement is the right way to go.
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:760210800346068768
    (memorize the mantra)
    Another option you have is to use CTAS (Create Table ... As Select ...) or use the APPEND hint while inserting.
    Make sure first that you understand how it works:
    You can find many examples including clear explanations by doing a search on http://asktom.oracle.com
    2.Can we do normal insert and validations inside FOR ALL insert loop... Afaik, you cannot. ( But it wouldn't surprise me if Michael comes up with an example using dynamic SQL ;) )
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/forall_statement.htm#LNPLS01321
    Alternatively you should investigate if it's possible to adjust your query/queries in such a way so that only records that you want to insert are selected.
    In other words: use the WHERE-clause from your query to validate rightaway instead of selecting records thatyou don't want/need at all.
    3.How variables are stored in BULK COLLECT ..Is it storing pattern differs from cursor.......Sorry, I don't understand what you mean here.
    4.In which scenarios we should not use COLLECTIONS ...Please help me...That's totally dependent of the scenario/requirement.
    Example:
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:1058232381458

  • Interesting problem for all students and programmers Have a look!

    Hello. This is a very interesting problem for all programmers and students. I have my spalsh screen class which displays a splash when run from the main method in the same class. However when run from another class( in my case from my login class, when user name and password is validated) I create an instance of the class and show it. But the image in the splash is not shown. Only a squared white background is visible!!!.
    I am sending the two classes
    Can u tell me why and propose a solution. Thanks.
    import java.awt.*;
    import javax.swing.*;
    public class SplashScreen extends JWindow {
    private int duration;
    public SplashScreen(int d) {
    duration = d;
    // A simple little method to show a title screen in the center
    // of the screen for the amount of time given in the constructor
    public void showSplash() {
    JPanel content = (JPanel)getContentPane();
    content.setBackground(Color.white);
    // Set the window's bounds, centering the window
    int width = 300;
    int height =400;
    Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
    int x = (screen.width-width)/2;
    int y = (screen.height-height)/2;
    setBounds(x,y,width,height);
    // Build the splash screen
    JLabel label = new JLabel(new ImageIcon("logo2.gif"));
    JLabel copyrt = new JLabel
    ("Copyright 2004, Timetabler 2004", JLabel.CENTER);
    copyrt.setFont(new Font("Sans-Serif", Font.BOLD, 16));
    content.add(label, BorderLayout.CENTER);
    content.add(copyrt, BorderLayout.SOUTH);
    Color oraRed = new Color(100, 50, 80, 120);
    content.setBorder(BorderFactory.createLineBorder(oraRed, 10));
    // Display it
    setVisible(true);
    // Wait a little while, maybe while loading resources
    try { Thread.sleep(duration); } catch (Exception e) {}
    setVisible(false);
    public void showSplashAndExit() {
    showSplash();
    // System.exit(0);
    // CLASS CALLING THE SPLASH
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.JMenu;
    import javax.swing.*;
    import java.applet.*;
    import java.applet.AudioClip;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.URL;
    import java.net.MalformedURLException;
    import java.awt.Dimension;
    import java.awt.Toolkit;
    import java.net.URL;
    public class login extends JDialog
    String username;
    String password;
    JTextField text1;
    JPasswordField text2;
    login()
    //super("Login To TIMETABLER");
    text1=new JTextField(10);
    text2 = new JPasswordField(10);
    text2.setEchoChar('*');
    JLabel label1=new JLabel("Username");
    JLabel label2=new JLabel("Password");
    label1.setFont(new Font("Garamond",Font.BOLD,16));
    label2.setFont(new Font("Garamond",Font.BOLD,16));
    JButton ok=new JButton(" O K ");
    ok.setActionCommand("ok");
    ok.setOpaque(false);
    ok.setFont(new Font("Garamond",Font.BOLD,14));
    ok.setBackground(SystemColor.controlHighlight);
    ok.setForeground(SystemColor.infoText);
    ok.addActionListener(new ActionListener (){
    public void actionPerformed(ActionEvent e)
    System.out.println("ddddd");
    //validatedata();
    ReadText mytext1=new ReadText();
    ReadText2 mytext2=new ReadText2();
    String value1=mytext1.returnpassword();
    String value2=mytext2.returnpassword();
    String user=text1.getText();
    String pass=text2.getText();
    System.out.println("->"+value1);
    System.out.println("->"+value2);
    System.out.println("->"+user);
    System.out.println("->"+pass);
    if ( (user.equals(value1)) && (pass.equals(value2)) )
    System.out.println("->here");
    // setVisible(false);
    // mainpage m=new mainpage();
    // m.setDefaultLookAndFeelDecorated(true);
    // m.callsplash();
    /// m.setSize(640,640);
    // m.show();
    //m.setVisible(true);
    SplashScreen splash = new SplashScreen(5000);
    // Normally, we'd call splash.showSplash() and get on with the program.
    // But, since this is only a test...
    splash.showSplashAndExit();
    else
    { text1.setText("");
    text2.setText("");
    //JOptionPane.MessageDialog(null,
    // "Your Password is Incorrect"
    JButton cancel=new JButton(" C A N C E L ");
    cancel.setActionCommand("cancel");
    cancel.setOpaque(false);
    cancel.setFont(new Font("Garamond",Font.BOLD,14));
    cancel.setBackground(SystemColor.controlHighlight);
    cancel.setForeground(SystemColor.infoText);
    cancel.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e)
    dispose();
    System.exit(0);
    JPanel pan1=new JPanel(new GridLayout(2,1,20,20));
    JPanel pan2=new JPanel(new GridLayout(2,1,20,20));
    JPanel pan3=new JPanel(new FlowLayout(FlowLayout.CENTER,20,20));
    pan1.setOpaque(false);
    pan2.setOpaque(false);
    pan3.setOpaque(false);
    pan1.add(label1);
    pan1.add(label2);
    pan2.add(text1);
    pan2.add(text2);
    pan3.add(ok);
    pan3.add(cancel);
    JPanel_Background main=new JPanel_Background();
    JPanel mainpanel=new JPanel(new BorderLayout(25,25));
    mainpanel.setOpaque(false);
    // mainpanel.setBorder(new BorderLayout(25,25));
    mainpanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder
    ("Login To Timetabler Vision"),BorderFactory.createEmptyBorder(10,20,10,20)));
    mainpanel.add("West",pan1);
    mainpanel.add("Center",pan2);
    mainpanel.add("South",pan3);
    main.add(mainpanel);
    getContentPane().add(main);
    void validatedata()
    ReadText mytext1=new ReadText();
    ReadText2 mytext2=new ReadText2();
    String value1=mytext1.returnpassword();
    String value2=mytext2.returnpassword();
    String user=text1.getText();
    String pass=text2.getText();
    System.out.println("->"+value1);
    System.out.println("->"+value2);
    System.out.println("->"+user);
    System.out.println("->"+pass);
    if ( (user.equals(value1)) && (pass.equals(value2)) )
    SplashScreen splash = new SplashScreen(5000);
    splash.showSplashAndExit();
    dispose();
    else
    { text1.setText("");
    text2.setText("");
    //JOptionPane.MessageDialog(null,
    // "Your Password is Incorrect"
    public void callsplash()
    {SplashScreen splash= new SplashScreen(1500);
    splash.showSplashAndExit();
    public static void main(String args[])
    { login m=new login();
    Dimension screenSize=Toolkit.getDefaultToolkit().getScreenSize();
    int screenPositionX=(int)(screenSize.width/2-390/2);
    int screenPositionY=(int)(screenSize.height/2-260/2);
    m.setLocation(screenPositionX, screenPositionY);
    //m.setResizable(false);
    m.setSize(600,500);
    m.setSize(390,260);
    m.setVisible(true);

    Hi Luis,
    Use tcode XK99 for vendor mass change, select the Fax no field. You have to take note that this changes will be only 1 fax number for all vendors.
    Else you have to use BAPI for mass change.
    regards,
    maia

  • Network LOD support for All Paths between 2 nodes

    In the in-memory Network API, there is a method NetworkManager.allPaths. This method returns available paths between 2 nodes with possible constraints. I am looking for a similar method in the LOD NetworkAnalyst class and am not finding it. Is there something similar?
    Or, here is what I want to do, and maybe there is a better way to do it. I am using NDM to data-mine our roadway inventory. Its a big network, whole state of Ohio, all roads--both local and state. One of the things I am trying to identify are what we call co-located routes. These are routes that have multiple names, for example, the ohio turnpike is both Interstate 80 and 90 on the same bed of road. In our line work, where these routes are co-located, we would only have a record for 80. The portion of 90 that we would have would be only in the case where it is NOT co-located with 80; in other words, 90 has a gap where it is co-located with 80. This is true for all our roads. In this case, we call 80 the primary, and 90 the secondary. We can have infinite secondaries (our worst case scenario is 6 routes overlapping). My situation in many cases, is I know that a route becomes secondary, I know how long the secondary section is, but I don't know what the primary is, so I want to discover it.
    Given these assumptions, I should be able to ask for all paths between 2 nodes that exactly match a cost (the overall length of the overlap). This should be simple with NDM. I provide a begin node, an end node, and a target cost, possible some traversal constraints, and it returns me the candidate paths. I thought that NetworkAnalyst.withinCost would do this, but as I discovered from the Stored Procedure docs, it returns the shortest path within the given less than or equal to the given cost--not necessarily the path I am looking for.
    Any advice? FYI, I am using Oracle 11GR2.
    Thanks, Tom

    So what I have come up with so far, is that the NetworkAnalyst trace methods provide this type of functionality. For example, with traceOut, I provide a start node, distance and some traversal constraints, and it returns me all paths less than or equal to the specified distance. What was throwing me a little with this method was the application of the LODGoalNode. I was thinking that the goal node would allow me to specify a particular node to be a requirement for the entire path such that a resulting path would have my start node, and end on a particular goal node with links in between. That IS NOT how it works. The LODGoalNode.isGoal is tested for EACH link that is part of a potential path, and only if this method returns true, is it added to the resulting path list.
    In my case, if I specified a start node and implemented the LODGoalNode.isGoal method such that it tested the provided end node for equality to my target node, the result would be that only links containing that specific goal node in the link. Anyway, so in my implementation, I leave the goalNode of the traceOut method null.
    So I have a new question. Is there a way to test when a path has been found, and then apply some constraints on it (PathConstraint)? This would be useful in cases where you get many paths returned to you, but in addition to a maximum distance constraint, you also want to apply for example a minimum distance on the resulting path, or that this is only a valid path if it ends on a particular node. Maybe there is a way to do this, and I haven't figured it out yet. The old AnalysisInfo class used to have a way to query the current path links and nodes, that would be useful in the LODAnalysisInfo class to help accomplish this perhaps? This feature isn't critical, because I can filter the list of paths returned from traceOut on my own after they are returned, but it would add some efficiency, especially when a large amount of paths are returned.
    Thanks, Tom

  • Where to find the logs for cronacle queues

    hi i m using redwood explorer 7.0.3 . Someboday had hold the cronacle queues . it was giving the message queues held by operator . But we don't know who held the queues. Can anbody tell where we can find the logs for these queues i.e who made changes w.r.to Cronacle queues.
    Regards,

    Hi,
    Yes this can depend on your system configuration
    To view the current settings of all parameters, you can:
    Use the Redwood Explorer and navigate to Configuration > Environment > Schedulers > SCHEDULERNAME > Parameters..
    Use the SHOW PARAMETERS or SHOW ALL command in the Redwood Shell.
    Look in the Master agent trace file.
    also check the operator messages in cronacle.
    Regards

  • Public synonym (or similar) for message queue?

    I have problems enqueueing (and dequeueing) from a queue in a different schema than the enqueuer's/dequeuer's.
    If i only write the queue name
    DBMS_AQ.ENQUEUE( queue_name => TheQueue,
    and so on... );
    I get the exception
    ORA-25205: The Queue MyUser.TheQueue does not exist.
    If I also supply the schema name
    DBMS_AQ.ENQUEUE( queue_name => TheSchema.TheQueue),
    and so on... );
    it all works fine.
    For flexibility, I would like to omit the schema name. I tried creating a public synonym for the queue.
    CREATE PUBLIC SYNONYM TheQueue FOR TheQueue;
    This does not give an error, but when executing
    DBMS_AQ.ENQUEUE( queue_name => TheQueue,
    and so on... );
    I get an execption
    SP2-0749: Cannot resolve circular path of synonym TheQueue
    I get the same exception when I do
    DESC synonymName
    as the owner or another user.
    The procedure which executes the enqueue is executed as definer (not current_user).
    Does anyone have an idea how to be able to skip the schema name for the queue when enqueueing/dequeueing?
    Thanks,
    Lena

    There is no way for do that. See "Synonyms on queue tables and queue" on "Application Developers Guide- Advanced queuing"
    Sorry

Maybe you are looking for

  • Can't get Login Manager (xdm) to work

    I would like to boot directly into a login maqnager such as xdm or wdm.  I have read the wiki on "Adding a login manager" but can't get xdm to work. I have the following line in my /etc/inittab x:5:respawn:/usr/bin/xdm  -nodaemon I have the following

  • Can I set default colors for generated shapes in Premiere Pro CC?

    I'm working on some highlight video where I need to generate an ellipse on each clip to highlight a player. I'd like to use a yellow/yellow, 20% softness, 8 thickness ellipse each time, but by default PP gives me an ugly green/blue combination, and I

  • Error message when i try to connect to SharePoint Store, when i click on Sharepoint Store in the site its throwing me below error message,

    Error message "Sorry, we can't seem to connect to the SharePoint Store. Try again in a bit." when i try to connect to SharePoint Store, when i click on Sharepoint Store in the site its throwing me above error message, In the log it shows Request to o

  • Text Under Picture

    I've dragged a picture into a cell and would like a name under this picture. I can type on the picture, but I'm trying to put a line break under the picture - and type there - all in the same cell. Anyway to do that?

  • Zen micro headphone ja

    iv had two zen micros, my first had to be retruned because of the headphone jack was faulty, the sound would cut out and become destorted, slightly annoying, i have another one it seems to be ok so far but it did have some fireware problems but it fi