Why we should not declare a business method as final in EJBs - THX

Why we should not declare a business method as final in EJBs - THX

'cause it makes no sense at all and doesn't boost performance.
regards
dan
scpj2

Similar Messages

  • Why there should not be many static methods.

    Why a java class should not have many static methods.How is memory managed in case of static methods.
    If a Utility class has static methods then we can use methods directly by class name but if we do not make the methods static then we can acess methods using object.How does it make the difference.I know that there remains a single copy of class variables/methods.But i want to know how class memory is managed and garbage collected.

    shobhit123 wrote:
    Why a java class should not have many static methods.How is memory managed in case of static methods.
    If a Utility class has static methods then we can use methods directly by class name but if we do not make the methods static then we can acess methods using object.How does it make the difference.I know that there remains a single copy of class variables/methods.But i want to know how class memory is managed and garbage collected.The reason to discourage static methods is stylistic rather than technical. It encourages object oriented thinking.
    Each loaded class is represented by a Class object, and associated with that it a block of memory for static fields. As with all such storage this block is, as viewed from code, rather like an array with one, or in the case of double or long values, two slots per field.
    Because the class loader maintains a map from FQN to Class this storage is only released if the class loader that loaded it becomes unreachable, which happens only in situations like the un-deployment of a web application or EJB.
    Local variables for static methods are allocated in a stack frame, just as with instance methods. There's really no significant difference there.

  • Why interfaces can not declare static methods?

    Why interfaces can not declare static methods?

    Why are you shouting?
    Is your internet broken?
    [http://www.google.co.uk/search?q=interface+static+methods+java] 2,440,000 hits.

  • FAQ: Creating PDF Files from FrameMaker v.6 & earlier Documents -- Why you should not use "save as PDF"! -- Windows & MacOS Only!

    An issue that has come up over and over again on several FrameMaker and Acrobat/PDF email lists as well on the corresponding Adobe User-to-User forums is that of creation of PDF files. FrameMaker 5.5.6 and 6 have what looks like a convenient feature that is supposed to allow you to create PDF files via simply saving the document as a PDF file. I have gone on record as advising end-users not to use this approach for reliable creation of PDF files from FrameMaker documents under Windows and MacOS with FrameMaker 6 and earlier. Why do I most vociferously offer this advice and why doesn't the problem get fixed? And how SHOULD you create PDF files from FrameMaker?
    GOOD NEWS
    I will start with the good news. The "next major version" of FrameMaker will indeed have "save as PDF" re-implemented in a manner that it will be as reliable as printing to the "Acrobat Distiller" printer instance under Windows or the "Create Adobe PDF" desktop printer under MacOS. I am personally working with the FrameMaker development organization to make sure this really happens and is fully and properly tested and debugged! Furthermore, this next major revision of FrameMaker, unlike FrameMaker 6, will come with a Distiller installer that will properly install the "Acrobat Distiller" printer instance under Windows and the "Create Adobe PDF" desktop printer on the Macintosh (of course assuring that the latest PostScript driver is also automatically and correctly installed).
    DON'T USE "SAVE AS PDF"
    But what's wrong with "save as PDF" as currently implemented?
    The following are some of the SYMPTOMS reported over the last few years by FrameMaker users that were traced back to use of "save as PDF" under FrameMaker:
    (1) No PDF file is produced at all, possibly with a log file showing not-readily apparent PostScript errors during distillation.
    (2) The PDF file "loses" color in images. All or some images (raster, bitmap images, NOT vector artwork) appear in the PDF file in grayscale.
    (3) The resultant PDF file is on the wrong paper size, i.e., the document's logical page size does not match the output page size as seen in Acrobat or Acrobat Reader.
    (4) Some or all text in the resultant PDF file is blotchy looking or overly bold.
    (5) Some or all text in the resultant PDF file cannot be searched or indexed.
    (6) Some or all text in the resultant PDF file appears in Courier or in some other substitution font.
    (7) Interword or intercharacter spacing is a bit irregular in the resultant PDF file.
    (8) Content is missing in the margin areas of the page, i.e. you cannot do full-page bleeds.
    (9) Some or all page content is missing (other than margin areas).
    (10) Relatively inefficient PDF is generated.
    If this list by itself isn't enough for you, please note that some of these symptoms are very subtle and may escape attention when the PDF is first viewed or printed. Oftimes, it is when one attempts to manipulate the PDF file in Acrobat or repurpose its content or even view or print on a system other than the one on which the PDF file was created, that some of these symptoms make themselves obnoxiously visible (or invisible in some cases I won't make any bad jokes here about graphic examples!).
    It is important to understand that FrameMaker does NOT have its own native ability to create PDF. Any and all PDF created from FrameMaker documents is actually done by creating PostScript via the PostScript driver and having the Acrobat Distiller create PDF from that PostScript. The only exception to this is creation of PDF via the Acrobat PDFWriter driver, which is likewise not recommended (see below).
    In order for "save as PDF" to work correctly, FrameMaker must do the equivalent of calling Printer Setup and selecting the "Acrobat Distiller" printer instance under Windows or the "Create Adobe PDF" desktop printer under MacOS followed by setting the driver's options correctly for paper size, page range, etc., followed by sending the proper commands to the driver to create PostScript.
    Contrary to popular belief, PostScript as generated by the Windows and MacOS PostScript drivers is VERY device-dependent. The information in the PPD file associated with a printer driver instance provides critical parameters for generation of PostScript including:
    Whether the printer supports color (Acrobat Distiller does)
    What PostScript language level is supported (Acrobat Distiller 4.x and Acrobat Distiller 5.x are both PostScript language level 3)
    Whether native TrueType support is available (Acrobat supports native TrueType as Type 42 fonts)
    Available binary communications (Acrobat Distiller supports pure binary and ASCII, but NOT TCP, TBCP, or PJL)
    Resident fonts (Acrobat Distiller doesn't really have resident fonts)
    Available paper sizes and custom paper size availability (Acrobat Distiller supports a wide range of predefined sizes and continually variable "custom" sizes up to 200" by 200")
    Margins / printable areas (for PDF and the Acrobat Distiller, there are no margins in which imaging is not permitted)
    Device resolution (Acrobat Distiller can be set to any value from 72 to 4000 dpi; as a convenience, the Acrobat Distiller PPD provides a series of values for use by the driver. Since there is no inherent "resolution" of a PDF file, this parameter is used only for purposes of allowing PostScript programs that query for such a value to be satisfied and for the driver to be able to communicate this value to the operating system and/or application as required.)
    Paper handling (totally irrelevant to Acrobat Distiller if input or output tray selection via "setpagedevice" is found in the PostScript stream, it is ignored by Acrobat Distiller)
    Thus, if the wrong printer driver instance is selected (i.e., it isn't associated with the Acrobat Distiller PPD file) or that driver instance is improperly configured, improper PostScript will result and one or more of the symptoms described above can occur. As currently implemented, FrameMaker depending upon version will not necessarily choose the correct printer driver instance and/or correctly parameterize the print job via driver setup options. In fact, FrameMaker 5,5,6 might even try to generate PDF via calling a PCL driver, FAX driver, or even a non-PostScript inkjet printer!
    DON'T USE PDFWRITER
    The Acrobat PDFWriter is a relic of older versions of Acrobat. In fact, it is no longer installed by default in the "easy install" or the "typical install" of Acrobat 5. It hasn't really be updated since Acrobat 3 and only supports PDF 1.2. It is a GDI (Windows) / QuickDraw (MacOS) driver that directly generates PDF without any intermediary PostScript. Since it is not a PostScript printer driver, applications cannot pass through EPS graphics and/or PDFMark information (used for a wide variety of purposes by FrameMaker). For EPS graphics, most applications will send the low resolution TIFF (or PICT) EPS header in lieu of the PostScript text, if they send anything at all, to the driver. Forget about links, structure, or any other PDF "goodies." Expect that PDFWriter will fully "bite the dust" in the next major version of Acrobat.
    SO HOW DO I GENERATE PDF FILES FROM FRAMEMAKER 6 & EARLIER?
    The ONLY method that is really reliable for producing PDF files with FrameMaker 6 and earlier requires the generation of PostScript via a properly set printer driver instance associated with the Acrobat Distiller PPD and distillation of the resultant PostScript by Acrobat Distiller.
    Case 1: FrameMaker and the Full Acrobat 4.05 or Acrobat 5.0x Products
    PDF file from a "chapter" -- print directly to the Acrobat Distiller printer instance (Windows) or the Create Adobe PDF desktop printer (MacOS) already installed by Acrobat. If you check the "Acrobat data" option, then make sure to UNcheck the "print to file" option that gets set at the same time. As a result, the driver will automatically send the generated PostScript to the Distiller for you and delete the intermediate PostScript when done.
    PDF file from a "book" -- print directly to the Acrobat Distiller printer instance with the "print to file" option checked (Windows) or the Virtual Printer desktop printer (MacOS) associated with the Distiller PPD (see details below under Case 2/MacOS). You will need to manually process the resultant PostScript file through the Distiller (or use a "watched folder" arrangement).
    In both the above sub-cases, the default driver options generally will be OK, but check on paper size and communication protocol (Use pure binary, not ASCII, for optimal performance AND no CTRL-D characters under Windows. Make sure to set Level 3 only and Binary under MacOS. Font inclusion "All" for Acrobat 4.05 and "None" for Acrobat 5 under MacOS.). With Acrobat 4.05, make sure you preset the Distiller to use the joboptions you want. With Acrobat 5, you can set this on a job-by-job basis via the driver printer setup interface (or print dialog on MacOS).
    Case 2: FrameMaker 6 and the Bundled Acrobat 4.05 Distiller
    Windows -- Create a new printer driver instance using the latest version of the Adobe Universal PostScript Driver Installer, downloadable from Adobe's web site AND the Acrobat Distiller PPD file (located in the XTRAS subdirectory of the Distiller directory). This driver instance should be set to print to the local port named "FILE:". Name this driver instance as "Acrobat Distiller". The default driver options generally will be OK, but check on paper size and communication protocol (use pure binary, not ASCII, for optimal performance AND no CTRL-D characters). Make sure you preset the Distiller to use the joboptions you want. Print directly to this Acrobat Distiller printer instance. Make sure that the "print to file" option is checked. You will need to manually process the resultant PostScript file through the Distiller (or use a "watched folder" arrangement).
    MacOS -- Install the latest version of AdobePS 8.7.x, downloadable from Adobe's web site. In FrameMaker, go to Page Setup and select the "Virtual Printer" and go to the "Virtual Printer" window pane. Select the Acrobat Distiller PPD file (located in the XTRAS subfolder of the Distiller folder). Print directly to the "Virtual Printer" (Make sure to set Level 3 only, Binary, and font inclusion "All".). Make sure you preset the Distiller to use the joboptions you want. You will need to manually process the resultant PostScript file through the Distiller (or use a "watched folder" arrangement).
    Case 3: Acrobat 3
    Acrobat 3 is not officially supported for the latest OS versions and I personally would no longer recommend its use for generation of PDF files given that Acrobat 5.0.5 is the current version of Acrobat.
    - Dov

    You're asking a lot of ancient Acrobat to work with an Office that never existed when it was made. "Just updated my office suite" is a massive change, and Window 8 didn't exist at that time either...

  • Why is Photos not showing when busy

    it always looks like it freezes even when clicking on the apple icon and using the force shutdown it shows not working. After several minutes it goes on until I click on the next button.
    Right now Photos is a piece of garbage absolutely not usable. I see this beach ball all the time. I would not have any problems when the app tells me that it is busy because of imports or whatsoever but simply freezing isn´t the way it should be.
    Did you hire microsoft engineers or why do bugs appear more often in the last couple years?

    I've tested with jpg, tif, png and I can't reproduce it. Is there a particular image format or all images?
    Since it's not working in another account, it's probably something systemwide.
    Boot up holding command-r keys into your Recovery Volume.
    The screen should give you these choices...
    Restore from TM backup
    Reinstall Mac OS X
    Get help online
    Disk Utility
    First run Disk Utility Repair Disk, if you get errors run until no errors reported or reports "the disk cannot be fixed". Then, choose Reinstall OS X. This will be an install "in place" and shouldn't effect any of your own data or settings.

  • WHY YOU SHOULD NOT USE SKYPE (and where to file co...

    Approximately two weeks ago, my account was blocked for no apparent reason.
    I contacted customer support and they didn't know why it was blocked, but told me to go through the account verification process. I asked to speak to someone on the phone to discuss this but was ignored. Then, within 48 hours I suddenly received a NEW email telling me that my account was blocked PERMANENTLY (funnily enough THEY CHARGED ME $25 USD for SKYPE CREDIT before blcoking me!!!). I want to make sure ALL PEOPLE KNOW about the absurd practices of Skype. I am now out $25 USD and permanently locked out my account forever. WHere can we file complaints? Better BUsiness Bureau? I have contacted my rep numerous times on how to overturn this and he just ignores me saying nothign can be done. this is absurd!!
    See below from Tyron H (A horrible customer service rep I might add)
    Hello,
    Good Day! Unfortunately, we cannot re-activate your account. We take the safety of Skype customers very seriously and need to apply certain restrictions to protect our customers' details. We apologize for the inconvenience and appreciate your understanding.
    In accordance with paragraph 11.2 of the Skype Terms of Use we have terminated your right to use the Skype software, and have prevented any further access to your Skype account.
    This is because you are in breach of paragraph 6.3 (c) of the Terms of Use which prohibits the use of the Skype software to send unsolicited communications. Any Skype Credit that was in your account is non-refundable.
    Best Regards,
    Tyron H.
    Skype Customer Service

    My_Money wrote:
     A class action in the United States  prohibits them from doing this now (in the US) and repayed dupped users.
    Hello and welcome to the Skype Community.
    To clarify:
    The settlement reached in the USA applies to unused Skype Credit being made available to users following a 180 day period of inactivity and is honored by Skype worldwide [except in Japan].
    You are referring to a different issue - that of automatically recurring Subscription payments to which you agreed upon signing up.
    http://www.skype.com/en/legal/tou/   [item 9.4]
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • Why do I not see a 'busy' indicator in the operator interface?

    Hi all,
    Ok, probably a stupid question, but here goes.
    I can run my tests (mostly VIs) in the teststand LV operator interface without problem. In fact, they run quite well. The problem is, when the user initially hits the 'single pass' button to begin testing, there is about a 20-30 second delay before the actual VI front panel appears, ready for testing. During this time, there is no signal that the operator interface is doing anything. No hourglass, no indicator whatsoever. The problem is that several users have continued to click the 'single pass' button, which causes more than one instance of the VI to open, and slows the testing down, and confuses the operator.
    When I play with the LV operator in
    terface on MY pc (not the test pc) I DO see an hourglass when I press the 'single pass' button.
    Does anyone know where it went on my test machine? The test machine is a Win98. I'm using TS v2.0.1 and LV v6.1
    Not a big deal, but would be nice to fix another user complaint!
    Thanks in advance,
    Dave Neumann

    Nick,
    I'm using the shipped version of the operator interface -- I haven't made any alterations to it at all.
    I compiled the test engine in Teststand and then used the setup.exe and .cab files to install it on the test machine. When I did the compile, I included the 'common vi' folder (where the busy indicator vi is located on my development machine).
    Any other questions, let me know.
    Thanks again for your help.
    Dave

  • Why we should not assign WHT Code for Payment in Vendor Master

    HI
    I have doubt re WHT.  When WHT Types for Invoice and Payment are assigned in Vendor Master, Why Its suggested to maintain WHT Code only for Invoice, why not for Payment. Pls clarify my doubt.
    Thanks

    Dear
    It all depends upon the situation.  Sometimes we may pay advance to the vendor.  At that time, if we need to deduct tds then we need to incorporate payment tax code in the vendor master.  Sometimes we may do either fb60/MIRO and at that time we need to deduct tax then we need to incorporate invoice tax code in the vendor master. 
    There might be different orders on the same vendor and there might be different areas operating the same vendor for invoice booking/payment.  In such situations, we need to maintain both invoice tax code and payment tax code in the vendor master since tds need to be deducted at the time of invoice booking or payment to vendor whichever is earlier.
    When first advance payment is made  to the vendor and when tds amount is deducted, then at the time of making MIRO we need to remove invoice tax codes so that tds is not deducted twice.
    Hope the above clarifies.
    Regds

  • I use Winamp and now the latest Firefox, is there any reason why I should not uninstal Internet explorer and windows media player, please advise.

    OS WinXP Home, service pack 3

    If I may, I see that you are using xp, but since its support is finished, for security reasons I advise you to go under windows 7 (if your pc allows).
    Well, I say that, but it's up to you :)
    It's the apprentice technician that is talking lol ;)

  • Why in a method only final modifer could be used

    I am getting a exception while running the below code :
    try{ static String a="10"; System.out.println("a="+a);}catch(Exception e){} Why we could not declare and initialize a static variable in a method ?

    The semantics of static in Java only make sense for class-level entities, because static means "associated with the class as a whole, not with an individual instance." That qualification is meaningless for local variables.

  • Problem generating Web Service with business methods in multiple EJB's

    Hi,
    I'm I a "web service novice" but I'm working with an
    application which was developed in an earlier version
    of Studio which has
    ~30 business method coming from ~12 EJB's. When I attempt
    to recreate the Web Service in Java Studio Enterprise 7 (had same problem versions 5 and 6) I have trouble. When I execute the "Generate Web Service Files" command I get complilation errors in the <webservice_name>.java file. It is obvious that the
    protected Map theJNDIMap = makeJNDIMap();
    protected Map makeJNDIMap() {
         Map m = new HashMap();
         // This map might get changed at deployment time
         m.put(......
    is all screwed up. Entries are missing and the closing bracket isn't even there.
    Is there some user error on my part?
    Is this a know bug (I couldn't any info. and I get the same behavior on the current and older versions of Studio)?
    Is there a workaround? I can fix this particular java file and compile it sucessfully. However, I'm still missing many of the other web service files that should be generated for me.
    All the tutorials on web services that I've done to looked over all get there business method from 1 EJB :(
    Please advise,
    Freda Phelps

    I had a problem too. Successfully created an EJB and its test application. Tested the same using Web client and works fine. Now created a web service from EJB methods. It created the skeletons. When tried creating Web Svc test client or web svc other files..it gives me an exception saying xmlservices.jar doesnt exist in the C:\Docs and Settings\<$username>\.jstudio\Ent04Q4modules. I have searched for this file and copied (overwritten) it into this directory. But still i cant proceed further.

  • Why java does not force to declare atleast one abstract method

    hi,
    i can define an abstract class without declaring any abstract method in that class. But why wud i do this ? i mean when i have decided that a particular class should be inherited by other subclass and subclass should porvide implementation then there should be atleast one method in the abstract super class which requires implementation.
    All i want to know is why java does not force to declare atleast one abstract method in abstract class.
    there may be some situations where this restriction can create problem if it is like that then can anybody give some example.
    manish

    hi,
    i didn't get u.
    u r trying to say that i have an abstract class with
    only static methods then my questions is why wud
    declare such a class as 'abstract' class? because a
    static method can't be abstract also. Even then if
    somebody want to define such a class with only static
    methods then compiler should force him to declare
    atleast one abstract method which can be implemented
    by subclass, because as i said before if sumbody
    decide to define a class abstract then he wants that
    it should be inhereted but as u r saying a class with
    only static methods then it should not be an abstract
    class it can be a simple class.there's no functional reason, really... actually, factory-like classes are often defined the way Ceci described
    "abstract" only ensures that nobody can ever get an instance of that class (as a matter of fact, what would be the point of getting an instance, if no instance method exists ?)

  • Why should we not declare Class with protected modifier ?

    Why should we not declare Class with protected modifier ?

    jwenting wrote:
    georgemc wrote:
    Why we not research our endless questions?how else could you reach 14000 posts in under 3 years, a true achievement :) Congratulations.Ah, that reminds me. It was a long time ago since I posted some stats:
    Posts:
    jverd                        46427   2972   0,06
    DrClap                       36310   5222   0,14
    jschell                      32357   2583   0,08
    CeciNEstPasUnProgrammeur     31500   1438   0,05
    camickr                      29870   4783   0,16
    yawmark                      28729   1803   0,06
    kajbj                        24180   1829   0,08
    BalusC                       22857   2875   0,13
    warnerja                     21886   2188   0,10
    ejp                          19929   3247   0,16
    sabre150                     17537   1913   0,11
    paulcw                       16005   1724   0,11
    DrLaszloJamf                 14857   1840   0,12
    georgemc                     14000    889   0,06
    prometheuzz                  13466   1180   0,09
    cotton.m                     13409   1308   0,10
    ChuckBing                    12667   1735   0,14
    JosAH                        11926    842   0,07
    flounder                     11607   1201   0,10
    mlk                          10795    886   0,08
    Darryl.Burke                 10564   1787   0,17
    Encephalopathic              10203   1508   0,15
    tjacobs01                     9540   1658   0,17
    BigDaddyLoveHandles           8980    763   0,08
    dcminter                      8081    533   0,07
    tsith                         8049    704   0,09
    jwenting                      7831    249   0,03
    malcolmmc                     7539    819   0,11
    Michael_Dunn                  7392   2088   0,28
    PhHein                        7360   1207   0,16
    morgalr                       7081    703   0,10
    pbrockway2                    6471   1208   0,19
    BIJ001                        6179    322   0,05
    JoachimSauer                  5824    604   0,10
    abillconsl                    5777    943   0,16
    corlettk                      5671    544   0,10
    TuringPest                    5651    444   0,08
    masijade.                     5396    434   0,08
    YoGee                         4695    530   0,11
    gimbal2                       3642    315   0,09
    uncle_alice                   3496   1009   0,29
    bshannon                      3427    614   0,18
    tschodt                       3236    280   0,09
    sjasja                        3193    459   0,14
    SoulTech2012                  3005    109   0,04
    Peter__Lawrey                 2847    254   0,09
    Torgil                        2175    358   0,16
    Navy_Coder                    2119    648   0,31
    rukbat                        1951    252   0,13
    java_2006                     1913   1123   0,59
    baftos                        1808    665   0,37
    es5f2000                      1718    192   0,11
    AndrewThompson64              1716    973   0,57
    YAT_Archivist                 1713    230   0,13
    Aknibbs                       1693     86   0,05
    drvijayy2k2                   1574    266   0,17
    StanislavL                    1396   1117   0,80
    stefan.schulz                 1159    208   0,18
    JayDS                         1100    410   0,37
    dannyyates                    1094    211   0,19
    Joerg22                       1046     48   0,05
    uj_                           1033     49   0,05

  • Should I declare IllegalArgumentException in my method declaration

    Hi,
    I have a setter method which throws an IllegalArgumentException which is of type RuntimeException... It means that I need not declare it in my method declaration, but I should explicity describe in Javadoc.
    Is it a good practice to declare it in throws clause just to make it more readable? or is it superfluous and unnecessary because I am going to describe it in Javadoc anyway?
    I mean....
      * @throws IllegalArgumentException
    public void setterMethod() {
    vs
      * @throws IllegalArgumentException
    public void setterMethod() throws IllegalArgumentException {
    }Thank you,
    Srikanth

    I have a setter method which throws an
    IllegalArgumentException which is of type
    RuntimeException... It means that I need not declare
    it in my method declaration, but I should explicity
    describe in Javadoc.If you conclude that it is important that the other programmers know in which situation your method throws an IllegalArgumentException then go ahead and describe it in javadoc. If you think that it's not important, or it's not necessary, you don't need to describe it. But in general, the unchecked exception IllegalArgumentException, if it is used according to its purposes, deserves a javadoc description. Although I think you are not using this exception appropriately, because your method doesn't even have a parameter! I hope you are showing just an example, just to support your question.
    Is it a good practice to declare it in throws clause
    just to make it more readable? or is it superfluous
    and unnecessary because I am going to describe it in
    Javadoc anyway?No! It does not make it more readable. IllegalArgumentException is an unchecked exception, so you have to take advantage of this "uncheackability", that is, the advantage of not being needed to declare that the method throws it. In any case, you shouldn't declare the throws clause for any kind of unchecked exception. A description in javadoc is enough. But I see that you're just saying that the method can throw IllegalArgumentException, in the javadoc. Why don't you give more details? It is a good practice. See below an example:
      * @throws IllegalArgumentException if the parameter name passed is null,
      * or if it is equal to "".
    public void setterMethod(String name) {
    }

  • Business Method API - Javascript Array not saving

    Hello.  I am building a business method that stores a list of URLs in an array.  I followed the sample documentation for "using_arrays" at https://streamwork.com/api/methods/com.streamwork.using_arrays.zip.
    The insert, update, delete calls work while my method is on screen.  However, nothing seems to save.  As soon as I switch to a different activity and back, my method returns to its initial state.
    Here are my handlers:
    var handlers = {
        data_inserted: function(data) {
          arrSAPLaunch.push(data);
          RenderTable();
        data_updated: function(data) {
          for(i=0;i<arrSAPLaunch.length;i++) {
            if(arrSAPLaunch<i>.id==data.id) {
              arrSAPLaunch<i> = data;
              break;
          RenderTable();
        data_deleted: function(data) {
          for(i=0;i<arrSAPLaunch.length;i++) {
            if(arrSAPLaunch<i>.id==data.id) {
              arrSAPLaunch.splice(i,1);
              break;
          RenderTable();
        // RUNS ONCE THE MODULE IS LOADED
        started: function()     {
          BuildSAPLiterals();
          RenderControl(Control_Area, initialData.myData);
    ... and here are my calls....
    handlers.clientChannel.publish({type: "delete_array_item", data: {path: "arrSAPLaunch", id: arrSAPLaunch<b>.id }});
    handlers.clientChannel.publish({type: "insert_array_item", data:{path: "arrSAPLaunch", value: GetLaunchItem()}});
    handlers.clientChannel.publish({type: "update_array_item", data: {path: "arrSAPLaunch",id: arrSAPLaunch[vIndex].id, value: GetLaunchItem()}});
    ... where GetLaunchItem is a function that returns a javascript object with three properties.
    Any idea why this code is not saving to the SAP Streamwork server?
    Glen

    I changed the calls to use the array named in the initialData object (originally specified in the bundle.xml file).  It appears that this is one way to declare the persistent array to the Streamwork system (there may be others but I did not see this in documentation).
    handlers.clientChannel.publish({type: "delete_array_item", data: {path: "arrSAP", id: arrSAPLaunch<b>.id }});
    handlers.clientChannel.publish({type: "insert_array_item", data:{path: "arrSAP", value: GetLaunchItem()}});
    handlers.clientChannel.publish({type: "update_array_item", data: {path: "arrSAP",id: arrSAPLaunch[vIndex].id, value: GetLaunchItem()}});
    Glen.

Maybe you are looking for

  • RFC destination for Sender System  in R/3 4.6c

    Hi All, I am trying create a RFC destination in R/3 4.6 system which will be used as sender RFC communication channel in Xi scenario. However i dont seem to have all the options such as activation type,gateway host and service which used to be there

  • Logical database :-prevention of selection screen

    when i use logical database and i use the statment get DBTAB, i am prompted with a selection screen,is it possible to supress this selection screen and supply some value.

  • Lookign for solution send mail with digital signature or send to Exchange

    Hello! Id need to find solution to send generated mail in database to outside and add digital signature to everyone 1 - maybe using mapi protocol to connect to exchange and send 2 - send by smtp but first need add digital signature to mail any soluti

  • [SOLVED] Clonning window in extended desktop configuration

    Hello, Does anyone know whether it is possible to clone a window in a extended desktop configuration running two monitors? I would like something like cloning the displays, but not for the entire screen, just for the windows that I want. Something li

  • Details about OBYC

    Dear All,                  1. I want to know about the transaction code OBYC & OMWB                  2. what is a Transaction Key and what is the relation between transaction key and Valuatin class                  3. what is the t.code to know the a