Spawning new entry processors from within an existing entry processor

Is it possible / legal to spawn a new entry processor (to operate within a different cache) from within an existing entry processor.
E.g we have a parent and a child cache, We will receive an update of the parent and start an entry processor to do this. Off the back of the parent update we will also need to update some child entries in another cache and need to start a new entry processor for the child entries. Is it legal to do this?

Hi Ghanshyam,
yes, in case of (a), you would be mixing different types in the same cache. There is nothing wrong with that from Coherence's point of view, as long as all code which is supposed to access such objects in their deserialized form is able to handle this situation.
This means that you need to use special extractors for creating indexes, and you need to write your filters, entry processors and aggregators appropriately to take this into account. But that's all it means.
The EntryProcessor on the child could be invoked, so long as there are more service
threads configured. This allows retaining partition affinity. I don't think this is technically
illegal.It is problematic, as invoking an entry-processor from another entry-processor in the same cache service can lead to deadlock/livelock situations. You won't find it out in a simple test as you get an exception or not.
But even if it is technically not guarded against, firing a second entry-processor consumes an additional thread from the thread-pool. Now if you get to a situation when all (or at least more than half of the thread-pool size) of your entry-processors try to fire an additional entry-processor, and there are no more threads in the thread-pool, then some or all would be waiting for a thread to be available, and of course none would be available, because there are not enough single-thread entry-processors to leave to get a thread to everyone.
However, none of them can back off as all are waiting for the fired entry-processor to complete. Poof, no processing is possible on your cache service.
Another problematic situation which can arise if entry processors are fired from entry processors is that your entry-processors may deadlock on entries (entry processors executing on some entries and trying to execute on another entry on which another entry processor executes and also tries to execute on the first entry). In this case the entry-processors would wait on each other to execute.
No code running in the cache server invoked by Coherence is supposed to access a cache service from code running in the threads of the same cache service, except for a couple of specifically named operations which only release resources but not consume additional new ones.
Best regards,
Robert

