Is there a way two start a new thread from a BLS to do some background work

Hi all-
I am thinking about creative ways to do offline processing...  Our MII app loads a list of current orders for the user's browser.  The user selects an order and requests back to MII for running the SAP transactions.  Then their browser is reloaded with the up to date list again.  When SAP is down they cannot process.
Certainly a traditional store and forward where all data is loaded to MII and transaction requests are queued up to be processed by MII/SAP in the background is possible. Con: Data synch issues are very complex however.  Pro: It does provide excellent response time to the user.
I am just noodling about options... 
>>Is there a way to start a thread that could take the XML output going to the web page and store that in the database in the background?  I.E.  release the data to the irpt and terminate the user's BLS while a background BLS is saving a copy of the XML/orders to the database.
Then when offline, the user can work from the last current list of orders they had.  When SAP comes back up the system goes back to online operation.  Thus the data sync would only be temporary.  It does not have the response time benefit however.  Maybe some more thinking, ...But I really want to know if there is a way to multi-thread this app.
Thanks,
--Amy Smith
--Haworth

I assume you're still running 12.0?  12.1 introduces a new action block for transaction calls, which allows for async threads to nested transaction calls.
I don't know how using query caching would work on the XacuteQuery template for your list of orders - especially when it would attempt to renew the cache when SAP was unavailable.
An XML file periodically saved to the web tab of your project would also provide you with a cache approach to servicing the user screen - a simple point of abstraction.

