Disable autocommit for CMP

Hi,
I was trying to deply a very simple CMP on to oc4j the latest version. My database/datasource is mySQL,
I've got this kind of problem when I was creating an instance by calling create() method:
javax.ejb.EJBException: Error creating EntityBean: Can't call commit when autocommit=true
     at UserLocalHome_EntityHomeWrapper7.create(UserLocalHome_EntityHomeWrapper7.java:651)
     at com.mymcsb.GfKcb2.master.ejb.session.AddUserSessionEJBBean.addUser(AddUserSessionEJBBean.java:39)
     at AddUserSessionEJB_StatelessSessionBeanWrapper2.addUser(AddUserSessionEJB_StatelessSessionBeanWrapper2.java:100)
     at master.doAddUser._jspService(doAddUser.jsp:29)
     at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:724)
     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:309)
     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
     at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
     at java.lang.Thread.run(Thread.java:484)
I know this has something to do with autocommit. But I've searched a lot of documents on how to disable jdbc auto-commit feature of the jdbc drivers while at the same time using CMP in my applicaiton. Could anyone tell me how can this be achieved?
I think it is dificult because when using CMP, you don't have direct access to the connection - after all the database manipulation it is managed by the container. So there must be a way to explicitlt tell the application server that some of the entity beans require autocommit to be off. anyone has any idea?
Can anyone tell me how to go around this? Your help is very much appreciated!!!
Regards,
Mike

Bakul,
In the original mail it is said, that the problem happened during creation. Moreover, as a standard design practice we never create entity beans directly from clients., we always create a session facade. Moreover the other problem that I observed with setting autocommit to false was with automatic table creation. See OC4J has this facility of automatic table creation when you deploy your entity beans. So if the autocommit is false,OC4J will create thae tables fine but when you execute your code, those tables are not available to your code, since the autocommit is false and the created tables never got committed.
Vmal

