How set autocommit=false with container transactions?

Hi all!
A'm using EJB's with transaction attribute=Container.
This is simple scenario:
call Session Bean
begin transaction
call EntityBean1 {
database update 1
call EntityBean2 {
database update 2
end transaction
return from session bean
The problem is:
when update2 fails update1 not rolling back.
A know, that solution of this problem is set AUTOCOMMIT=FALSE in Connection, but how do this with container transactions? Point me exactly to place, where this can be done, if this possible. Or may be no general solution (I.e. Each case demands it's own approach.)?
(I can't directly call method of Connection object because of transaction managed by container)
Tnx a lot.

Hi there,
I have the same problem with Orion and NuSphere MySql.
When I define a container-managed transaction, the autocommit mode is not changed.
I have a session bean for which I set the transaction attribute to REQUIRED and two entity beans for which the transaction attribute is SUPPORTS in the ejbjar.xml file.
The session beans calls the two entity beans and makes some modifications on them like for instance removing them from the database.
When I check whether a transaction can be rolled back, for instance by putting in my code a loop that never ends and then stopping the server, it seems my application is running in autocommit mode. No rollback is done.
This is very strange.
The two entity beans are stored using gemini tables which permit rollbacks. So when I start a transaction inside mySql using sql statements, I can do a rollback without problem.
Any idea of what's going wrong ?
Dimitri.

Similar Messages

  • How to set autocommit false in Oracle Weblogic console?

    Hi All,
    While invoking the oracle Ebiz custom package from Oracle SOA 11g BPEL we are getting below error:-
    java.sql.SQLSyntaxErrorException: ORA-02089: COMMIT is not allowed in a subordinate session.
    Wondering if there is some properties through which we can set the autocommit false on the Oracle Weblogic Console.
    Highly appreciate any pointers for the same.
    Thanks in advance.

    Yes I did set global transaction (XA) up in the db adapter. True, there are couple of commits in the API and from outside BPEL that works fine, the error i am getting when trying to access the API through BPEL. I am calling this only API from the BPEL.
    Do you think there needs to setup explicit "autoCommit=false" somewhere in the weblogic console?

  • Please help me , how idoc is generated with the transaction pu12?

    Hi
    please help me on pu12, how the idoc is generated.

    Please be aware that you are not communicating with Apple when you post in these forums. The only people who will reply to your posts are your fellow users.
    You will have to work with the authorized service centers in India. Why did the service center you contacted say that they could not help you?
    Regards.

  • Setting max-height with contain for bg image

    Hi , I currently have a simple image that I want to sit in the top right corner, however I would like it to scale so the whole image fills the right hand of the viewport (only if they make the viewport smaller than the original image though). The contain function does this job however it also scales the image upwards should the user go full browser which looks horrible. So my question is can I use ( background-size: contain;) but add a max-height line to it also. I have tried every combination possible but nothing. Im either doing something wrong or it cant be done.
    Site: http://www.stuartskelton.co.uk
    my css is:
    body  {
    margin: 5px;
    background-attachment: fixed;
    background-image: url(../images/neilquote.gif);
    background-repeat: no-repeat;
    background-position: right top;
    background-size: contain;
    Thanks for looking.

    You can't add a max-height to the existing rule, but you could use a media query to change the value of background-size like this:
    body  {
    margin: 5px;
    background-attachment: fixed;
    background-image: url(../images/neilquote.gif);
    background-repeat: no-repeat;
    background-position: right top;
    background-size: contain;
    @media screen and (min-height: 462px) {
        body {
            background-size: 55px 461px;

  • How set Image Source with C#

    Hi,
    In C# I use FileOpenPicker to select the test.jpg, But it can't display the test.jpg.
    1. C#
    private async void button_addImage_Click(object sender, RoutedEventArgs e)
    FileOpenPicker fileOpenPicker = new FileOpenPicker();
    //fileOpenPicker.ViewMode = PickerViewMode.List;
    fileOpenPicker.ViewMode = PickerViewMode.Thumbnail;
    fileOpenPicker.SuggestedStartLocation = PickerLocationId.ComputerFolder;
    fileOpenPicker.FileTypeFilter.Add(".jpg");
    fileOpenPicker.FileTypeFilter.Add(".jpeg");
    fileOpenPicker.FileTypeFilter.Add(".png");
    StorageFile file = await fileOpenPicker.PickSingleFileAsync();
    if (file != null)
    Uri uri = new Uri(file.Path, UriKind.RelativeOrAbsolute);
    image_show.Source = new BitmapImage(uri);
    button_addImage.Visibility = Visibility.Collapsed;
    2. XAML
    <Grid Background="Orange" VerticalAlignment="Stretch">
    <!-- Source="ms-appx:///Assets/test.jpg" this is OK -->
    <Image x:Name="image_show" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Stretch="Uniform"/> <Button x:Name="button_addImage" Content="+" Click="button_addImage_Click">
    </Grid>

    Your app doesn't have access to the path the user picked. It needs to use the StorageFile returned from PickSingleFileAsync rather than bypassing it and going directly to the path. I discuss this in more detail in my blog entry at
    http://blogs.msdn.com/b/wsdevsol/archive/2012/12/05/stray-from-the-path-stick-to-the-storagefile.aspx .
    Open the StorageFile with StorageFile.OpenAsync then pass that stream to
    BitmapImage.SetSourceAsync. See the code snippet in the docs for an example.

  • Setting auto-commit inside a transaction

    I am trying Kodo 2.4 RC3 with JBoss 3.0.4 and Hypersonic SQL DB
    1.7.1b (in server mode) on Mac OS X 10.2.2 and get the exception listed
    below. I understand that the autocommit property of the database
    connections should be off in order to avoid this error, but how can I
    achieve this?
    [java] java.sql.SQLException: You cannot set autocommit during a
    managed transaction!
    [java] at
    org.jboss.resource.adapter.jdbc.local.LocalManagedConnection.setJdbcAutoCommit(LocalManagedConnection.java:447)
    [java] at
    org.jboss.resource.adapter.jdbc.local.LocalConnection.setAutoCommit(LocalConnection.java:426)
    [java] at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.getConnection(SQLExecutionManagerImpl.java:149)
    [java] at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.prepareStatementInternal(SQLExecutionManagerImpl.java:805)
    [java] at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executePreparedQueryInternal(SQLExecutionManagerImpl.java:760)
    [java] at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQueryInternal(SQLExecutionManagerImpl.java:692)
    [java] at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQuery(SQLExecutionManagerImpl.java:373)
    [java] at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQuery(SQLExecutionManagerImpl.java:357)
    [java] at
    com.solarmetric.kodo.impl.jdbc.ormapping.SubclassProviderImpl.getSubclasses(SubclassProviderImpl.java:231)
    [java] at
    com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.getPrimaryMappingFields(ClassMapping.java:1093)
    [java] at
    com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.loadByPK(ClassMapping.java:931)
    [java] at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.initialize(JDBCStoreManager.java:263)
    [java] at
    com.solarmetric.kodo.runtime.StateManagerImpl.loadInitialState(StateManagerImpl.java:174)
    [java] at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectByIdFilter(PersistenceManagerImpl.java:986)
    [java] at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectById(PersistenceManagerImpl.java:888)
    [java] at
    im.jdo.JDOWorker$IssueWorker.getIssue(JDOWorker.java:952)
    [java] at
    im.jdo.JDOWorker$IssueWorker.getIssue(JDOWorker.java:810)
    [java] at
    im.jdo.JDOWorker$IssueWorker.access$2400(JDOWorker.java:789)
    [java] at im.jdo.JDOWorker.getIssue(JDOWorker.java:1089)
    [java] at im.jdo.JDOWorker.getIssue(JDOWorker.java:1079)
    [java] at
    im.ejb.impl.MeisterSessionBean.getIssue(MeisterSessionBean.java:280)
    [java] at java.lang.reflect.Method.invoke(Native Method)
    [java] at
    org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(StatefulSessionContainer.java:817)
    [java] at
    org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130)
    [java] at
    org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
    [java] at
    org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:268)
    [java] at
    org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107)
    [java] at
    org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178)
    [java] at
    org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
    [java] at
    org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204)
    [java] at
    org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java:380)
    [java] at org.jboss.ejb.Container.invoke(Container.java:712)
    [java] at
    org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
    [java] at
    org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:382)
    [java] at java.lang.reflect.Method.invoke(Native Method)
    [java] at
    sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:236)
    [java] at sun.rmi.transport.Transport$1.run(Transport.java:147)
    [java] at java.security.AccessController.doPrivileged(Native
    Method)
    [java] at
    sun.rmi.transport.Transport.serviceCall(Transport.java:143)
    [java] at
    sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
    [java] at
    sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
    [java] at java.lang.Thread.run(Thread.java:491)

    Jakob,
    That's a good question. I don't have much experience with HSQLDB and
    JBoss, but I imagine that there's a configuration option somewhere
    that's setting autocommit to true. We only try to set autocommit to
    false if we see that it's set to true (by invoking conn.getAutoCommit()).
    What do your HSQL properties look like? Do you get any hits when running
    'grep -ri autocommit /path/to/jboss' from a terminal window?
    -Patrick
    Jakob Spies wrote:
    I am trying Kodo 2.4 RC3 with JBoss 3.0.4 and Hypersonic SQL DB
    1.7.1b (in server mode) on Mac OS X 10.2.2 and get the exception listed
    below. I understand that the autocommit property of the database
    connections should be off in order to avoid this error, but how can I
    achieve this?
    [java] java.sql.SQLException: You cannot set autocommit during a
    managed transaction!
    [java] at
    org.jboss.resource.adapter.jdbc.local.LocalManagedConnection.setJdbcAutoCommit(LocalManagedConnection.java:447)
    [java] at
    org.jboss.resource.adapter.jdbc.local.LocalConnection.setAutoCommit(LocalConnection.java:426)
    [java] at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.getConnection(SQLExecutionManagerImpl.java:149)
    [java] at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.prepareStatementInternal(SQLExecutionManagerImpl.java:805)
    [java] at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executePreparedQueryInternal(SQLExecutionManagerImpl.java:760)
    [java] at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQueryInternal(SQLExecutionManagerImpl.java:692)
    [java] at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQuery(SQLExecutionManagerImpl.java:373)
    [java] at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQuery(SQLExecutionManagerImpl.java:357)
    [java] at
    com.solarmetric.kodo.impl.jdbc.ormapping.SubclassProviderImpl.getSubclasses(SubclassProviderImpl.java:231)
    [java] at
    com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.getPrimaryMappingFields(ClassMapping.java:1093)
    [java] at
    com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.loadByPK(ClassMapping.java:931)
    [java] at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.initialize(JDBCStoreManager.java:263)
    [java] at
    com.solarmetric.kodo.runtime.StateManagerImpl.loadInitialState(StateManagerImpl.java:174)
    [java] at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectByIdFilter(PersistenceManagerImpl.java:986)
    [java] at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectById(PersistenceManagerImpl.java:888)
    [java] at
    im.jdo.JDOWorker$IssueWorker.getIssue(JDOWorker.java:952)
    [java] at
    im.jdo.JDOWorker$IssueWorker.getIssue(JDOWorker.java:810)
    [java] at
    im.jdo.JDOWorker$IssueWorker.access$2400(JDOWorker.java:789)
    [java] at im.jdo.JDOWorker.getIssue(JDOWorker.java:1089)
    [java] at im.jdo.JDOWorker.getIssue(JDOWorker.java:1079)
    [java] at
    im.ejb.impl.MeisterSessionBean.getIssue(MeisterSessionBean.java:280)
    [java] at java.lang.reflect.Method.invoke(Native Method)
    [java] at
    org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(StatefulSessionContainer.java:817)
    [java] at
    org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130)
    [java] at
    org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
    [java] at
    org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:268)
    [java] at
    org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107)
    [java] at
    org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178)
    [java] at
    org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
    [java] at
    org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204)
    [java] at
    org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java:380)
    [java] at org.jboss.ejb.Container.invoke(Container.java:712)
    [java] at
    org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
    [java] at
    org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:382)
    [java] at java.lang.reflect.Method.invoke(Native Method)
    [java] at
    sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:236)
    [java] at sun.rmi.transport.Transport$1.run(Transport.java:147)
    [java] at java.security.AccessController.doPrivileged(Native
    Method)
    [java] at
    sun.rmi.transport.Transport.serviceCall(Transport.java:143)
    [java] at
    sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
    [java] at
    sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
    [java] at java.lang.Thread.run(Thread.java:491)
    Patrick Linskey [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • How to save attachment with 'Automatic Save' set to False

    Hi,
    Can someone please clarify for me how I should code for making sure that the attachment is saved (when 'Automatic Save' set to False) . The Developer's guide states that
    "...in the processformRequest method of the controller object, you need to capture the event of this submit button and call commit() explicitly."
    I assume that by "this submit button" the button located on the product page is meant (the page from which attachments page is invoked). In this case my question is - which event to I need to capture for this button? If I am already commiting changes when the user clicks the Apply button on the product page (not on the attachments page) then I thought no additional commit is required anywhere? Is this correct? My problem is that with 'Automatic Save' set to False the attachment is not being saved.
    Thank you.
    Anatoliy

    Rumkumar,
    Thank you for the clarification. Let me ask you please - by calling commit you mean issuing 'transaction().commit()"? The thing is that I AM doing that - I issue commit once I click submitButton on the product page, all changes are saved except the attachements - but the attachment is not saved. Do you have an idea what the problem might be? Of course if I set 'Automatic Save' property on the Attachment item to 'True' then I am fine. I appreciate your feedback.
    Thanks,
    Anatoliy

  • How to set up SAPconnect with email server

    Hi,
    Does any one know <b>how to set up SAPconnect with email server</b>
    We are using workflow and when it fails it we are sending the notification mail to the user on his company mail id, i.e. [email protected]
    This is working in the current production system. We are doing the new development which will replace the current production system. The existing Basis team does not know how it was setup in production system and how to set it up in the new system.
    When we send any mail notification from workflow we can see the mail in SCOT transaction but it is not received at the specified mail address.
    Can any one provide the configuration steps or any document for this.
    Thanks in advance..
    Pratik

    Hi Pratik,
    Check the following link:-
    /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
    http://help.sap.com/saphelp_nw04/helpdata/en/2b/d925bf4b8a11d1894c0000e8323c4f/frameset.htm
    these link will help u to config SMTP.
    And one more thing u have to do..
    Go to SE11 n open Table sxnodes in change mode.
    And change F_ESMTP field to false i.e. BLANK for the Field NODE = SMTP.
    Hope this will work For U.
    Regards
    Sachin Dhingra

  • Can Entity Bean be set with "RequiresNew" transaction Attribute?

              I find it result in "dead lock"
              when I call RequiresNew attributed CMP method in session Bean.
              Then, Is it possible to use CMP which is set with "RequiresNew" transaction attribute?
              I Wonder why.
              Thanx in advance.
              

    Requires-new makes the container start a new transaction. Only use that flag
              at the point that you are certain that a NEW transaction should BEGIN. I
              suggest you use Required as your default for all methods in the application,
              and only change that to anything else when you are certain that you should.
              Peace,
              Cameron Purdy
              Tangosol Inc.
              << Tangosol Server: How Weblogic applications are customized >>
              << Download now from http://www.tangosol.com/download.jsp >>
              "A.J,LEE" <[email protected]> wrote in message
              news:3ba5adb2$[email protected]..
              >
              > I find it result in "dead lock"
              > when I call RequiresNew attributed CMP method in session Bean.
              > Then, Is it possible to use CMP which is set with "RequiresNew"
              transaction attribute?
              >
              > I Wonder why.
              >
              > Thanx in advance.
              

  • How to change Default setting AutoCommit to 0 in Procedure or in Connecting

    [tttest@host1 ~]$ ttisql "dsn=ana_tt1122"
    Copyright (c) 1996-2011, Oracle. All rights reserved.
    Type ? or "help" for help, type "exit" to quit ttIsql.
    connect "dsn=ana_tt1122";
    Warning 20000: Use of a deprecated feature: Authenticate (ignored)
    Connection successful: DSN=ana_tt1122;UID=tttest;DataStore=/timesten/TimesTen/tt1122/info/ana/ana;DatabaseCharacterSet=ZHS16GBK;ConnectionCharacterSet=ZHS16GBK;DRIVER=/timesten/TimesTen/tt1122/lib/libtten.so;OracleId=ABCD;PermSize=1200;TempSize=500;TypeMode=0;OracleNetServiceName=ABCD;
    (Default setting AutoCommit=1)
    The "Default setting AutoCommit=1",I can modify it only later using :
    Command> autocommit 0;
    But, I want to know: Can I set the "Default setting AutoCommit=0"? When I connect the DSN? or Can I set "Default setting AutoCommit=0" in a procedure ? Because sometime I maybe want to change it in procedure.
    Thanks very.

    As you have pointed out, in ttisql session you can use AUTOCOMMIT 0 to disable the autocommit feature.
    Similarly in ODBC-based applications, execute SQLSetConnectOption function with SQL_AUTOCOMMIT_OFF.
    For JDBC applications, Connection.setAutoCommit(false) method to disable autocommit feature .

  • I have family plan of 5 iphones and all them have the same apple id, the q. is how I can set each one with their own apple id? please advise...

    I have family plan of 5 iphones and all them have the same apple id, the q. is how I can set each one with their own apple id? please advise...

    See How to Stop Sharing an Apple ID.
    (Note that I am affiliated with that site, and some pages contain ads).

  • How to get XLR to show BPs with no transaction data for a given date range

    Hi -
    I am building an XLR report that does a comparison of net sales data across two periods for a given sales employee's BPs.
    The report has the row expansion:
    FACT BPA(*) SLP(SlpName = "ASalesPersonNameHere") ARDT(Code = "ARCreditMemo", "Invoice") Group by BPA.CardName
    and column expansions:
    FIG(SO_TaxDate = @StartDate:@EndDate)
    and
    FIG(SO_TaxDate = @StartDate2:@EndDate2)
    where @StartDate, @EndDate, @StartDate2, @EndDate2 are parameters that define the two ranges of dates.
    The column formulas are, from left to right:
    =ixDimGet("BPA", "CardName")
    =ixGet("SO_DocTotal")      <-- filtered by column expansion for first date range
    =ixGet("SO_DocTotal")      <-- filtered by column expansion for second date range
    The report works fine except for one problem, I would like it to include BPs for which no transaction occurred in either date range as well.
    Any help is greatly appreciated!
    Thanks,
    Lang Riley

    Really appreciate your feedback!  Those are good suggestions. I should have mentioned that I had already tried both those suggestions.
    Removing FACT on BPA in this case ends up returning all the BPs and not respecting the SLP(SlpName = "aName") part of the query. 
    Using **, i.e., * or #NULL, makes no change in the resulting data in this case.  I had thought that ** would be the solution, but it didn't change the outcome.  I still have BPs for which when their sales employee is used as the filter and they have no transactions for either date range, and yet they still do not appear. 
    I should further mention that the IXL query, as it now stands, does return BPs for which one of the periods has no data, just not both, and I have verified that applicable BPs with no transaction data for both periods do exist in my data set.  It seems that perhaps the IXL query needs to be restructured?  Please keep the suggestions coming including how this query might be restructured if necessary.

  • Distributed transactions with container-managed MDBs

              I have built a framework that employs a high rate of code reuse while abstracting
              the complexities of inter-application communication. This allows application
              developers to focus on solving their business needs and not worry about "the plumbing"
              between the applications.
              At this point, the framework is using container-managed MDBs for Topic destinations.
              MDBs were chosen because of their concurrent nature for processing JMS messages.
              Now that I have this framework up and running, I am trying to add distributed
              transaction support and am having trouble understanding what I need to do. Here
              is how the framework works:
              The MDB will recieve a message, unmarshall it into a business object, and then
              route that object to the appropriate business class where it is then processed
              accordingly. In most cases, the processing of this message object will require
              database interaction. If any error should occur while processing the message,
              all XAResources within the transaction should rollback and ultimately, the JMS
              message will be redelivered later.
              Here is what I'm trying to find out:
              1. When control is passed to an application and it gets a DB connection, will
              that DB resource be dynamically enlisted with the transaction?
              2. Must the DB connection come from the WLS DB pool to be enlisted with the transaction?
              I ask this because the current standard at this company is to use a home-grown
              DB connection pool for getting DB connections. This is due to the fact that not
              all applications here run in a WLS environment and they wanted a standard way
              of retrieving a DB connection across applications. They also sited problems with
              WLS 4.5.1 connection pool.
              3. The documentation states that only one database may be involved in a transaction.
              If a connection to another database is required, but not needed in the current
              transaction, will WLS ignore enlisting the 2nd DB resource, or throw an exception?
              4. Where can I find <B>detailed</B> information about this subject? Everything
              that I have read so far has barely scratched the surface for this specific topic.
              Thanks,
              Bob.
              

              Hi Bob,
              If you are using WLS's XA connection pool, then the XAResource associated with
              the XA connections are enlisted with the transaction transparently for you. Enlistments
              actually occur not at getConnection, but on demand when the JDBC objects are actually
              used.
              If you are not using WLS connection pools, then you would need to enlist the XAResource
              associated with the XA connections yourself. You can obtain the transaction associated
              with the current thread by calling weblogic.transaction.TxHelper.getTransaction(),
              and then call enlistResource on the transaction.
              Weblogic has provisions that allow one (and only one) non-XA connection pool to
              participate in a distributed transaction. In this case, you will get a SQLException
              when you try to obtain a connection from a second connection pool in the same
              distributed transaction. However, if you are using real XA connection pools,
              there is no limitation and any number of XA connection pools can participate in
              the same distributed transaction.
              We will try to incorporate more info in our online docs in the future.
              -- Priscilla Fung, BEA Systems, Inc.
              "Bob Peroutka" <[email protected]> wrote:
              >
              >I have built a framework that employs a high rate of code reuse while
              >abstracting
              >the complexities of inter-application communication. This allows application
              >developers to focus on solving their business needs and not worry about
              >"the plumbing"
              >between the applications.
              >
              >At this point, the framework is using container-managed MDBs for Topic
              >destinations.
              > MDBs were chosen because of their concurrent nature for processing JMS
              >messages.
              >
              >Now that I have this framework up and running, I am trying to add distributed
              >transaction support and am having trouble understanding what I need to
              >do. Here
              >is how the framework works:
              >
              >The MDB will recieve a message, unmarshall it into a business object,
              >and then
              >route that object to the appropriate business class where it is then
              >processed
              >accordingly. In most cases, the processing of this message object will
              >require
              >database interaction. If any error should occur while processing the
              >message,
              >all XAResources within the transaction should rollback and ultimately,
              >the JMS
              >message will be redelivered later.
              >
              >Here is what I'm trying to find out:
              >
              >1. When control is passed to an application and it gets a DB connection,
              >will
              >that DB resource be dynamically enlisted with the transaction?
              >
              >2. Must the DB connection come from the WLS DB pool to be enlisted with
              >the transaction?
              >
              >I ask this because the current standard at this company is to use a home-grown
              >DB connection pool for getting DB connections. This is due to the fact
              >that not
              >all applications here run in a WLS environment and they wanted a standard
              >way
              >of retrieving a DB connection across applications. They also sited problems
              >with
              >WLS 4.5.1 connection pool.
              >
              >3. The documentation states that only one database may be involved in
              >a transaction.
              > If a connection to another database is required, but not needed in the
              >current
              >transaction, will WLS ignore enlisting the 2nd DB resource, or throw
              >an exception?
              >
              >4. Where can I find <B>detailed</B> information about this subject?
              > Everything
              >that I have read so far has barely scratched the surface for this specific
              >topic.
              >
              >Thanks,
              >
              >Bob.
              

  • SendBatch commits with AutoCommit false

    Is there a way to make sendBatch NOT commit a batch until
    commit() is called? I need to call sendBatch to get an accurate
    rowcount, so I can't just let commit implicitly call sendBatch.
    null

    it is my impression that if autocommit is set to false, and no con.rollback() was issued before the program exits, the drivers call an automatic con.commit() before it closes the connection(I've experienced this consistently with 4 different databases). But this probably is not in the java jdbc specs, but a driver implementation decision depending on the vendor/driver.
    does anyone else know more on the specs?
    Jamie

  • How to use two sets of books with one responsibility

    Does anyone know if it is possible to run reports in the General Ledger business area of the Oracle EUL against two or more sets of books with the same responsibility? For example, I want a regional finance manager to be able to run a Discoverer GL report for both Bolivia and Peru using their South America GL Manager responsibility. It looks like you can do that for AR using HR security profiles but I'm not sure how to do it for GL. Thanks.
    Greg

    Hi,
    There are two types of security: business areas security which allows a user to access the folders in a BA and is controlled through Discoverer; and data security which filters the data returned in the report. The data security is usually implemented as a condition in the views mapped in the EUL, though it can be implemented as mandatory conditions in the EUL. The data security is controlled by Application system profiles.
    In your case you will have conditions in the database views which only returning data for the set of books defined in the profile for the current responsibility. To bypass this security so that a responsibility can report on multiple sets of books you need to create new folders in the EUL that map onto database view or tables that do not have the data security.
    Hope that helps,
    Rod West

Maybe you are looking for

  • Changes to the welcome / login page of the portal

    Dear SAP Gurus,    I've read all possible material on sdn, and I am still struggling with this. We have SP16 on our java server. The Basis team has provided me with the par file from the location <J2EE_Engine_Instance>\j2ee\cluster\server<X>\apps\sap

  • What is ESN Activated means? (Always included in the IMEI Check Services)

    What is ESN Activated Really Means? I always find this info in about every IMEI CHECK SERVICE RESULTS. But, never actually know its true meaning. Thanks

  • Oder closed, but really closed?

    Hi, We have a sales order. This order it is closed, but only apparently, because when we open the Open Item List report it is still remaining like if it was opened! We are using version 2005A PL16. Do you know why this could be happennig? Could it be

  • Process.waitFor() causes program to hang!

    I've successfully created a Process and run it using Runtime's exec(String path), and the kinds of processes I've successfully run have included Winzip, a WS_FTP Pro script, and a regular .bat file. I've also successfully called waitFor() on these pr

  • Coordinate system in illustrator

    Hi. I'm trying to build a shape in Illustrator CS6, OSX 10.7.5, using a script with setEntirePath. I begin with: var aPoints = new Array ([20, 50], [60, 30]); pShape = app.activeDocument.pathItems.add(); pShape.setEntirePath(aPoints); I expected a di