Similar Messages

  • Can I upgrade to an Intel core 2 Duo processor from my Intel core duo processor ? If so, what all must be replaced.

    Can I upgrade to an Intel core 2 Duo processor from my Intel core duo processor ? If so, what all must be replaced. imac
    <Edited by Host>

    No CPU upgrades possible.
    You should not post your serial number or other personal information in this forum.

  • Creating a new frame of information within an existing page

    Hi Champs,
    I recently got a requirement which is very new to me.
    My requirement is below:
    Need to amend a page which is already created.A new section for news has to be introduced.
    This news contents are already displayed in an another page which is already created.
    We just need to need to display the same news in the page in our amended page.
    I am very new to the portal, so it will be great if you can give me step by step procedure to achive the above requirement.
    Thanks
    Regards
    Nishant

    Hi Nishant,
    Go through this [link|http://help.sap.com/saphelp_nw70/helpdata/en/db/b8df3d48b05d5ae10000000a11405a/frameset.htm].
    Regards
    Basha

  • Using Image Processor from Bridge

    I'm trying to use the image processor from within Bridge. I have done this several times in the past, as recently as last week.
    I have some files selected in Bridge. I select "Tools>Photoshop>Image Processor" and the dialog box opens. Step 1 indicates that I have files to process (10 in this instance), and I have JPEG selected as the file type to process. When I click "Run", I get an error message that says "Script Alert" in the title. The message in the window says "There were no source files that could be opened by Photoshop".
    I opened the same 10 files in Photoshop, and I was able to run the Image Processor on them while they were open in Photoshop. I'd rather not do this unless I have to.
    I haven't added any new programs or plug ins since the last time I used the Image Processor from Bridge.
    I had the same problem in early June, and the solution suggested then fixed the problem. I'm experienceing the same problem today, and the same solution doesn't seem to be working now.
    The previous solution was to reset the preferences by holding down the Ctrl key and clicking on the Bridge icon to start. A reset window with 3 options popped up. Now, w
    I would sincerely appreciate any help you could give me with this.
    Thanks,
    Larryhen I hold the control key down and click on the Bridge icon, I don't get the reset window. I tried it by control-clicking on the Bridge icon from within Photoshop, and I tried it by control-clicking on the Bridge icon from my desktop with Photoshop closed.

    Read you original post again and your last post and now I am confused.
    You said you reset your Bridge preferences, yet in post #1 you said " I hold the control key down and click on the Bridge icon, I don't get the reset window. I tried it by control-clicking on the Bridge icon from within Photoshop, and I tried it by control-clicking on the Bridge icon from my desktop with Photoshop closed.
    So with this said you have not reset the preferences unless you have gone in and deleted the file.  The Bridge Icon is the one one the desktop that you click to start Bridge.
    BUT, in last post you say you have a Mac.  So to reset preference believe it is Cmd key.
    No matter how you do it you need to get the reset window with the 3 reset options.

  • Is it possible to dynamically create a user variable at runtime from within a Widget?

    I'm trying to develop a custom Interactive Widget. This widget will allow the user to take multiple attempts, and needs to store information about previously completed attempts so they can (hopefully) see their improvements over time.
    I'm trying to figure out the best way to store the data about the previously completed attempts across multiple sessions in a LMS. It seems that the data stored in user variables is automatically stored/restored in suspend_data, which would be perfect. The issue is that I can't find a way to dynamically create a new user variable from within a Widget. It looks like I can only access user variables that the author has explicitly defined in the Captivate interface. I'd rather not have to force the author to define an empty User Variable that they'll never knowingly use, just to give the Widget a bucket to store its data.
    Does anyone have any ideas for what might be the best way to accomplish this? I'd like to stick to standard, "approved" APIs as much as possible, but I'd be willing to bend some rules if necessary.
    Thanks!

    Ryan,
    I assume you've asked this question here:
    https://groups.google.com/forum/?fromgroups#!topic/elearning-technology-and-development/e5 vWZfJ6X8I
    I asked a similar question here:
    https://groups.google.com/forum/?fromgroups#!searchin/elearning-technology-and-development /leichliter/elearning-technology-and-development/Au88bu7LB5o/TC7xlo8iBpQJ
    Philip gave you sound advice.  You'll have to hijack/re-purpose the comments or the suspend data.  I was successful in using SCORM comments in a Moodle system to store extra data I needed for a customer.  It's not ideal, but it gets the job done. Here's a thread about that:
    https://groups.google.com/forum/?fromgroups#!topic/elearning-technology-and-development/Yg YAMGfXQNw
    If you use suspend data, you have to watch out for a few things:
    1.  It's base 64 encoded... so any data you append to what Captivate outputs will need to be in base 64 (that's a good practice anyway since the data has to be serialized).
    2.  On course re-entry, you'll need to capture the suspend data before it hits Cp to strip off / read your needed data.  If the suspend data isn't in the format Cp expects, you'll get a nice white screen of death.
    Ideally, it would be nice to be able to dynamically create user variables for purposes like this... and it's been requested in Cp 6.... we'll see if it gets added (not holding my breath).  Until then, I'd use cmi.comments.
    Jim Leichliter

  • HTML control doesn't allow browser pop-ups from within page

    I've noticed that pop-ups are not allowed from inside of the
    mx:HTML control. Both JavaScript popups and the targeting of a new
    browser window from within both an HTML page or SWF movie doesn't
    seem to work. I would hope that the user's default browser would be
    utilized in this sort of instance.
    For example: if I load www.cnn.com using the HTML control
    into an AIR app - and then click an ad on that site - under normal
    circumstances a new browser window would be launched - in AIR
    nothing happens.
    Is this a limitation or is there some sort of workaround?
    Thanks,
    David

    In order to accomplish this one has to override the createWindow function of the htmlhost class
        override public function createWindow(windowCreateOptions : HTMLWindowCreateOptions) : HTMLLoader {
            //Option1:
            //var initOptions:NativeWindowInitOptions = new NativeWindowInitOptions();
            //var bounds:Rectangle = new Rectangle(windowCreateOptions.x,windowCreateOptions.y,windowCreateOptions.width,windowCre ateOptions.height);
            //var htmlControl:HTMLLoader = HTMLLoader.createRootWindow(true, initOptions, windowCreateOptions.scrollBarsVisible, bounds);
            //htmlControl.htmlHost = new HTMLHost2();
            //if(windowCreateOptions.fullscreen){
            //htmlControl.stage.displayState =
            //StageDisplayState.FULL_SCREEN_INTERACTIVE;
            //return htmlControl;
            //Option2:
            //var initOptions:NativeWindowInitOptions = new NativeWindowInitOptions();
            //var window:NativeWindow = new NativeWindow(initOptions);
            //window.visible = true;
            //var htmlLoader2:HTMLLoader = new HTMLLoader();
            //htmlLoader2.width = window.width;
            //htmlLoader2.height = window.height;
            //window.stage.scaleMode = StageScaleMode.NO_SCALE;
            //window.stage.addChild(htmlLoader2);
            //return htmlLoader2;

  • LDAP: Recommended way to add new objectclass to existing entries?

    Can anyone help me with the preferred way to add a new objectclass (with attrributes) to existing entries within a directory (via the javax.naming API)?
    I have an application that uses a directory of users. Each user has objectclasses "top", "person", and "inetOrgPerson" with usual attributes.
    The application needs to change to add a custom objectclass, say "ourAppClass" (and its attributes), to each existing entry within the directory. I have already successfully defined the schema for the objectclass within the directory.
    I cannot find examples showing how to add an objectclass to existing entries. Creating brand new entries with custom objectclassess is straightforward.
    When using DirContext.modifyAttributes must I define all the objectclasses again, or is there a way to send only the new objectclass and its attributes only?
    Attributes attrs = new BasicAttributes();
    Attribute classes = new BasicAttribute("objectclass");
    classes.add("top");  // do I need these?
    classes.add("person"); // do I need these?
    classes.add("inetOrgPerson"); // do I need these?
    classes.add("ourAppClass"); // in-house class
    attrs.put(classes);
    attrs.put("ourCustAtribute", "value1"); //
    DirContext.modifyAttributes(dn, LdapContext.REPLACE_ATTRIBUTE, attrs);Does someone have a good example to follow?

    I think I have answered my own question. I think I need to use a ModificationItem to add an attribute to the objectclass.
    final ModificationItem[] classModification= new ModificationItem[1];
    classModification[0] = new ModificationItem(DirContext.ADD_ATTRIBUTE,
                new BasicAttribute("objectclass", "ourAppClass"));
    dirContext.modifyAttributes(dn, classModification);

  • Spawning threads from within a UnicastRemoteObject

    I have a question regarding spawning threads from within a class that extends UnicastRemoteObject. Would it be okay to spawn new thread(s) in the constructor/ remote methods of the class that extends UnicastRemoteObject .? Are there any pitfalls to doing so? Is it against the suggested practice of writing RMI server code?
    rajkumar

    You can do anything you like in the Class that extends URO.
    The classic problem of doing anything within a constructor is that the object under construction may not be available to the threads you are spawning. That is, since the object is not fully constructed, any fields the new threads need may not be available. There have been discussions on this subject in the forums before. You might give a look and see.

  • How can I sign out from old icloud email on my device? I changed email recently and by mistake restored my new iphone 6 from old back up with email that doesn't exist. Pls help!

    I have changed i cloud email recently, and wanted to set up my new iphone 6 from 2 months old back up. Later I found out that icloud has old email, but it doesn't recognize password to sign out because it is not in i cloud system anymore. Now I cant turn off stupid icloud to reset my new iphone 6  
    How can I change icloud email or reset and erase new phone 6 if it is stuck on an old apple id which doesnt exist?

    The fact that the email address doesn't exist anymore doesn't matter. As far as the Apple ID is concerned, the email address is just a user name. As long as you know the password you used, it should be fine.
    If you don't remember the password, start here:
    https://iforgot.apple.com

  • I have moved to uk from ireland and bought new iphone, set up using my existing Apple ID account and profile but won't let me buy install or update apps??

    I have moved to uk from ireland and bought new iphone, set up using my existing Apple ID account and profile but won't let me buy install or update apps??
    Can anyone advise me on what I need to do?
    My existing account is linked to ireland as my bank account details are there, does this make a difference?
    Please help!

    Until you get a UK bank account and credit card, buy and redeem UK iTunes gift cards for use in the iTunes and Mac App Stores. But you need to switch your region/country to the UK store in your account information, as you can't use UK iTunes gift cards in the Irish stores, the gift cards are country specific.

  • Help with creating a new XML file from an existing DOM tree!!

    i want to create a new XML file from an existing DOM tree
    i used this code to create a new document:
    static public Document createDocument(String fileName) throws ParserConfigurationException//,IOException,SAXException
              try {
                   DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                   factory.setIgnoringComments(true);
                   factory.setIgnoringElementContentWhitespace(true);
                   factory.setValidating(true);
                   DocumentBuilder builder =factory.newDocumentBuilder();
                   return builder.newDocument();
    //          handle exception creating DocumentBuilder
              catch ( ParserConfigurationException parserError ) {
                        throw new ParserConfigurationException();
              }then i used this code to transform the DOM :
    public void exportDocument(Document document) {
              try {
                   Source xmlSource = new DOMSource( document );
                   Result result = new StreamResult( System.out );
                   TransformerFactory transformerFactory =
                        TransformerFactory.newInstance();
                   Transformer transformer =transformerFactory.newTransformer();
                   transformer.setOutputProperty( "indent", "yes" );
                   transformer.transform( xmlSource, result );
           //then catching the exceptions
    But the file was not created and i didn't find where can i specify the DTD that the XML file should use and where can i enter the name of the XML file itself
    Another questoin can i write a DTD file dynamically during the execution of the program??

    Cross-post: http://forum.java.sun.com/thread.jspa?threadID=784467&messageID=4459240#4459240

  • Creating new graphics object from a existing one and sending it for print

    Hello,
    i have a graphics object which is big in size, I am creating a new graphics object from the existing one as given below
    //map is a graphic object
    Graphic g1 = (Graphic)map.create(x,y,width,height);
    Graphic g2 = (Graphic)map.create(x,y,width1,height1);
    Graphic g3 = (Graphic)map.create(x,y,width2,height2);
    arrayList.add(g1);
    arrayList.add(g2);
    arrayList.add(g3);
    Now I want to send the graphic object g1,g2,g3 for print in the method
    public int print (Graphics g, PageFormat pf, int idx) throws PrinterException {
    // Printable's method implementation
    if (curPageFormat != pf) {
    curPageFormat = pf;
    pages = repaginate (pf);
    if (idx >= 3)) {
    return Printable.NO_SUCH_PAGE;
    g = (Graphics) arrayList.get(idx);
    return Printable.PAGE_EXISTS;
    This is not working... what is wrong. can anybody suggest..
    I tried standardprint.java to print a object inside a scrollpane, it is not printing the entire diagram. so I am thinking of something like this.... Please let me know what to do....
    Thanks
    Serj

    The easy way to do this is create a copy using Windows Explorer.
    Open the project and go to File > Rename.
    Then you have your 2013 ready made project.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Windows 8.1 PC, using reader, when searching a folder containing approx 100 doc's. If i search for a word, no results are returned. only the doc names can be found but nothing from within the doc. This is a new problem and was not the case before.

    Windows 8.1 PC, using reader, when searching a folder containing approx 100 doc's. If i search for a word, no results are returned. only the doc names can be found but nothing from within the doc.
    This is a new problem and was not the case before.

    Works perfectly fine for me with the latest Reader version (11.0.09).
    You write that it worked "before"; before what?  An update?  Update from what version to what version?

  • I reinstalled my system on a new hard drive, from time machine. However my old photos seem corrupt within aperture. iphoto seems okay.  Have you heard of this?

    I reinstalled my system on a new hard drive, from time machine. However my old photos seem corrupt within aperture. iphoto seems okay. New photos take a long time to load as well.
    Have you heard of this?
    Thanks

    We need a little more information to be able to help.
    However my old photos seem corrupt within aperture.
    What kind of corruption? And when do you see it? All your images, or only some? Are the images distorted, discolored, or not displayed at all?
    Are you shooting in raw? Is your library referenced or managed? Is your library on your system volume or on an external harddrive?
    And it would help to know your MacOS version and Aperture version too.
    Regards
    Léonie

  • Web Matrix FTP Remote Connection Error - "Connection Error - Failure to get file list from server. An entry with the same key already exists."

    Does anyone have experience with this issue when connecting to a Linux FTP Web Server running a FTP Site?
    "Connection Error - Failure to get file list from server. An entry with the same key already exists."
    I cannot access the root directory of the ftp file server using Web Matrix 3. The site is .php based, and
    is accessible when connecting with FileZilla or Remote Connecting via FTP with Visual Studio.
    All sites have been deleted from Web Matrix, the user Application Data has been cleared and Web Matrix has been reinstalled.
    Issue Persists....
    Thanks in advance,
    Justin

    Turns out that the program leaves metadata in your app data folder that is not removed upon uninstallation of the software.
    This is incorporated to communicate with a file that uploaded into the ftp directory when publishing pages.

Maybe you are looking for

  • How to set the physical font in JEditorPane with HTMLEditorKit

    I am now creating a swing application which use JEditorKit to make a HMTL editor by the following code: JEditorPane editor = new JEditorPane(); HTMLEditorKit kit = new HTMLEditorKit(); HTMLDocument doc = new HTMLDocument(); editor.setEditorKit(kit);

  • Xcode is not shown in launchpad

    For some reasion I want to use older versions of xcode on my macbook pro I tried to download and install the old xcode with sdk(from 2011) just as I did on my friends computer which it worked before but this time I failed.I tried it many times the  i

  • White lines in Ipad aplication.

    Hello! I have strange problem and I don't know where to find answer. I made a page with one structured MSO (6 states, few buttons that switch it from one to another state). On the preview on my mac - all OK. But when I build custom viewer for ipad -

  • J2EE engine restart with java.lang.OutOfMemoryError  Java heap space

    Hi I hope someone can help me, I have an error on my J2EE engine. My portal restarts only when I click on User - Administration - Identity Management. Here is the log error. Exception id: [000000000000005B0000001C0000098800045ACD637E87AB]# #1.5^H#000

  • ABAP Users not reflecting on JAVA Users in portal

    Hi , the users which i have created in abap is not getting reflecting in java , we are using PI 7.1 EHP1 application . Kindly help on step by step  process .