Using XMLParser as a single object used by different threads

Hi,
I'm trying to use the XMLParser object as a parser used by
several different objects, probably running under separate
threads.
Each such object will implement its own callback, the idea being
that the callback supplied to the parser upon initialization,
will actually call the callback implemented by the object that
called parse. I thought about doing this by using the "context"
passed to the XMLParser, if I could change it after
initialization and before each call to XMLParser.parse that I
would be able to switch between calling objects, and thus allow
multiple threads to use the same parser.
The problem here is that the SAX callback implementation
functions are defined "extern C" and I can't get them in the
context of an object.
Is there any way at all to accomplish this?
Thanks
J Galore

Hi,
You can use "select for update" to lock this row but locking means other sessions will hang and wait until lock is released. If this is ok for you, go for it.
Other option is to use a flag column which you should set to "1" so that other threads don't use the row with flag vlaue "1"
Salman

Similar Messages

  • Tal Mngt Area of Responsibility - use of different object from OrgUnit

    Hi all,
    One of my clients has a requirement to use a different object from an OrgUnit as the Area of Responsibility (e.g. S A 741 O > S A 741 01 where 01 is a new object). Basically, 01 is an OrgArea object that is linked to one or more OrgUnits and some positions.
    My initial thought is that is such an integral part of EhP4 Talent Management security that it would not be possible. Therefore, if anybody knows differently please tell!
    Many thanks in advance,
    Luke

    >
    Luke Marson wrote:
    > Hi all,
    >
    > One of my clients has a requirement to use a different object from an OrgUnit as the Area of Responsibility (e.g. S A 741 O > S A 741 01 where 01 is a new object). Basically, 01 is an OrgArea object that is linked to one or more OrgUnits and some positions.
    >
    > My initial thought is that is such an integral part of EhP4 Talent Management security that it would not be possible. Therefore, if anybody knows differently please tell!
    >
    > Many thanks in advance,
    >
    > Luke
    Hi Luke, from the OM perspective, relationship perspective all of it could be done.  What would be interesting is that I highly doubt the SAP standard TREX index will work correctly. 
    HRTMC Relation S O Area of Responsibility
    AND
    HRTMC Structural authority
    cool thing to test out though, let us know,.,

  • Multiple Materials on a single object

    I'm sure I'm missing something...but I'm finding it impossible to use multiple materials form the 3D toolkit on a single object unless I separate the material differences to separate objects....which I'm sure is crazy. But if I import an object with multiple materials, there seems to be no way to assign the toolkit materials separately. If I drag a toolkit material to one part of the object...the entire object turns into that material. It would seem it would be right if you dragged a toolkit material to the materials list of the object....but that won't work either. Anyone know what I am missing here?
    Thanks in advance for any help

    Right click on the object and select Tools -> Separate Meshes which will divide the object into it's component parts (i.e. parts that aren't part of the same polygonal mesh will be divided)
    From there, you can apply materials to them individually.
    To rejoin them (you don't have to) just select them all, then right click and select Tools -> Collapse Hierarchy.

  • Reloading a single object from DB to cache

    Hello:
    We are using near+distributed caches with read-through/write-behind persistence to DB.
    While doing support, sometimes we need to modify a single field of an object (for whatever reason).
    It looks like Coherence way to do this would be map.put() resulting in async invocation of CacheStore. The problem in our case is that we do not have UI facilities for modifying object fields. Before Coherence we went to DB, modified a single row via SQL query and it was picked up by the app. It was very convenient since we did not have to reconstruct the object which often contains data from several tables, one or more rows from every table.
    So the question is whether it is possible to make Coherence re-read an object from DB even if it is already in cache.
    Thanks!

    One object but it differs for different users ?
    Then it's an object per user, and you should store it in the session.
    Why do you think this is a performance overhead ?
    "Premature optimization is the root of all evil."

  • Testing Process for Gathering Single Object stats.

    Hello Oracle Experts,
    I work a critical system and due to some high stakes all and every change is very heavily scrutinized here whatever the level is. And one of such changes which is currently under scrutiny is gathering object stats for single objects. Just to give you a background its an Oracle eBusiness site so fnd_stats is used instead of usual dbms_stats and we've an inhouse job that depending on the staleness of the objects gather stats on them using FND_STATS. (RDBMS : 10.2.0.4 Apps Release 12i).
    Now, we've seen that occasionally it leaves some of the objects that should ideally be gathered so they need to be gathered individually and our senior technical management wants a process around it - for gathering this single object stats (I know!). I think I need to explicitly mention here that this need to gather stale object stats has emerged becs one of the plans has gone pretty poor (from 2 ms to 90 mins) and sql tuning task states that stats are stale and in our PROD copy env (where the issue exists) gathering stats reverts to original good plan! So we are not gathering just because they are stale but instead because that staleness is actually causing a realtime problem!
    Anyway, my point is that it has been gathered multiple times in the past on that object and also it might get gathered anytime by that automatic job (run nightly). There arguments are:
    i. There may be several hundred sql plans depending on that object and we never know how many, and to what, those plan change and it can change for worse causing unexpected issues in the service!
    ii. There may be related objects whose objects have gone stale as well (for example sales and inventory tables both see related amount of changes on column stock_level) and if we gather stats only on one of them and since those 2 cud be highly related (in queries etc.) that may mess up the join cardinality etc. messing up the plans etc.
    Now, you see they know Oracle as well !
    My Oracle (and optimizer knowledge) clearly suggests me that these arguments are baseless BUT want to keep an open mind. So my questions are :
    i. Do the risks highlighted above stand any ground or what probably do you think is there of happening any of the above?
    ii. Any other point that I can make to convince the management.
    iii. Or if those guys are right, Do you guys use or recommend any testing strategy/process that you can suggest to us pls?
    Another interesting point is that, they are not even very clear at this stage how they are gonna 'test' this whole thing as the 'cost' option like RAT (Real Application Testing) is out of question and developing an inhouse testing tool still need analyzing in terms of efforts, worth and reliability.
    In the end, Can I request top experts from the 'Oak Table' network to make a comment so that I can take their backings!? Well I am hoping here they'll back me up but that may not necessarily the case and I obviously want an honest expert assessment of the situation and not merely my backing.
    Thanks so much in advance!

    >
    I work a critical system and due to some high stakes all and every change is very heavily scrutinized here whatever the level is.
    Another interesting point is that, they are not even very clear at this stage how they are gonna 'test' this whole thing as the 'cost' option like RAT (Real Application Testing) is out of question and developing an inhouse testing tool still need analyzing in terms of efforts, worth and reliability.Unfortunately your management's opinion of their system as expressed in the first paragraph is not consistent with the opinion expressed in the second paragraph.
    Getting a stable strategy for statistics is not easy, requires careful analysis, and takes a lot of effort for complex systems.
    >
    In the end, Can I request top experts from the 'Oak Table' network to make a comment so that I can take their backings!? Well I am hoping here they'll back me up but that may not necessarily the case and I obviously want an honest expert assessment of the situation and not merely my backing.
    The ideal with stats collection is to do something simple to start with, and then build on the complex bits that are needed - something along the lines suggested by Dan Morgan works: a table driven approach to deal with the special cases which are usually: the extreme indexes, the flag columns, the time-based/sequential columns, the occasional histogram, and new partitions. Unfortunately you can't get from where you are to where you need to be without some risk (after all, you don't know which bits of your current strategy are causing problems).
    You may have to progress by letting mistakes happen - in other words, when some very bad plans show up, work out WHY they were bad (missing histogram, excess histogram, out of date high values) to work out the minimum necessary fix. Put a defensive measure in place (add it to the table of special cases) and run with it.
    As a direction to aim at - I avoid histograms unless really necessary, I like introducing function-based indexes where possible, and I'm perfectly happy to write small programs to fix columns stats (low/high/distinct) or index stats (clustering_factor/blevel/distinct_keys) and create static histograms.
    Remember that Oracle saves old statistics when you create new ones, so any new stats that cause problems can be reversed out very promptly.
    Regards
    Jonathan Lewis

  • Import/Export Single Object

    Hi Folks,
    i tested imort/export for SWCV it is working fine...but when i m trying it for single object like namespace etc...
    I face the problem while exporting/importing a namespace in IR.
    1) I exported a namespace using menu Tools->Export design Objects
    2) Selected the software Component and Mode as using file system in the wizard
    3) Selected my namespace which i want to export
    got the message exported successfully.
    Export Path: D:\usr\sap\PL2\SYS\global\xi\repository_server\export
    File: XI3_0_TEST_2.0_of_xxx.com-nsps.tpz
    <b>I tried to import the same namespcae back into same IR.</b>
    and followed these step.
    1) Copied the .tpz file into import folder.
    2) then using the menu tool->import design Objects i selected my .tpz file
    3) Got the following msg.
    Import source XI3_0_TEST_2.0_of_xxx.com-nsps.tpz imported successfully. All imported design objects integrated successfully 3 import object(s) imported successfully 
    Import file moved to importedFiles\XI3_0_TEST_2.0_of_xxx.com-nsps_2007-02-13_02-41.tpz
    <b>But i was not able to see the imported namespace.</b>
    Also followed this document
    http://help.sap.com/saphelp_nw04/helpdata/en/a8/5e56006c17e748a68bb3843ed5aab8/content.htm
    Can u guide me plz.
    Sachin

    <b>Sreeram</b>
    I m not trying to move it form DEV to QA.
    I m exporting the namespace from DEV. say http://abc.com/xi/test of SWCV  Test of abc.com.
    and then i m trying to import it back to Same DEV box.
    I m getting the sucessfully imported message but not able to see the namespace.
    I tried deleting the namespace after exporting and then importing.
    But still i can't see it.
    However in cache notification and Tools->Find Transfer it is showing that it is sucessfully imported.
    I think it might be the issue with active version... can u help me out.
    <b>Chandra</b>
    i m not changing the name of anything. i got the above message as well, but not able to see the imported object.
    Sachin
    Message was edited by:
            Sachin Dhingra

  • When I select a single object in a layer and try to move it with the mouse, everything goes with...

    I've been having this problem where I can't use the move tool with the mouse properly. I'll go and select a single item on a layer and then try to move it with the mouse (move tool). I've done this before and still do it all the time on Photoshop on my other machines. However, on my laptop it won't work. I grab the single object I want to move and the second I move it, it defaults to moving every single layer in my file. The only way to get around it is to use the arrows, but that's becoming laborious and frustrating.
    Any ideas?

    I know what you mean! This happened to me as well!
    And one thing that I found useful is, if you want to directly select a layer without selecting from the layers pallete and without having autoselect enabled, just hold Ctrl and click on in directly in the image. This saved me a lot of time!

  • Combining separated text into single object ...

    I remember in older versions of Illustrator that when you used pathfinder to combine multiple objects into a single object ... it actually made them into a single object, regardless of weather or not they where intersecting.
    With the more recent versions of illustrator, when you try to "unite" objects in pathfinder ... the only ones that are truly combined into a single object are the ones that overlap ... anything separated will simply be "grouped" and remains a totally separate object ... even if you use "expand objects" on the group.
    I'm trying to use a third party program (path styler) and the problem I'm running into is that when I apply a stroke effect in path styler, it treats every letter in my headline as a separate object (even when united in pathfinder), causing the strokes to overlap the previous letter.
    What I want to do is combine all the letters into one single object (while still leaving space between each letter) so that path styler treats the text (and the outlines) properly. (So the outlines run into each other, instead of overlapping the fill.)
    Any help would be appreciated ... this should be simple ... but I think it may be a case of the program trying to preserve the history of "united" objects when I don't want it to.
    Thanks!

    Make your logo ONE entire compound path, you probably have each letter as an individual compound path.

  • Trx KKPHIE: assigning single objects to cost objects hierarchy through BDC

    Is there a way to assign single object to cost object hierarchy.
    The ALV TREE button "Assignmnet single objs on/off" does not seem to trigger an OKCODE since it is managed in the abap object (class).
    Is there is way to make a BDC. Or other ways to enter that data in BG, like a BAPI.
    - Tried the BDC recorder without success
    - Did not find a BAPI
    - Did not find anything interesting in SWO1 business object BUS2076.
    Any clue ?

    Ok, we found the solution. Simply use the old transaction "KKP2" instead of "KKPHIE"

  • Merge Dimension using 2 different universes

    Hi Experts,
    I need to create a single  webi report using two different OLAP universes. one is AR universe and other is SD universe.
    I created a a report using AR universe and then went to ADD Query option and choose SD universe and droped all the objects needed and ran the reports so.. I got two tables in the report and then trying to merge dimensions as Company key is common in both universes but when I tried merge dimension option I don't get any option to choose dimension .. only option I see is value butwhen I click on it nothings comes up.. Any idea ......
    After add query can anyone tell me how to go for merge dimensions..
    Thanks in advance,
    Priyam

    Hi,
    I tested using  same universe, I mean created two reports using same universe having one common dimension but in edit report mode clicked on merge dimension then as said before I will get a screen  with values button but when i click on values button nothing works.. so it might be security setting issue ?  I am using SAP Bex queries for universe. Please any suggestions..
    Thanks,
    Priyam

  • Move and enlarge a single object in a video ?

    How would I enlarge a single object and move it to different location on my video? For example when playing a video game, I want people to clearly see my health bar. So I would enlarge it and move it, to lets say the top right of the screen. How would I do this in After Effects CS5?

    You would use elaborate masking and rotoscoping to separate it from whatever footage it is on and then you would use more masking and painting to cover up the hole you made. That being quite tedious and time consuming, you should probably settle on leaving whatever status bar you have in place including the background and just "zoom" it by scaling a duplicate of the layer and then mask it with a simple rectangular mask. Add some fancy border or drop shadow and that's it. You could of course also completely rebuild and animate a status bar from graphical elements, but that may not at all impress your friends with your gaming skills and come off as cheating...
    Mylenium

  • Convert group items to single object?

    In order to make both sides of this shape symmetrical, I drew half of it with the pen tool, then did a copy/paste. I rotated the second piece horizontally, then aligned them to give the appearance of a sinlge item. I want to convert this to a single object so I can apply a gradient effect to it. Can someone help me? Here's what I have:

    Pathfinder Merge is just an effect. It doesn't join things physically.
    Merge (in the Pathfinder palette) is not a live effect. And it does "join things."
    Merge unions (add) contiguous areas of same-colored fills and punches (subtract) overlapping areas of different-colored fills.
    So in effect, it creates paths which are actually shaped like what you see, in terms of regions of contiguous fills. It "merges" areas of same color that touch, and removes any overlaps.
    (This is particularly useful in prepping artwork for vinyl cutting, because it eliminates crosscuts and overlaps. I have long argued that it should provide a settings dialog to make overlap optional and adjustable so that in such situations, it could serve to build traps at the same time, which is usually needed in artwork assembled from vinyl.)
    Like most Pathfinders, it can only work with fills; it doesn't properly handle strokes, so it wrecks artwork containing strokes. You have to use Outline Stroke before you use Merge if you don't want to loose strokes.
    I would not, however, have suggested Merge for TC's situation, because it would not perform the union if the two paths had different fills. Union (Pathfinder Add) is the normal and customary way to do this.
    As for those situations in which abutting edges may not perfectly align, I often simply draw a third path that overlaps the two being unioned using any closed path drawing tool to make sure of there being overlap; then do the union on the three paths; then use the minus pen tool to remove any unwanted anchors. That is often simpler than tedioiusly aligning anchors, which often doesn't work anyway because a single slightly extended control handle can cause the edges to misalign. It helps ensure you don't accidently create a compound path instead.
    JET

  • Programmatically crawling single object(s)

    Hello -
    My apologies if this has been covered elsewhere, but I appear to have lost my portal.plumtree.com access...
    Let's say you have a crawler. Works great, etc. You attach it to a job and blammo - content in portal. Magic. Wonderful. (profile services and crawler services ROCK, btw - the more I use them the more I realize how cool they are)
    Let's say that crawl is fairly intensive, so you configure it to run every 3-4 hours to avoid beating the hell out of the system. BUT - within that window users are updating that external content store. Changes will not be reflected until the job runs/completes.
    What's the best approach for executing that crawl for on a case-by-case basis? So - scenario is.
    * We have an external store
    * Crawl runs to bulk load content from external store into KD
    * User submits new content to external store
    * I want to programmaticaly fire that crawl, ideally targeting it to just that new content item that's been modified (I guess I re-run the whole operation, but... icky)
    You can see where I'm going with this - we want to submit content through a portlet and then fire the crawl - consume the item and surface it in the KD - with minimal latency.
    I know I could just have my "submitting" app ask the portal to append an operation to a dedicated on-demand job (or create a job on the fly, etc.), attach the crawl to it and then fire that job, but is that the best way to handle the situation? Is there a suggested way to scope the crawl to a given object or do you just let it run through the whole "what's been updated?" property check?
    Again - my apologies if I'm asking a topic that's been addressed elsewhere. Not having my portal.plumtree.com access atm leaves me needing to ask more than I usually would :P
    Thanks in advance,
    Eric

    In this particular case the problem occurs if you shrink the window too much. What can happen is that the button gets moved onto the graph. When you then enlarge the window, the button remains on top of the graph. In the VI I uploaded the graph was the only thing that was being resized. In that particular setup resizing did not create any crazy conditions.
    In your original example you seem to only want to resize the graph. Are you trying to find a solution that applies to all objects on the front panel, or to a single object? If it's a single object then it appears to me that the example I provided should be adequate. If it's all objects, then you have a lot more to consider because you have to consider the size of the objects relative the positions. Technically, a resize of the panel should resize objects, and not move them. Your original VI seems to also move the graph. However, you can run into problems if the growth is too large. For instance, what do you do if you make the button so large that it would cover the LED? Also, which way is the LED grown? Diagonally towards the left and bottom, or radially?

  • Diff. between Mass Object Controlling and Single Object Controlling

    Hi,
    Can anybody tell me what is the diff. between Mass object and single object controlling.
    I came to know that Mass Object creates the profitable segment where as single object controlling creates the internal order.
    Can anyboyd brief with exampl and what u ment by internal order..

    HI Lucas...
      here is about the three things U asked:
    let us take an example:
    Ur company is to buy spare parts of computer, assemble them with the help of ur employees and sell it finally.
    You know, you planned that ur total spare parts cost you 15000/- by enquiring in the market , labor costs is 5000/- per pc (acc. to employee wages u give to the labor)
    so, ur total computer cost is 20,000/- & u wanna sell it for 25,000/-
    Here, <b>Preliminary costing</b> per pc = 20,000/-
    But, unexpectedly, on the day u r bought parts, one part rate has gone up by 1,000/- &
    U assembled the computer & sold to your customer.
    ur computer cost has come to 21,000. (15,000/- + 1,000/- + 5,000/-)
    This is called <b>Simultanous costing</b>
    This costing is done in SAP using production order confirmation.
    at the month end(called period end closing in SAP) ur employee unexpectedly demanded to give 7000/- per pc for the pcs that were sold last month. You need that employee & u paid him accordingly. This cost u hav come to know only at the period end.
    so the <b>Final period costing</b> is 23,000/- (15,000/- + 1,000/- + 7,000/- )
    This is done in SAP using production order settlement.
    Do assign points if it is helpful
    Regards,
    chaitanya

  • Use two different printer services in one web template?

    Hi!
    Is it possible to use two different help services for printing in the same web template (for the same table item)?
    Print1:
    <param name="HELP_SERVICE" value="HELP_SERVICE_PRINT"/>
    <param name="HELP_SERVICE_CLASS" value="ZCL_RSR_XLS_HELP_WINDOW_PRINT"/>
    Print 2:
    <param name="HELP_SERVICE" value="ZPRINTING"/>
    <param name="HELP_SERVICE_CLASS" value="ZBW_PRINT_HELP_SERVICE"/>
    I was thinking that you maybe could change the param name values for the "Help_service" and the "help_service_class" at runtime using the properties for the table item, so that you could choose which one to use, but I havne't been able to do that so far.
    Does anyone have an idea?

    This is not a problem. Just put the print service for the print to excel on an object other than the table web item. As long as these print services exist on any web item, you should be able to invoke them. I've tested this with putting the "Print with Excel" service on the Navigation Block Web Item and the other print service on the table web item. Hope that helps!
    Prakash

Maybe you are looking for

  • How can I create a magazine web app for all devices?

    How can I create a magazine web app for all devices?

  • Shared memory problem - memory leak?

    I've got the following error after calling a stored procedure about 26000 times. Does this mean Oracle 8.1.6 Thin Driver has memory leak in CallableStatement? Thanks. ORA-04031: unable to allocate 4096 bytes of shared memory ("shared pool","BEGIN che

  • ODeliveryNotes serial nbr error when using sales BoM with DI server

    Hi all, we're trying to create a delivery note with DI server for items managed by serial number and sales bom. This is a sample xml: <?xml version="1.0" encoding="utf-16"?> <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> <env:He

  • Moi aussi une erreur inconnue s'est produite (-42110)

    Same to Jean, I recieve this message of error at the openning of my iTune une erreur inconnue s'est produite (-42110) I did reinstall my iTune but I still get the message Does any body know how to fix that? Eric.

  • Formatted file input of integers

    I can see how to do low-level file i/o and how to read in strings in Lingo, but I have a long list/array of numbers( integers) that I want to read into the program from a file once and for all at the start of the movie. Then later, I want to use thes