Rendering cfgrid through js

i have a html cfgrid that should be populated by a cfc
to the cfc i'm passing 4 column names and a string (as form field values)
this works fine with a cfinvoke, when page loads first. but now i want to be able to pass different values to cfc and reload my grid with the new values.
i've created a proxy <cfajaxproxy cfc="repfunc" jsclassname="rproxy" />
created a js function:
function srcCxReqs(srcReqs,f1,f2,f3,f4) {
         var instance = new rproxy();
         instance.srcCxReqs(srcReqs,f1,f2,f3,f4);
         ColdFusion.Grid.refresh('testgrid');
created a button that collects (correctly) the values to pass and calls the js function:
<button name="getReqs" onClick="srcCxReqs(getElementById('srcReqs').value, getElementById('f1').options[f1.selectedIndex].value, getElementById('f2').options[f2.selectedIndex].value, getElementById('f3').options[f3.selectedIndex].value, getElementById('f4').options[f4.selectedIndex].value)">
<cfgrid name="testgrid" format="html" query="cxReqs"></cfgrid>
but when i try it, get "Exception thrown and not caught, cfajax.js, Code:0
i'm not even sure the cfajaxproxy is the right way to do it.
does anybody have a working example of a cfgrid being renedered again by a js function?
thanks

getting desperate, at this point i would settle even for "how to reload a cfgrid by clicking on a button"
even this throws an "object does not support this property or method"
<cfajaxproxy cfc="repfunc" jsclassname="rproxy" />
function refreshGrid() {
        var instance = new rproxy();
        myGrid=ColdFusion.getGridObject('testgrid');
        myGrid.getStore();
        ColdFusion.Grid.refresh('testgrid');
<input type="button" name="getReqs" value="Refresh"  onClick="refreshGrid()">
<cfgrid name="testgrid" format="html" query="cxReqs"></cfgrid>
thanks for any help

Similar Messages

  • Error in rendering maps through mapviewer in obiee

    Hi
    I am trying to integrate mapviewer with OBIEE, when i connect to the datasource from the mapviewer, and try to click on any of the demo Oracle maps, I am getting an error saying that...." Cannot get map cache instance config information for MVDEMO.DEMO_MAP."
    When check in the start OC4J its showing " ERROR Not found in MDSYS.CS_SRS: srid=8307, Warning Invalid cache root directory :/scrtrach/mvdemomaps"
    This "/scratch/mvdemomaps" path is there in USER_SDO_CACHED_MAPS_TABLE under DEFINITION column in MDSYS Schema in the database. whereas this root directory path is different in the Oracle application server Mapviewer --->Mangement-->Managing Map Tile Layers--->DEMO_MAP-->Tile storage-->" *C:\OracleBI\oc4j_bi\j2ee\home\applications\mapviewer\web\tilecache\MVDEMO.DEMO_MAP*
    My doubt is whether this both path (in the mapviewer and in the database) should be the same. Because i am unable to render any of the demo maps.
    Can somebody please throw some light on it.
    Thanks

    Does it have to be a software only installation since it is on AIX?
    From the install doc:
    The Software Only Install type installs the Oracle Business Intelligence software binary files in an Oracle home for later configuration as part of a Fusion Middleware deployment. This install type is required to install Oracle Business Intelligence on an AIX operating system or with a 64-bit JVM, such as on a supported 64-bit operating system.

  • Premiere Pro CC 2014 Stalls Midway Through Render

    I've recently added the CC 2014 suite to my computer, and for the most part it's good and solid.  However, whenever I try to output a file from Premiere Pro CC 2014, either as a direct export or via Media Encoder, the program simply stops rendering midway through the process.  It doesn't actually freeze up or fail to respond, as I can easily stop the render altogether without having to resort to task manager.  It simply stops as any random point and then the estimated render time begins to climb, and it doesn't stop climbing.  It doesn't matter what settings I use, custom or preset, MOV, MP4, AVI...h.264, mpeg...codec or container does not matter.  The results are the same.  I even tried changing the Preview File Format, nothing different there either.  Tried a complete uninstall/re-install (made sure to use the cleaner tool).  No luck.
    As someone who relies pretty heavily on NLE's to cover his freelance work, this is pretty disconcerting.  For now, my only fix was to step back to the previous version of CC, but I don't view that as a long term solution.  Anyone have any ideas?
    For clarity, here are my system specs:
    Motherboard: Asus Z97-Pro
    CPU:  Intel i7 4790k (with Corsair H110 Liquid Cooler)
    RAM: G.Skill Ares series 1866 - 32GB
    GPU: EVGA GTX 780 - 3GB
    Primary Drive: Intel 335 Series SSD - 240GB

    You say it stops at random points every time. Are they really random, or is it at the same general area on your timeline? There may be a piece of media there that is preventing it from finishing. This has happened to us several times throughout our editing process for our documentary and it is almost always a image file that causes this issue. Generally replacing it or converting it to another format will help in our case.

  • QTs are washed out when rendered.

    HI there
    I'm rendering out through AE (v12) and through numerous codecs - animation,H264, ApplePro, tiffs, etc.... - and all QTs look washed out when compared to the AE project. Does anyone have a solution or know the cause of this? (OSX 10.8.4 & GeForce GT650M)
    Any help appreciated.
    E

    Tiffs and Targa sequences still seem to drop less so.
    When importing the rendered QTs back into AE they appear less washed out/desaturated within the viewer than they do with the QT player. Obviously one or the other is causing the main problem, but both seem to be playing a part.

  • CS5 renders 24p HDV as alternating lines?

    I'm having issues rendering HDV 1080p24 sequences containing Sony V1U 1080i 24pSCNA footage. If I render a timeline preview or render out a sequence through Adobe Media Encoder the rendered footage looks pixelated as contrasting detail flickers/shimmers. It looks exactly like Premiere Pro is rendering each frame by alternating between fields. I have tried turning on Maximum Render Quality and Maximum Bit Depth in both the sequences and Adobe Media Encoder, as well as changing the 24p Conversion Method in Playback Settings, to no avail.
    The original footage Premiere captured from tape looks perfectly fine when played back in a third-party media player. Aside from some tearing on movement it also looks fine played back in Premiere using the Mercury engine accelerated by an NVIDIA GTX 470. The issue only occurs when a preview is rendered or the sequence is rendered out through AME (even when previews have not been generated or used for AME's rendering).
    I've checked the interpret footage dialog, but there doesn't appear to be any useful options. Changing the footage's framerate to 23.976 merely slows down the footage, so PPro must be performing reverse pulldown on the fly in the sequence.

    No, I'm editing in an HDV 1080p24 sequence. I wanted to edit and export as 23.976p, so that's why I chose that preset.
    According to the preset's description, it is "For editing with IEEE1394 (FireWire/i.LINK) HDV equipment. 16:9 progressive-scan 1080p HD video at 23.976 frames per second. 48kHz audio."

  • Kde vs i3wm font rendering

    Hi all,
    I am migrating from KDE to i3wm. I see a huge difference in the rendering of the fonts between kde font rendering and i3wm font rendering.
    I would like to know how I can get i3wm to render fonts correctly.

    litemotiv wrote:
    KDE overrides font rendering rules through it's preferences panel (System Settings > Appearance > Fonts), this should be a matter of finding out what tweaks you have made there and apply them to fontconfig manually.
    Everything you need to know about font configuration should be available in the wiki. If you have questions about specific details it is fine to ask them here, but something like "how I can get i3wm to render fonts correctly" will only solicit generic responses obviously.
    Start here: https://wiki.archlinux.org/index.php/Font_Configuration
    Tip: many people prefer Infinality for their advanced font tweaking needs.
    I noticed that KDE changes ~/.fonts.conf contents based on the changes made in 'system settings'. Since this file (even though deprecated) is used by fontconfig, it should cause the same rendering in other WMs as well.

  • Photoshop Motion Workspace. Rendering videos.

    This is probably a pretty simple one but I'm not a video editor.
    Ive played round with the photoshop motion editor CC and the result is about a forty something MB file in psd format before rendering out through Adobe Media Encoder.
    File/Export/Render to video gives me enormous file sizes on a two minute test video.
    For example, (sorry the insert image seems to be greyed out in this forum so no screenshots)
    H246, Low Quality, 1920x1080, 28.126fps, aspect + Document (1.0) gives me a 121MB file
    I've tried every combination varying the H246/Quicktime, image size, quality, mobile phone and tablets presets and the smallest file size Ive seen to date is 14MB ... on the two minute video.
    There must be a way of getting rendered file sizes down to a few MB for you tube uploads and playing on phones and tablets and emailing? I was expecting to be able to dial in the videos physical pixel dimensions and file size, like one can when working with still images.
    Can anyone tell me what I am missing?
    Thanks

    The presets for photoshop using h.264 encoded video's use quicktime for compressing the video. So you might find better codecs for quicktime from apple's site.
    That said, I believe that the media encoder has a larger variety of formats and codecs with it. I was told though that the media encoder has some of it formats and codecs locked to certain adobe apps. In other words you need to have access to those apps on your system for those formats and codecs to be available to you.
    The presets in media encoder will set some of the options for you like the frames per second and resolution. But just because you use a preset, does not mean you can not alter its settings.
    All the compression for an mpeg movie does is looks at it color values and sees what it can throw out. It then will try to match as many frames as possible throwing out duplicates. At some point the file can not be compressed any more. Or I should say without degrading the video to a point where it is noticeable to the viewer. WMV files are well known for going to far. Some videos you can not make out what is in the clip.
    There is one more alternative for compressing file time, reducing the over all play time, by clipping out portions of the video.
    So It boils down to how do you want to compromise to get that file size down. Compress more until jpeg artifacts start showing up, reduce resolution(SD is probably as low as I would go for web, but for phones, go lower) , reduce frames per seconds (15fps for web 10-12fps for phones), or clip the video(where ever you can loose valuable footage).
    What ever you choose, it must be done on a copy, as all of this is destructive. In that once done no way to get it back. Keep all originals in full quality, uncompressed, unedited form if possible.
    Also keep in mind h264 is an mpeg format and is a lossy format which means it needs to be the final format for sharing as opening and saving degrades the quality.

  • Boot Camp- running PC rendering programs

    I have just gotten a 17" intel imac, and needed to run some PC rendering programs through it. Dreading the thought that I might have to get a PC as well to be able to use these programs, I'm wondering if anyone has had any luck through Boot Camp in this regard. The programs I am interested in are Solid Works and Studio Tools 13, so if you could give me some good news as to wether it is possible, I'd be over the moon.

    Oops, I hope I didn't sound offensive, or rude. The curt reply was short and to the point for: I ran a search for Solid Works Too, also Virtual Gibbs, nada, zippo. Probably because no one who read the post has tried installing that software yet.
    This is a brand new cutting edge, and newsworthy event, a milestone. Windows on a Mac, black Friday, or Sunny Sunday? So it may be time to get your feet wet, step up to the plate, and be the testbed for the software you want to run.
    I'm waiting for the full release with Leopard, hopefully Vista will be out by then, but I doubt we will ever see that;-) I just don't like beta releases, let other people who know more than me be the testbed for beta's.
    And then I'll probably have to be the testbed for Virtual Gibbs, it' almost as bad as having to go to the dentist. LOL. But I'm anxious to try, it can't hurt all that bad, if it runs, it runs, if it doesn't, it doesn't, if it crashes, that's windows.
    20" iMac core duo   Mac OS X (10.4.6)   1gig ddr2 1gig eMac G4 iPod Mini

  • Extremely slow rendering. i5, 6gb RAM, CS6 PRO

    Hi guys!
    So I got really tired of insanely long render times. I usually use 1-2 video tracks, no keying, no special effects, commonly use Warp Stabilizer, Cineon Converter and PRO Camp, of course some colour correction (usually RGB curves, but sometimes a three way). Usually it ends up being about 3-4 tracks. On last project it took 2 hours to render a two minute video. Below i'll post info on that.
    And today its taking about 12 hours to render a 40 minute video.( I am frustrated and sad of this(
    My usual composition layout:
    Titles
    adjustment layer
    video 2 (rare)
    video 1
    sound one
    sound two
    sound three (rarely)
    My laptop^
    i5 2n gen 2.5-3.2Ghz dual core (4 logical cores)javascript:;
    6GB Ram 1333 MHz
    GT 525M 1GB (i've enabled CUDA GPU acceleration. works like a charm on all 96 little silicon cylinders.)
    540rpm 640 GB, practically empty (Partition D)
    Use Canon for video recording, so it is UP TO fullHD .mov files. Usually FHD @ 70-100MB/s (canon's standart) Screenshots were taken at the moment of rendering (70% through)
    My export settings are:
    .h264
    FullHD
    29.97FPS/30FPS
    VBR Pass 2
    Target bit rate 8-10 mbs
    max - 15-20
    "Use Max rendering quality + use max bit depth"
    Can someone point out my idiocity? Please let me know what shoud I do to avoid this.
    PS, 8 core MacPro or an 8 core i7 extreeme, are neither an option here(... just sain'
    English is not my native, so sorry for mistakes.
    Thanks in advance!

    Thanks mate!
    I kinda knew all of what you said, but i guess now i am more sure of suckingness of my machine... funny thing is, load goes up to 90% maybe three times during a render and it stays loaded for a short periodof time... i loogged one of my renders back when i had Win7 x64 (ultimate) (same machine) and it showed that neither of devices were loaded more than 90%
    it was something like this:
    CPU <92%
    GPU <95% (exception)
    disk <30%
    memory <50-65%
    I know that with VBR 2 there are 2 passes, thus twice as long in render... but god damn, almost 2 hours for a 2 minute video??? its awful. and all of those procesess take up less than 7% for all of them. Finally, since i got only 6 GB of physical memory, my adobe is able to only use 4gb. so there is nothing bad.. I've never had any issues with such low RAM. If i had an i7, then yes, i'd need about 12-16 gb to get the most, even though, its the, SATA to Hard drive that bottlenecks the stuff. I wish I could get an SSD, but they are hellishly expensive. i got my drive thru sata3, but still, the drive is kinda sad and broken (old) so this is why i must be getting such low speeds... even when i copy info using USB3<-->USB3 device, the speed never goes over 20MBs for downloading and 5MB to uploading to a USB device.
    PS... sucks to wotk an a low end machine.

  • How to personalize and set rendered property false to poplist

    HI,
    could u please tell me that How to personalize and set rendered property false to poplist
    when poplist was developed initially it's user personalization property set as FALSE, that is why when i tried to personalize and set rendered property as flase, i could not able to find the property as rendered for that perticular item.
    Please provide me step by step process.
    Thanks,
    Ram.

    Hi Ram,
    you can do set rendered false through personalization as well as co extension.
    if you go for persoalization set the profile option Personalize Self Service Definitions and clik on personaliztion link
    then search for item and set its rendered property to false.
    If you go for co extension capture the poplist bean and and setRendered(false) to that field.
    If you are feeling difficulty by personalizatoin better go for CO extension.
    Thanks
    Amit Jaitly

  • SPEL? make REASON field required if user has changed the value in SALARY

    I have a requirement to make REASON field required if user has changed the value in SALARY field. Is it possible using spel? what are my options?

    Karan,
    You can change the Rendered Property through personalization.
    But in your requirement you need to attach the Spell through personalization & extend the existing CO to set the value of the SPELL based upon the condition.
    Note - Refer this thread http://forums.oracle.com/forums/thread.jspa?threadID=2176729&tstart=0. If you have worked on SSHRParams kindly help the user.
    Regards,
    Gyan

  • Quicktime is 'choppy' when playing MP4's

    I just recently purchased an HD camcorder and am having trouble playing an MP4 file in Quicktime. Windows Media player wont play the format at all and while I have no problem using Quicktime (I actually like the player better) the playback is 'choppy' and 'jerky'. I have no problem with audio only the video.....and while the picture is sharp and clear, it almost appears to 'skip' if that makes any sense. Any help or suggestions would be appreciated......I want to enjoy my camera. Thanks!!!

    I have used quicktime for mp4 play and some mov for about a year. I use mp4 to make large vid files more managable by my system. I prefer wmv when the files are smaller, I think I just trust wmv more for some reason. I never saw a problem with mp4 play on my QT until I recently bought a FlipUltraHD and pulled the mp4s off that. Raw form they would play choppy on the QT player. However, if I render the same file through my Sony Vegas Pro 9.0 editing software it plays fine on QT, I can even render it to wmv if I wanna be safe. Really, I feel wmv is 1% crisper, anybody feel the same? So remember, try rendering it through a good program and then playing it on QT again to see if it chops.
    Alex Grim

  • Timed out issue in jsp page!

    Dears,
    It is really amazing for me to see this issue in my application which I deployed in Oracle Application Server 10g r2.
    I am using JDeveloper 10g to create jsp pages.
    On one jsp page i am displaying 15 html tables for a report.
    All tables have 1 query to get records from oracle 10g database.
    Am opening one connection and than one by one running queries just before each table and rendering data through ResultSet
    (which is scrollable).
    If I test this page from JDeveloper, it is displaying fine.
    But when I deploy this page in Oracle Application Server 10g,
    and create a portlet and show this jsp page in portlet and open this page,
    this page most of the time giving 'TIMED OUT', and a few times displaying report properly.
    I tried PreparedStatement to run multiple queries for Oracle DB, but couldn't make it successfully.
    BTW,
    I checked my OAS log, it shows following error:
    09/03/16 18:39:08 hrwfapp: [instance=(null), id=(null)] ERROR: Request has exceeded its warning timeout Time[elapsed=61046ms.
    Warning timeout=20000ms.] Request[id=5003532663665,3 providerId=493501 portletId=117 portletName=AttritionReports
    portletInstance=35555_ATTRITIONREPORTS_493501 user=PUBLIC] Thread[ name=AJPRequestHandler-ApplicationServerThread-6
    priority=5 alive=true interrupted=false groupName=ApplicationServerThreadGroup]
    Please help me in this regard, what should I do to avoid Timed out issue.
    Best Regards

    Hi,
    if this occurs only in combination with portlets then I would try the Oracle Portal forum for help or use customer support to help you analyzing the issue
    Frank

  • HOWTO: Use BC4J With or Without DB Triggers

    This HowTo describes how to use BC4J, database sequences and triggers
    and what are the ramifications.
    INTRODUCTION
    BC4J has the ability to work with database sequences in order to obtain a
    unique value when inserting records. BC4J also has the ability to
    work either with a 'before insert' trigger which automatically creates
    a new unique value for the primary key or without a trigger. When not using
    a database trigger, BC4J also has the ability to obtain the sequence value
    and set the primary key value.
    Before discussing the ramifications of using one approach or the other, let's
    show examples of how to use both approaches:
    BC4J & sequences WITH a database trigger
    and
    BC4J & sequences WITHOUT a database trigger
    HOWTO DEMONSTRATION STEPS
    To illustrate both scenarios a simple database setup script is provided which
    creates two tables:
    CUSTOMER_NT which DOES NOT have a before insert trigger and
    CUSTOMER_WT which DOES have a trigger.
    Database Install Script:
    <code>
    drop trigger customer_insert_trigger;
    drop table customer_wt;
    drop table customer_nt;
    drop sequence customer_wt_seq;
    drop sequence customer_nt_seq;
    create sequence customer_wt_seq start with 1;
    create sequence customer_nt_seq start with 101;
    create table customer_wt(
    id number,
    name varchar2(30),
    constraint
    customer_wt_pk
    primary key (id)
    create table customer_nt(
    id number,
    name varchar2(30),
    constraint
    customer_nt_pk
    primary key (id)
    prompt Inserting data...
    insert into customer_wt (id, name)
    values (customer_wt_seq.nextval, 'Mickey');
    insert into customer_wt (id, name)
    values (customer_wt_seq.nextval, 'Goofy');
    insert into customer_nt (id, name)
    values (customer_nt_seq.nextval, 'Daffy');
    insert into customer_nt (id, name)
    values (customer_nt_seq.nextval, 'Porky');
    commit
    prompt Creating trigger
    create trigger customer_insert_trigger
    before insert on customer_wt for each row
    begin
    select customer_wt_seq.nextval into :new.id from dual ;
    end;
    </code>
    The next step is to create the DEFAULT Entity Objects and View Objects using
    the Business Components Wizard.
    USING BC4J WITH A DATABASE TRIGGER
    Let's modify the entity object CustomerWt so it can use the database trigger.
    Edit the entity object CustomerWt by right-clicking in the navigator.
    Click on the 'Attribute Settings' tab and edit the ID attribute.
    - Uncheck 'Mandatory'checkbox. This allows you to insert without a value for the primary key
    - Check 'Refresh after Insert'. This obtains the value from the database generated by the trigger.
    - Check 'Updateable While New'. Id is only updateable when inserting.
    Click finish to complete the wizard. Save all and recompile the project.
    Now let's test our work.
    In the navigator right-click the application module and select 'Test..'. This will launch
    BC4J's built in tester. Connect to the application.
    In the tester double-click the CustomerWtView view object to run a test edit form.
    After the edit form renders, navigate through the existing records using the navigate
    buttons on the edit form. Now let's insert a record to execute the trigger.
    click on the '+' button to insert a record. Enter a value in the 'Name' field and commit the change.
    Observe that a new value has automatically been inserted into the Id field.
    That's it! You have successfully used BC4J and a database trigger.
    Now let's try it without a trigger..
    USING BC4J WITHOUT A DATABASE TRIGGER
    Now edit the entity object CustomerNT so it doesn't need a database trigger.
    Similar to before, edit the entity object CustomerNt by right-clicking in the navigator.
    Click on the 'Attribute Settings' tab and edit the ID attribute.
    - Uncheck 'Mandatory'checkbox.
    - Check 'Updateable While New'.
    An additional step is also required. The Create method will have to be modified to extract
    the value of the sequence.
    In the Edit EntityObject Wizard click the Java tab and select Create method and click Finish.
    The create method is generated in your Java fil e. In the Workspace view of the Navigator,
    expand the CustomerNt entity object in the navigator. Double-click
    CustomerNtImpl.java to open it in the Source Editor. In the Structure pane, double-click
    create(AttributeList). Modify the Create method so it looks like this:
    <code>
    public void create(AttributeList attributeList) {
    super.create(attributeList);
    SequenceImpl s = new SequenceImpl("customer_nt_seq", getDBTransaction());
    Integer next = (Integer)s.getData();
    setId(new Number(next.intValue())); }
    </code>
    Save and compile the project.
    Now test the ViewObject CustomerNtView using the tester as before.
    In the edit form of CustomerNTView click on the '+' to insert a record. Observe that
    just as before a new value has automatically been inserted in the ID field!
    TO USE A DB TRIGGER OR NOT TO USE A DB TRIGGER.
    Using a Database trigger sometimes preferable if you have non BC4J applications
    also sharing the database. In this case it is still safest to just let the database
    update it's own primary keys.
    If you don't have any other non-BC4J applications sharing the database, then not using
    a database trigger is perfectly acceptable and can have slightly better performance.
    The important thing to remember is that the option is yours to use either approach!
    null

    Thank you for the reply Jonathon. I am using a ViewObject which
    consist of several tables. I haven't tried the DB trigger
    approach but just using the BC4 approach in overriding the
    create method.
    Here is the parent class create as a part of the
    FasNameImpl.java file which does the job correctly.
    public void create(AttributeList attributeList) {
    super.create(attributeList);
    SequenceImpl l_seq = new SequenceImpl
    ("SEQ_CUSTOMER_ID",getDBTransaction());
    Integer l_next = (Integer)l_seq.getData();
    setCustomerId(new Number(l_next.intValue()));
    This is when I triedpassing the value to the child table. But I
    can't figure it out. I think the link is working fine if I had a
    ViewLink deployed but it doesn't look like it's doing the job
    for ViewObject.
    I am trying to call the childclass.method
    (FasCustomer.setCustomerId(l_next);
    But I am getting error.
    Thanks a lot for your suggestions,
    Kamran
    703 696 1121

  • Need to Return immediately and commit the App Module on a different thread

    I have an action that I want to return fast (immediately) but the server processing takes longer than acceptable. The results of the operation don't matter to the page submitting it and I want it to be able to navigate away even if the operation is not complete. I want to either be able to send a non-blocking server event from the browser or on the server side start a new thread that performs the operation allowing the original thread to return immediately. The new thread would need access to an Application Module in order to commit data. How would I go about accomplishing this?
    Some thoughts
    I've tried creating a ConcurrentLinkedQueue and putting the DataControl on the que, then in the other thread I pull it off the que, process and commit the data. This works unless the page is navigated away from. Then calling dc.getApplicationModule(); returns null.
    I thought about using createRootApplicationModule in the new thread (since the new thread has no context) but don't know how that would work
    This is the code in the run method of the new thread. In this example, I'm adding data to the app module in the original thread and committing the data in a new thread.
    (like I said, it works most of the time.)
    Object[] req = (Object[])que.poll();
    DCDataControl dc = (DCDataControl)req[0];
    try{
    ApplicationModule am = dc.getApplicationModule();
    if (am != null){
    am.getTransaction().commit();
    } else{
    System.out.println("AM:null unable to commit ");
    } catch (Exception e){
    e.printStackTrace();
    finally{
    if (dc!= null){ dc.resetState();} // release app module
    }

    Thanks for the replies. I am aware of the inherent risks of running a separate thread within a managed container.
    The use case is a performance logging operation. We have a internal web app used by a network of franchises with over 1000 users. We log response time and performances statistics to the database. When the user clicks to navigate or commit data, the response time that the user experiences is logged after the page has fully rendered either through a PPR or a full submit. This is done by submitting ADFCustomEvent from javascript on the page after rendering is complete.. The event sends up the time difference from when the user first clicked to when the page was fully rendered. This information is then merged with logged events stored on the users Session that shows the name and response time of every query that was executed during the previous request. Depending on the page this could be up to half dozen to a dozen or more queries. The logging operation as experienced by the browser is generally fast (<200ms) but sometimes can be as long as a second or more when the database gets busy. A half second is too long as makes the app appear sluggish if the user can't type or click immediately after the page has finished rendering. The logged data is aggregated so we know exactly how much of the page load was due to a slow browser/network, how much was database time, webservice call time, etc... If it's due to a slow database we can drill down and see which query is the culprit. These performance metrics are critical to operations and are charted throughout the day so we know exactly what our users are experiencing. All of our users use a custom firefox client that we control. Using this logging framework we were able to determine that upgrading to a Firefox 4.0 based client cut browser render time by more than half a second on average. We can also tell what type of hardware the user is running so can place the blame for poor performance where appropriate. We have determined that pages render considerably faster on Windows 7 than on Windows 98 with the same hardware. We are moving the logging tables off of our exadata database to a separate box to remove that load from the application database. Since we expect the other database not to perform as well we don't want it to affect the user experience, hence the need to log asynchronously. I would like to put the data on a queue and have a background daemon process read from the queue and commit to the database. I would like the daemon thread to be able to use BC components. I would prefer not to resort to using a web service because of the inherent overhead. The logging operation is not a long operation but is of high frequency so should be as streamlined as possible. The load is spread over 6 servers with 4 JVM's each (24 weblogic instances). I know it's possible to use BC components from a plain Servlet (which runs on it's own thread) so what I want is to have something like a servlet thread that loops forever processing my logging queue.
    One other method I am investigating is using my own non-blocking ajax call that callls a servlet to perform the logging. I will need to pull out the timestamp contained within a client side ADF component along with the pages ctrl-state variable that is included with every ADF request as it uses this as the key to get to the data on the session. ADF really needs a non-blocking ADFCustomEvent for this type of request. (send and don't care about the response)
    The client component with the server listener looks like this
    <af:outputText value="#{pageFlowScope.perfClientTS}" visible="false"
    id="perfClientTSField" clientComponent="true">
    <af:serverListener type="logPerfData" method="#{perfLog.logPerfDataAction}"/>
    </af:outputText>
    The script that queues the ajax call after the page loads looks like this
    AdfCustomEvent.queue(perfClientTSField, "logPerfData", {
    typeId : typeId,
    subTypeId : subTypeId,
    responseTime1 : new String(responseTime1),
    responseTime2 : new String(responseTime2),
    openedVia: via
    true);
    I also tried calling the noResponseExpected() method on the event before queuing it but it still blocked the UI and caused an additional side effect in that the client sent two ajax requests instead of one. It somehow thought something on the client side needed to be synced with the server.
    email me and I can send a doc with more details about how our performance logging framework works.
    Edited by: Don Kleppinger on Mar 14, 2012 2:52 PM

Maybe you are looking for

  • How do I upload a website created with Muse using FileZilla?

    Hi, I created a website using Muse.  Everytime I try to upload the website through Muse, the uploading crashes.  The assets folder contains many large pdf files, so I think that is part of the problem.  I was able to upload the large pdf for the Muse

  • Lion (non-Snow) Leopard Work-Around Question.

    I have a four year old Black MacBook running Snow Leopard 10.6.3  and a Two Year Old MacBook Air running Leopard 10.5.2.  I can't find my Snow Leopard install disk.  If I download Lion to my Black MacBook, can I transfer the install package via Bluet

  • Itunes won't see ipad to sync

    Hello i'm new when i plug my ipad into my pc i get the error message this ipad cannot be used because the apple mobile device  service is not started any help with this appreciated thanks Rick

  • How to make Default the Higher-Level Manager of the employee

    Dear experts, how to make Default the Higher-Level Manager of the employee as Further Participant in performance management ? Regards, TVS

  • CS6 - cannot save due to program error

    I CAN NOT SAVE ANYTHING IN PHOTOSHOP CS6. KEEP GETTING THE MESSAGE "CAN NOT SAVE (TITLE & TYPE OF FILE) BECAUSE OF PROGRAM ERROR. THIS HAPPEND ALL OF A SUDDEN. I'VE BEEN USING THIS FOR ABOUT THREE MONTHS. THIS EVEN HAPPENS WITH OLD COMPLETEF FILES. C