Similar Messages

  • How can I keep lion from generating .DS_Store files on windows network partitions, but not disable it for all network partitions?

    How can I keep lion from generating .DS_Store files on windows network partitions, but not disable it for all network partitions?  I am fimilar with changing the setting for all network partitions(defaults write com.apple.desktopservices DSDontWriteNetworkStores true), but that is undesirable when I connect my laptop to my home network. A preferable solution would be where I could control the writing of these files based on disk format (NTFS vs HFS+).

    Go to MacUpdate or CNET Downloads and search for ds_store. There are numerous utilities for preventing them from being transferred to Windows systems.

  • How can I just disable "navigation toolbar" completely for the App Tabs? I don't want to disable this for other normal tabs.

    How can I just disable "navigation toolbar" completely for the App Tabs? I don't want to disable this for other normal tabs. This is important as otherwise while I am in the app tab, i mistakenly start browsing from that tab and meaning of the app tab is completely lost...

    How can I view my full billing history for the app and music stores without iTunes installed?
    No.
    If my account has been compromised
    If you even think this may have happened, immediately change your password.
    See this -> Apple ID: Changing your password

  • +, - button and inherited tick box is in disabled mode for account assignme

    In the attribute tab of org structure (PPOMA_BBP), we are not getting +, - button and inherited tick box is in disabled mode for account assignment category (attribute is KNT).
    We want to enter two values for the account assignment category with inherited tick box (ticked).
    Please suggest me how to get the +, - and inherited tick box (ticked) for the account assignment.
    Regards.

    Hi Imam,
    Unde attributes
    You will find one Application Toolbar...
    Overview, Select Attribute, Check Entries,Insert line,Delete line..
    So under All values you will find AcctAssigCat, Exculded, Default, Inheried
    Select the row and click on Insert Line, now you should be able to insert the new acct Assignment category
    rg
    sam

  • Disable link for a Image in Content editor web part

    Hi
    i want to disable hyperlink for a banner added using content editor web part. Instead of hiding using Target Audience, i want to disable the link.
    Please help me how can i achieve this?
    regards,
    Vinay
    Thanks and Regards, vinnu

    Hi Vinay,
    I recommend to disable the link for an image using Jquery in Content Editor web part.
    First, you need to use F12 tool in Internet Explorer(IE) to get the html tag for the image, and you’d better find the class or id value for the tag of the image.
    For example, if the class for the image is test, then the code should be:
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.js"></script>
    <script type="text/javascript">
    $('.test').click(function(e) {
    e.preventDefault();
    </script>
    You can also paste the code of the image here for further research.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • How to disable html for whole swing application.

    Hi,
    As we can disable html for individual swing components , for example JLabel
    label.putClientProperty("html.disable",Boolean.TRUE);
    BasicHTML.updateRenderer(label,"html.disable");
    is there any way to disable html rendering in swing components for system wide / whole application?.
    Thanks
    Kiran

    Better use a utility method in the application like this
    public static void disableHtml(JComponent component)
    component.putClientProperty("html.disable",Boolean.TRUE);
    BasicHTML.updateRenderer(component,"html.disable");
    call disableHtml(Component u want to set html disable) for any component in the application.

  • How to disable MOH for "on Hold" button.

    CUCM 6.1
    When on a conference call if a user presses "on Hold" button, music is played for all participants and nobody can hear anything. How can I disable music on hold for all users?
    Please note, I could disable MOH for conferencing. But this is different issue. This is e.g. when everyone is in a conference (no matter what conference system, it could be ready talk, meeting place,...)and a participant receives another call and wants to answer the other call, in this situation I don't want any MOH played for other participants.
    Thanks,
    rdianat

    I first tried "suppress MOH for conference" by service--> service parameters -->select server --> select callmanager --> go to "clusterwide parameters(Feature-General) --> change the "Suppress MOH to conference Bridge" to true"
    This did not work. The reason is that these users are accessing an internet coferencing system like "ready talk" and not a cisco conferencing system, so for Cisco this does not appear to be a conference but it is like a regular call.
    I only have two callmanagers which also serve as MOH servers.
    Media Resources-->Music On-Hold Server -->Set Run Flag to "NO"
    This is explained in "MOH FAQ" from cisco.
    http://www.cisco.com/en/US/products/sw/voicesw/ps556/products_qanda_item09186a0080094766.shtml#q21
    The other way of doing this is not to assign any MOH server to the MRG or create a device pool without any MOH. (Media Resource Group set to NONE)
    Although the above disabled the MOH, still the TOH "Tone on Hold" which is beep-beeps played every 10 seconds was annoying. So I increased the interval to 20 seconds by the same instructions in "MOH FAQ" how to disable / change TOH. Go to same page explained above but to "clusterwide Parameters(Device-General) and change "Tone on Hold Timer" Value to 20.
    rdianat

  • How to disable Soundcheck for a single Album

    Hello,
    Soundcheck option in Preferences works pretty good for me, since I shuffle from classical to metal.
    But, inside a single album, say, an Opera which is meant to be fully played w/out pauses, I don't want the volume to be leveled throug Pianissimo and Forte tracks.
    Question:
    Is there any way to disable Soudcheck for a single Album so iTunes does NOT calculate peek levels on its tracks and does not set gain/loss accordingly?
    Or do I need to turn off Soundcheck on the iPod when I want to listen to that particular Album?
    I have tried "Volume level" slider but it sets the overall volume gain of the Album and not the relative level between tracks. Also the "pauseless" option (sorry, I use a localized version) is no solution.
    TIA

    Is there any way to disable Soudcheck for a single Album
    No.
    Or do I need to turn off Soundcheck on the iPod when I want to listen to that particular Album?
    Yes.

  • How to disable iMessage for a single contact?

    Hello apple communites, I have a simple and hopefully simple to answer question..
    I am curious as to how to disable iMessaging for a single contact.  My sister when she got her phone number originally had an iPhone, she has since gotten an android and kept the same phone number.  However I am running into issues with text messages to her, my phone still thinks she has an iPhone and continues to send every text as an iMessage, resulting in a failed message.  I can easily hit the "send again as a text message" option and the message/picture sends as normal.  I however find this a bit fustrating, and have tried everything I can think of to attempt to disable this.  However all the online tutorials I can find regarding disabling iMessage turns the feature off completly, I don't wish to do that. 
    I have attempted to completely delete, (including all existing all texts and call history), and then re-add the contact, but that does not work either, my iPhone still attempts to send messages to my sister as an iMessge. Any help, if any, would be appreciated. Thanks in advance.

    Your sister needs to disable iMessage on her iPhone if the iPhone is still available if she hasn't already done so.
    If she has, does she have iMessage enabled with the same Apple ID on another iOS device or on a Mac as was used to activate iMessage on her iPhone?

  • How to disable click for open a app mobile? i have picture.

    how to disable click for open a app mobile?
    How i do?
    why adobe captivate need to click for open app.
    i need to open auto.
    thank you

    Swiping down from the midle of the screen will open the search window on its upper section.

  • How to disable debugger for sapscript forms.

    How to disable debugger for sapscript forms.
    Once activated in se71-Utilities-Activate debugger I do not know how to disable it

    Thank you Rich
    I assigned you points for good answer on my preavious mail)
    . Actually my real problem is a transported the SAP script form “znalepke2” , printer definition ”nale”
    and device type “zststartsp” of a thermal printer.
    On original system (ak1) the printout is ok but on target system(ak2)
    not.
    Lateron I transported also :
    R3TR SCPD 1403(as the device type uses this character set)
    R3TR TABU TSP08 (All entries)
    R3TR TABU TSP1D(All entries)
    R3TR TABU TSP1T(All entries)
    I used also report  RSTXSCRP to traport form and device types. L
    Lately I discovered that when I performe printout preview I get also eronneous printout If I ssue an printout preview in language "EN" on system "ak1"(only on system ak1 and form preview in "SL" is oK. What steps you suggest me to solve the prolem
    Thank you in advance

  • How to disable IFD for a particular organization in MSCRM 2013?

    Hi All,
    We have a requirement to disable IFD only for a particular organization. Does MSCRM support IFD per organization?
    Thanks in advance.
    -Jai

    You cant disable IFD for a particular organization considering that its the servers which are configured for IFD and not the organizations.
    Regards, Abhishek Bakshi If you find this post helpful then please Vote as Helpful and Mark As Answer. Check my blog on https://mydynamicscrmblog.wordpress.com/

  • How to disable cache for a particular Report in obiee 10g?

    HI
    My name is Rani .Learning obiee10g ifaced 1 interview in that they asked me like how u disable cache for a particular report?

    In the advanced tab of the report, under prefix you need to mention:
    SET VARIABLE DISABLE_CACHE_HIT=1;
    Refer below link
    http://tipsonobiee.blogspot.com/2009/06/step-by-step-to-bypass-all-caches.html
    Thanks

  • IN OBIEE, how to disable drilldown for specific users

    How to disable drilldown action in a hierarchy as manager,lead,reporter.
    in this scenario i need to disable hierarchy for the specified reporter and the upper two peoples will have that functionality
    Awaiting ur reply
    Bala

    The RPD hierarchies themselves have no security attributes on them. So your left with a workaround or two. First one that springs to mind :
    Create the report in question save this as 'Manager' report.
    Create the report in question, disable drilling on the column in question, save this as 'Reporter' report.
    Deploy both reports to the dashboard in seperate sections and use the section permissions (against the Webgroups those users exist in) to determine which section is displayed to which user.
    Maybe more options will come up from other users, but this one is a start.
    Hope this helps,
    Alastair

  • How to disable checking for updates for Shockwave plug-in?

    SOS: how can I disable checking for updates (and reporting
    that there is one) for a Shockwave object on a web page?
    I have a client with an older Shockwave version, and it's a
    royal pain for each user to be told there's a newer veriosn and do
    you want to download...
    Any help gratefully received.

    I have zero experience of macs.
    Can't you install Silverlight and the plugin for all users rather than a specific one?
    I would guess/hope/expect there'd then be one plist file for everyone? 
    Please don't forget to upvote posts which you like and mark those which answer your question.
    My latest Technet article - Dynamic XAML

Maybe you are looking for