Similar Messages

  • HT3529 I have i0S7.0.2 on my iPhone 5.  I want to to send a new string of messages to someone but every time I type in the recipient's phone number, the old string of messages pop up.  Is there any way to start a new, fresh string?

    I have i0S7.0.2 on my iPhone 5.  I want to to send a new string of messages to someone but every time I type in the recipient's phone number, the old string of messages pop up.  Is there any way to start a new, fresh string?

    SadisticIron wrote:
    i just baught my first iphone and it is a jalbroken
    Buzz! Thank you for playing!
    Discussing jailbroken devices is forbidden here by the Terms of Service.
    You can not get help here.

  • Is there a way to open a new window from the "Go" menu in Mavericks?

    Before Mavericks, I was able to go from the Finder to the top menu "Go" -> "Utilities", or Applications or Home… and a new window would open.
    Now I have to manually open a new window to avoid loosing my existing window.
    Is there a way to open a new window from the "Go" menu?

    Before Mavericks, I was able to go from the Finder to the top menu "Go" -> "Utilities", or Applications or Home… and a new window would open.
    Now I have to manually open a new window to avoid loosing my existing window.
    Is there a way to open a new window from the "Go" menu?
    First, as others have already stated.....make sure the checkbox is deselected for "open folders in tabs instead of windows" in Finder Preferences.
    If you're like me and don't like tabs very much, there is a way to make folders always open in windows with a simple click (I'm using Mavericks 10.9.5).  Go to a root folder (for example, the Documents Folder), open it, and select View > Hide Toolbar, then all folders within that root folder will open in a new window.
    As an alternative method, any folder can be opened in a new window by holding down either Command Key while clicking the folder. But sooner or later you will forget to hold down that key, and then clicking on a folder will open in a tab (which will automatically resize the window and cause much aggravation).
    The Hide Toolbar trick will also work with any folder present on the Desktop. It will make all folders inside that folder open in new windows.
    To make the Applications Folder open in a new window when opening it from the menu bar at the top of the screen, you will have to open the main hard drive folder and use the Hide Toolbar trick. This will cause all folders inside it to open in new windows.
    Hope this helps.

  • Start a new thread from JSP ???

    suppose my JSP code is like this,
    <%
    Obj.heavyProcess();
    %>
    How can I start a new thread to do
    out.println(" ");
    out.flush("");
    while the heavyProcess is going on? I need to do this because my ISP will cut any Idle connection after certain time and my heavyProcess takes a long time to finish.
    for certain reasons, I can not do waiting page, refreshing, etc.

    The same way as you would from a normal java application. Write your thread class
    package com.yourpkg;
    public class YourHeavyProcess implements Runnable{
       private YourObject obj;
       public YourHeavyProcess(YourObject obj){
                this.obj = obj;
       public void run(){
           obj.heavyProcess();
    }and create and invoke this thread from your jsp.
    <%
            YourObject obj = new YourObject();
            Thread t = new Thread(new YourHeavyProcess(obj));
            t.start();
    %>
    out.println()..;
    out.flush()....;Note that the thread cannot write anything to the output stream as the response is over and done with. It can only perform backend tasks (like data archival for instance)
    You could consider using a Timer and a TimerTask class which provides a slightly higher abstraction layer over threads . Look at [url http://forum.java.sun.com/thread.jspa?threadID=758874]this  post (reply 48) for an example.
    And finally you wouldnt want a large number of threads to be generated and competing for cpu time on your web server (whose primary responsibility is to receive http requests and send responses). You can use a thread pool to manage the number of threads spawned by your application. If you use java5, take a look at the [url http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/Executors.html]java.util.concurrent.Executor class for thread pool implementations that you can use off the shelf.
    cheers,
    ram.

  • Is there any way to start a new ipad2 without needing a computer?

    How do i start my new ipad2 without the need for a computer that is connected to itunes?

    It depends on whether it's got iOS 5 pre-installed - if it has then you should be able to set it up wirelessly (http://www.apple.com/ios/features.html#pcfree), it if has iOS 4 on then you need a computer

  • Is there a way to create a new PDF from part of a form?

    I would like to create a PDF form that is really several forms. A master form and several forms like Form A, Form B and Form C. The idea is to be able to fill out the Master form and have it populate the like fields in the other forms. What I would like to accomplish is to have buttons/scripts for each Form A, Form B and Form C that would output each one to a new PDF. If I wrap each form in a subform, is there a way I can output that subform to a new PDF? Or is there another approach I can take?
    Maybe I could put all the forms in a package but somehow automatically populate the like fields in the other forms without exporting and importing data?
    Thanks in Advance,
    Ken

    You are using LiveCycle Designer?
    Acrobat Forms has has Personal Field Names, PFN, that can be used to import and export personal data since version 4. Samples are included on the distribution CD-Rom. forms\PFN

  • Is there a way to txt a new touch from a 2nd gen touch?

    Hi, I am new to this.
    My 10 year old son, who lives 300 miles away, has a new ipod touch.
    I have an older 2nd generation touch
    I do not have any other ios device. I have windows Xp on my PC and I do have Itunes.
    Im wanting to set up an @me.com email address so that I can TEXT my sons new ipod touch...My ipod is set up with my gmail account, but when I send him an email to his @me.com email,  it goes to his email inbox and not his text inbox... My son is young and he sees all his texts but not his emails, and Im to far away to show him..
    My father has an iphone and he can text my sons @ me.com, email straight from his texting screen on the iphone
    Is there a way to text my sons new ipod touch from my old ipod touch without installing a 3d party app?

    I am not aware of any since the 2G does not support the Messages app. That app requires iOS 5 or above and the 2G can only go to 4.2.1. Further, I am not ware of any testing apps that are presently compatible with the 2G iPod.

  • Is there a way to start a JAVA program from the dock?

    Hello,
    I wrote some JAVA applications and I would like to put them in -
    - and start them from - the dock.
    These applications were built into .jar files.
    I can start them from Finder which tells me that there is some .jar starter utility.
    ;JOOP!

    The Dock is for Applications, Documents, and Folders (which can take several forms). There are some other odd animals that can stay in the Dock, but they were never truly implemented (recent items is one). If you "wrap" the .jar file inside some package that behaves as an application, you can have it stay in the Dock just as any other Application.
    A .jar file is not an application, it's a java archive. It is a collection of classes, metadata, etc. which the Java runtime interprets and executes. The Application which runs it shows up in the Dock as the coffee cup, but that is just the runtime engine, not the .jar.
    The .jar is like any other document, such as a a word processing document. Just like any document, it can be double-clicked and the handling application will be called to open it. Double-clicking that word processing document causes the word processing application to open the document and interpret its contents. Double-clicking the .jar file causes the java runtime engine to open the .jar file and interpret its contents. Instead of presenting it as paragraphs of text, it displays it as the application it represents.

  • Is there a way to make a new layer from a selection simply by dragging?

    I recently watched a video of an artist working and I swear it looks like he made a lasso selection on a smart object layer, dragged the selection, and instantly created a new layer of the selection alone. He did this successively to sample parts of an image for later usage. I can't figure out for the life of me how he was doing it and I can't find anywhere that PS has this ability. For one, lassoing an area of a smart object doesn't allow me to duplicate that selection, PS acts like I want to duplicate the entire image, if I hold down the ALT key. Also, if I try to make a duplicate of a selection with a non-smart object layer I can duplicate the selection via dragging by holding ALT, but the duplicate is still on the same layer as the original object, which is NOT what I want. I know how to use copy/paste, so PLEASE do not suggest that I do this, OR use the CTRL+J feature. I'm simply trying to figure out what this person is doing. If this makes no sense I can provide a link to the video...

    Maybe you missed him doing the copy paste because he used the short cuts Ctrl+C Ctrl+V which would not be seen in a video. It would look like a drag in a video....

  • Starting new threads from within shutdown hooks

    I'd like to discuss this statement from the java 6 API:
    "A shutdown hook is simply an initialized but unstarted thread. When the virtual machine begins its shutdown sequence it will start all registered shutdown hooks in some unspecified order and let them run concurrently. *When all the hooks have finished it will then run all uninvoked finalizers if finalization-on-exit has been enabled. Finally, the virtual machine will halt*. Note that daemon threads will continue to run during the shutdown sequence, as will non-daemon threads if shutdown was initiated by invoking the exit method. "
    Now, my question is this: If I have a hook that starts a new non-daemon thread and then goes on to complete it's run() method, will the JVM finalize and halt? Or will it wait for my new thread to complete as well?
    I trust the specification, and believe that the JVM will either not allow me to create the thread or will finalize and shutdown even if it is running. However it's not explicitly stated anywhere, and I think that it's a hole in the documentation.
    I'm going to write a test case for this now. But chime in if you have thoughts.

    This is what happens if you start a new thread from a shutdown hook and do not wait for it to finish:
    public class ShutdownTest {
        private static class Shutdownhook extends Thread{
            public void run() {
                System.out.println("Shutdownhook starting");
                Thread t = new Thread(){
                    public void run(){
                        System.out.println("Thread successfully started");
                        try{ Thread.sleep(5000); }
                        catch(Throwable e){ System.out.println("Throwable from sleep: "+e); }
                        System.out.println("Thread successfully finished");
                t.start();
                //try {t.join();} catch (InterruptedException e) {}
                System.out.println("Shutdownhook completing");
        public static void main(String[] args) {
            Runtime.getRuntime().addShutdownHook(new Shutdownhook());
            System.out.println("Exiting from main()");
            Runtime.getRuntime().exit(0);
    Exiting from main()
    Shutdownhook starting
    Shutdownhook completing
    Thread successfully startedHowever, as you might expect, if you join() or wait for the thread's isAlive() to return false, you will be able to complete the thread.
    I'll leave someone else to figure out if that new thread gets finalized and if finalizers on exit is on, what happens. Mostly because it doesn't matter for my purposes.
    Enjoy

  • I have recently started using an old Nano and purchased some new songs. When I go to sync it wants to erase other songs to download new. Is there a way to just sync new songs to ipod without erasing existing music on devise?

    I have recently started using an old Nano and purchased some new songs. When I go to sync it wants to erase other songs to download new. Is there a way to just sync new songs to ipod without erasing existing music on devise?

    Syncing shouldn't trouch you photos unless you have photos in a Photo Library album.  These would be photos that were synced to your phone from your computer.  If you do have any, you'll need to use an app like PhotoSync to transfer them to your computer prior to syncing.
    If you prefer to backup your camera roll photos prior to syncing, open iTunes and go to Preferences>Devices and check "Prevent...from syncing automatically".  Then connect your phone to your computer and import them as explained here: http://support.apple.com/kb/HT4083.
    Then, to minimize data loss, follow the steps in this user tip: https://discussions.apple.com/docs/DOC-3141.  To follow the steps, first open iTunes and go to View>Show Sidebar.  Also, Transfer Purchases is now located in File>Devices.

  • When capturing footage is there a way to automatically create new clips...

    When capturing footage in Final Cut Pro is there a way to automatically create new clips like it does in iMovie. I have to capture over 9 hours of footage and I dont want to spend the time logging each clip. I also dont want to just capture the whole tape then go back and log each clip. I really like how iMovie automatically creates a new clip each time the rec/pause button was pushed. is there anyway I can get Final Cut to do this??????

    You can capture the complete clip and then apply Mark > DV Start/Stop Detect over the captured clip. You could get the best of two worlds so: smooth capture and clips creation.

  • Is there a way to force a new session so my "on new session" code will run?

    I'm using apex.oracle.com and I find values of application (global) and page items persisting across logins.
    I didn't expect that? I thought they would go away when I logged out of APEX. But I can change the values, logout, and log back in to the same values. And when I login and start an application, it's not running my "shared components > application processes" initialization code which is set "on new session".
    I thought each login would be a distinct new session with it's distinct set of items. (see definition below)
    So when I run an application, is there a way to force a new session so my "on new session" code will run?
    >
    What Is a Session?
    A session is a logical construct that establishes persistence (or stateful behavior) across page views. Each session is assigned a unique identifier. The Application Express engine uses this identifier (or session ID) to store and retrieve an application's working set of data (or session state) before and after each page view.
    Because sessions are entirely independent of one another, any number of sessions can exist in the database at the same time. Also, because sessions persist in the database until purged by an administrator, a user can return to an old session and continue running an application long after first launching it. A user can also run multiple instances of an application simultaneously in different browser sessions.
    Sessions are logically and physically distinct from Oracle database sessions used to service page requests. A user runs an application in a single Oracle Application Express session from log in to log out with a typical duration measured in minutes or hours. Each page requested during that session results in the Application Express engine creating or reusing an Oracle database session to access database resources. Often these database sessions last just a fraction of a second.
    >
    Thanks -- Howard

    I cleaned up the copy of the Select List code in APEX 4.1.xxx which was not operating correctly before. Now it matches what I have in APEX 4.2.yyyy. And, drum roll please, the select list seemingly works fine there (4.1) as well. But now, the initialization code--which was working fine(!)--FAILS in 4.1!
    <font size="3"><font color="red">•<font face="courier new">
    Okay. Maybe this will help. 1) I logged in. Ran the login page but did not login. Opened the "session" window and wrote down the session ID. Logged out and back in. 2) Ran the login page but did not login. Opened the "session" window and .... it has the same session ID? 3) <b>So the session is persisting across logins!! How is that possible?</b>
    (More) When I log into 3 different applications, I get a different session ID for each but repeated logins always give the same session ID for any given session. </font>

  • Is there a way to open a new window with one site when the home setting on Firefox has multiple websites?

    While working in Firefox is there a way to open a new window with one site when the home setting on Firefox has multiple websites?

    I guess I'm not explaining myself fully. I have a home page designation in firefox preferences that starts firefox up with 5 sites. that pretty fills up my screen with tabs.
    At some point I want to initiate another WINDOW in firefox (NOT a tab). I would like to be able to open up a window that ONLY has ONE tab, or as if there were only one site designated as the home page. This gives me a workspace that has my most useful sites available in tabs in one window, and also another WINDOW that I can move around in and even create more tabs without messing up my primary set of TABS (in my primary window). I see how this might not be doable without doing what I do now, which is open up a new window, and then close tabs until the new window just has one tab for me to work from.

  • Best way to start a new catalog for 2009 ?

    Hi,
    What's the best way to start a new catalog for the new year, with all the keywords and all the presets of the modules (without having to export all the folders) of previous catalog 2008 ?
    Thanks,
    Dominique

    Well there is a cost too in not being able to find all your images in a single step, and inconsistencies soon develop - eg a keyword is plural in one catalogue, singular in another. Speed or stability issues are not simply related to catalogue size, and I've seen decently-performing catalogues 50% bigger than yours (as well as slow ones of a few hundred images). Have you optimized the catalogue recently?
    But if you think it's a good idea to fragment control of your picture collection.... Presets will be carried over to a new catalogue as they belong to the machine (unless you have the save with catalogue preference turned on). Keywords can be moved via the Metadata > Export and Import Keywords command. If you have lots of collections and smart collections, then maybe make a copy of your existing catalogue and then remove all the items from it - making sure you don't trash them of course.
    John

Maybe you are looking for

  • After iOS 8.2 upgrade, screen no longer displays color.

    I have restarted the phone several times.I have played with the accessibility settings (grayscale and invert colors) but that has not solved the problem. when I turn my phone and the orientation switches, I see a brief flash of color, but then it is

  • In Firefox, when downloading a PDF, Nero opens and crashes. Why and why Nero?

    Some web pages have a link to a PDF document; when I try to open the link Nero attempts to open but crashes; I don't know why Nero is opening. Even on the "right-click to save" option it opens. Nero asks to be debugged and/or report the crash.

  • Implicit personalisation for tables - without portal

    Hi, Please let me know if its possible to simulate the feature of implicit personalisation of Webdynpro  tables(NWDS 7.0) without a portal environment (by making use of any APIs). Thanks!! Lisha

  • Setting img width to 100vw doesn't display properly in Dreamweaver CC

    If I make a blank page and drop an image in it, remove height and width from the HTML, set the body tag margins to zero, and use CSS to set the width of the image to 100vw, it doesn't fit the image to the borders of the viewing area, but instead make

  • Search Help modification

    Dear Experts, I need to modify KRED_C search help as i need to get the list of all vendors where LOEVM (Central Deletion Flag for Master Record) field of LFA1 is blank.. Please help. Thanks in advance. Regards