How can I control the EJB's Transaction with entity bean

If I use entity bean, the Transaction is managed by container.and I want to create JDBC Connection by myselft ,not the Datasource,how is the transaction is controlled by the container,if transaction is not controlled ,how can I control it??

Hi,
If you want to control the transaction your self then you need to use javax.transaction.UserTransaction interface and methods defined by it.
Hope this helps
Vishal

Similar Messages

  • How can I control the workflow in the award the Rfx response

    HI,Experts :
       I work in SRM 7.0 ,RFx scenario .
      In  my case ,the supplier submit his RFX response according the RFX ,and the purchaser awards this response .
    There are  3 steps workflow for one type RFX response,and 4 steps workflow for another RFX Response .So ,I know I just can use the standard transaction type for the RFX Response .SO ,How can I  control the workflow in this case .
      Bestregards
      Alex

    Hi,
      If i understand your question correcly,   you have to determine the  process schema definition dynamically based on the transaction type.. then you can configure the process level ( 3 or 4 ) based the process schema definition..
    Saravanan

  • How can i control weather a custom transaction is executed

    How can i control whether a custom transaction containing delete sql statement is executed using the results of a record set?
    The custom transactions dialog does no allow me to use anything more than sql and has no conditions so i cannot control flow their.
    Triggers seem not to be able to access record sets defined on the same page and internally seem able to perform select staments but unable to return result sets.
    Please help if you can ?

    What exactly are you trying to do?
    The following partial code-snippet checks a value on a form and performs a sql select query if a condition is met, it could perform any valid sql...
    //start GWB_SetSubscribedToThread trigger
    function GWB_SetSubscribedToThread(&$tNG) {
    //Get the current values from the form
    $threadid = $tNG->getColumnValue('NbForumMessageID');
    $userid = $tNG->getColumnValue('CreatedBy');
    $subscribed = $tNG->getColumnValue('Subscribe');
    //Check current subscription
    $query = "SELECT ms_RandomKey FROM messagesubscribe WHERE ms_MessageTypeID = 1 AND ms_ThreadID = " . $threadid . " AND ms_UserID = " . $userid ;
    // This syntax doesn't work for some reason??
    //$result = $tNG->connection->execute($query);
    //This syntax does work
    $result = mysql_query($query);
    if (!$result) {
    $message = 'Invalid query: ' . mysql_error() . "\n\n";
    $message .= 'Query String: ' . $query;
    $message = nl2br($message);
    die($message);

  • How can I control the zoom on my mac mouse?

    How can I control the zoom function on my mouse? In the middle of working on things my hand will rub the mouse by accident and all of a sudden the context within the screen is large. I have no idea of how to work this feature on my mouse and most times to get it to return to normal, I have to escape out of the work I am performing.

    If you are pressing the "Control" button on the Mac keyboard, scrolling up will zoom in and scrolling down will zoom out. You can disable this if it annoys you through System Preferences > Universal Access. If you are using Mountain Lion, it would be System Preferences > Accessibility.
    Uncheck the in the "Seeing" or "Zoom" section that says "Use scroll gesture with modifier keys to zoom".  It may be slightly different if you have an older OS X version. I have Mountain Lion and am going off of memory on the older versions.

  • How can I control the volume in a Appletv movie from my remote control App. In my IPad ?.

    How can I control the volume in a Apple Tv movie from my remote control App. In my IPad ?.

    There is not now, nor has there ever been a version of flash for any iOS device.
    Adobe has abandoned mobile flash, so there never will be.
    Browsers like iswifter or photon may work for you, but don't hold your breath.
    Check app store for an app of whatever game you want.

  • How can I control the size of a cell in the GridBagLayout?

    Hi,Swing Gurus
    I am developing a swing-based program using JBulider5 enterprise.
    It seems to me that the GridBagLayout is really a hard nut!
    How can I control the size of a cell in the GridBagLayout?
    It seems that I cann't control the size of a cell directly.
    But how the size of a particular cell is determined when I switch the layout manager from XYLayout to GridBagLayout?
    Thx in advance!
    Regards,
    Justine

    hi,i have not done what you are asking but there are fields like
    COLUMNWIDTH, MINSIZE, MAXGRIDSIZE, PREFEREDSIZE to which you can set the appropriate values and test for your need.hope this helped.bye martian.

  • How can i access the EJB from a Webdynpro

    Dear all,
    How can i access the ejb , from a webdynpro?.
    Is there any way to do that?.
    I want to write the entire code (business functions) within the EJB and i wan to access the entire methods from a WebDynpro Application.This is the situation.
    Please help me to , resolve this problem.(Here im using JDBC Connection .. etc.).
    I want to do the basic connection setting's and data retrieval part within the EJB and use that within the WebDynpro..
    how can i seperate this two(i mean, i want to seperate the JDBC connections and WebDynpro,i dont want to hard code any connection parameters within the webdynpro code)
    So that i want use that saet of particular function's in many webdynpro applications..
    (i dont need any help regarding webservice way.)
    If anyone can , please help me..
    I tried that javabean class , manifest file , that way (importing javabean model).
    but im getting errors.
    I cant properly utilize that..
    So please help me with steps regarding that,,
    for javabean
    and if any , for EJB also..
    with regards
    Kishor.G

    HI,
    Since webdynpros follows Model View Controller Architecture You can access EJBs in webdynpro(views/frontend) infact to connec to database uding JDBC you have to utilise EJB ( opening connection to database closing, and other Business functionality).See this link
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/unkown/web dynpro tutorial and sample applications.faq#q-7
    <b>How to access the Car Rental Web Service?</b>
    Regards,
    RK

  • How can I control the order of playback on MuVu Mix (USB 2.

    What determines the order of playback of music files stored on the MuVu Mix (USB 2.0)? How can I control the order?
    Apparently it is not name order. The music titles are prefixed by sequential numbers. But that is not the order that the files play back.
    I tried erasing all contents, then copying the files one by one to the MuVo Mix in the order that I want them to play back (name order). But that is not the order that the files play back.
    By the way, in both case, I removed the ".dat" file first. (I also tried keeping the ".dat" file, to no avail.)

    SSR wrote:
    > on the newer MuVos (which I would have thought included the Mix)
    > it's filename order. Other than that it's hard to know, but it sounds
    > like you ought to contact Support to check.
    I did, and they confirmed (very quickly; kudos!) what you and I both expect: the play order is determined by the alphabetical order of the file names. The mistake was mine. I ass-u-me-d that the MSWin folder "Name ^" order was correct. I did not realize that it is not exactly alphabetical when the file name begins with a number (e.g, the track number). I had renumbered songs from a second CD by simply adding 00 to the track number. Thus, songs and 2 of the first CD are played after songs 08 and 09 of the second CD, as they should alphabetically, even though they appear in the order , 2, 08, 09 in the "Name ^" list. Klunk! Mea cupla!

  • How can I control the direction of  Panel Page  menuTabs (menu1) ?

    Hi all,
    in ADF FACES - JDeveloper 10.1.3
    how can I control the direction of Panel Page menuTabs (menu1) either from left to right or right to left ?
    regards,

    In the adf-faces-config.xml file you can add a right-to-left tag.
    (Right click on the structure window and choose insert inside...)

  • How can i control the timings of my slideshow using iphoto on my ipad

    Q: 1 how can i control the timings of my pupil's slideshows using iPhoto on the iPad?
    Q: 2 then how can i export them?
    Q: 3 how can i combine them from 8 individual slideshows to 1 for showing to their parents at an assembly?
    many thanks in anticipation of your collective help
    brian

    Here's my take on the same thing:
    Short answer: the dpi is set when you decide what size you're printing at.
    Long Answer: Dpi means nothing in the digital world of your computer. There are no "inches" to have "dots per..." Size is measured in pixels. That's the same on your camera. It doesn't take 10 x 8 or 6 x 4 shots. It takes shots measured in megapixels. For instance 4,000 x 3,000 is a 12 megapixel camera.
    Using that example, that shot from that camera has 12 million pixels. So that's how many "Dots" there are. To decide the ratio of dots per inch, you now need to decide the "inches" part. And that's printing. Print at 10 x 8 and the dpi will be 4,000/10 or about 400 dpi. At 6 x 4 then it's 4,000/6 or 660 dpi. Work the other way: Print at 300 dpi and the resulting image will be about 13 inches on the longer side.
    So, your photo as a fixed number of pixels. Changing the dimensions of the print will vary the dpi, changing the dpi will vary the dimensions of the print.
    For more see http://www.rideau-info.com/photos/mythdpi.html
    Regards
    TD

  • How can I control the size of the af:InputText?

    Hi,
    How can I control the size of the 'af:InputText' on the UI, without using columns & rows attributes. Even though I am using width & height attributes, the changes are not getting reflected in the UI.
    Thanks,
    Rajesh.

    Hi,
    It is inside a 'af:PanelBox'. So, the parent container also determines the size of the child? Here I need a create a 'pidgin chat window' kind of an interface with a fixed size top-level container, inside which I willl put all my components. The code looks something like this:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1" partialTriggers="it1">
    <af:messages id="m4"/>
    <af:form id="f1" partialTriggers="it1">
    <af:panelBox text="" id="pb1" background="dark" type="stretch"
    titleHalign="start" ramp="highlight"
    inlineStyle="width:350pt; height:500pt; margin:0.5pt; padding:0.5pt; border-width:0.5pt; "
    partialTriggers="it1">
    <af:spacer height="15pt" id="s1"/>
    <af:inputText id="ot1"
    columns="82" rows="25" wrap="hard"
    partialTriggers="it1"
    value="#{ChatClientBean.chatLog}"
    binding="#{ChatClientBean.outputChatTextBox}"
    visible="false">
    </af:inputText>
    <af:spacer height="27pt"/>
    <af:inputText id="it1" inlineStyle="width:200pt; height:100pt;"
    valueChangeListener="#{sessionScope.ChatClientBean.sendMessage}"
    autoSubmit="true" partialTriggers="it1"
    binding="#{ChatClientBean.inputChatText}"/>
    </af:panelBox>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    Thanks,
    Rajesh.

  • Since I upgraded to IOS5, my Smart Playlists are in a random order. Since I use it for listening to Talking Books this makes it useless. How can I control the order of a Smart Playlist?

    Since I upgraded to IOS5, my Smart Playlists are in a random order. Since I use it for listening to Talking Books this makes it useless. How can I control the order of a Smart Playlist?

    It may be best to recreate the folder and the smart playlists from scratch.
    tt2

  • How can I control the list of cipher suites offered in the SSL Client Hello message? I want to forbid MD5 and RC4.

    How can I control the list of cipher suites offered in the SSL Client Hello message?
    I want to limit my browser to negotiating strong cipher suites. I'd like to forbid DES, MD5 and RC4.

    Set the related SSL3 prefs to false on the about:config page (Filter: security.ssl3.).
    *http://kb.mozillazine.org/about:config

  • How can I control the order of iDVD menu items using the Arrow keys?

    I have a submenu screen containing 10 selectable buttons plus the Return Arrow button.  I have ordered all the slideshows in the correct order in the DVD map.  However, when I run the program, the arrow keys jump the selection focus in an apparently random sequence.  How can I control the order of the selection focus?
    I'm using iDVD v 7.1.2
    TIA.
    Ron

    Hi
    There is one thing You might miss in iDVD - So do I - the ability to re-arrange in the DVD map (block diagram)
    The order things will be pplayed or addrssed is same as the order each item is introduced into iDVD.
    To my knowledge ther is no way around this.
    Yours Bengt W

  • How can I control the Product Category in the Pre-select screen

    Dear ,my expert :
       I  work in ROS scenario . In my case ,the supplier can select Product Category A, Product Category B,and Product Category C when they  filled the data in the  registration scren . And the purchaser A just is responsibility for the Product Category A ,and the purchaser B ,C are the same situation .
      So ,my question is :
       1,How can I control the Product Category in the Pre-select screen? I mean that the Purchaser A can just select the   Product Category A in the Pre-select screen .
       2,You know the supplier select two category  is one BP in the system ,So if the purchaser A accepe the supplier ,the purchaser B will find the status is "accepted ",So the purchaser B will be confused about it .
       SO ,in my case ,any one has the suggestions ,any link welcome .
       Bestregards
      alex

    Hi Alex,
    As per standard SRM solution, this is not supported. Purchasers who accept new suppliers, accept them on the whole and not for any specific product category. There is no such thing as Purchaser being responsible for specific prod category in ROS.
    What you could do however is to build a custom workflow to achieve it. You could have category approvers after the purchaser has accepted the supplier. Based on the category provided by the supplier in the reg form, you could route these suppliers to appropriate category approvers.
    Regards,
    Nikhil

Maybe you are looking for

  • New Imports to iPhoto Are Saving to My External Hard Drive

    Recently purchased a Buffalo NAS 2TB external hard drive. I didn't realize at the time of purchase that Apple doesn't support NAS drives; although, I did find ChronoSync software that would allow me to back up my iMac to the Buffalo hard drive. After

  • Bundling all java,html and even images in a jar file

    Hi All, When i bundle all my application .java files in a jar along with manifest i give something as, jar -cvf Name.jar manifest.txt *.classMy question is if i want to bundle even couple of HTML and even some images like(jpg,png..etc)..How should i

  • How do u make FCP remember to keep motion parameters in the viewer exposed?

    Hi, At work I have a computer running FCP 6. When I open, say, the Crop parameter of a certain clip in the Motion tab of the Viewer, then leave the viewer to do something else, when I come back to my clip's Motion tab, the Crop settings are exposed (

  • French Langauge Problem In 10g Forms

    Hi All Experts, Earlier we had migrated our application to oracle 10g from 6i. Now the client is not able to type french characters on the form for examle when we use Ctrl+Comma+c on M.S word file this character (ç) prints on the file.But when we use

  • ALv + Group Lines

    Hi...Good Day... See next.. I have.. 1000  xxxx  yyyyy 1000  zzzz  ccccc 1000  vvvvv   rrrrrrrr 2000  www   ttttttt 2000  hhhh   oooo Can i do this in alv ??? 1000  xxxx  yyyyy          zzzz  ccccc          vvvvv   rrrrrrrr 2000  www   ttttttt