Results 1 to 3 of 3

Thread: AOP transaction proxy in WebSphere 5.1: thread problem?

  1. #1
    Join Date
    Oct 2004
    Location
    Europe
    Posts
    13

    Default AOP transaction proxy in WebSphere 5.1: thread problem?

    hi!

    In WebSphere app server 5.1 we are doing the following:

    1. remote SLSB with BMT delegates to Spring-configured business object BO1, which in turn uses Spring-configured business object BO2
    2. BO1 and BO2 make use of TransactionProxyFactoryBean and JtaTransactionManager
    3. JtaTransactionManager uses WebSphereTransactionManagerFactoryBean for WebSphere-specific lookup of the JTA TransactionManager.
    4. methods on BO1 have transaction attributes PROPAGATION_REQUIRED, while methods on BO2 have transaction attributes PROPAGATION_NOT_SUPPORTED (which is the reason why we need the JTA TransactionManager)

    Now: in principle this transaction setup works fine: a transaction is created upon entry of the methods in BO1 and is then temporarily suspended while the methods in BO2 execute.

    But: When executing a DB-access from the methods in BO1, WebSphere issues the following warnings:

    ...ConnectionMan W J2CA0075W: An active transaction should be present while processing method allocateMCWrapper.
    ...ConnectionMan W J2CA0075W: An active transaction should be present while processing method initializeForUOW.

    A description of this warning can be found at

    http://www-1.ibm.com/support/docview...f-8&lang=en+en

    it basically says that DB-access is done from a separate thread.

    My questions are:
    1. should we worry at all about this warning (I do)
    2. our app definitely does not spawn any threads and I don't see any reason why Spring should (in this case). Is the warning misleading or is Spring really responsible for this warning?

    any help is greatly appreciated!,
    cheers,
    gerald

  2. #2
    Join Date
    Oct 2004
    Location
    Europe
    Posts
    13

    Default ...switching to Local SLSB with CMP solves the issue

    just an additional piece of information regarding this question of mine:

    If we

    1. change the remote SLSB from BMT to CMT (tx attributes Required),
    2. remove the AOP tx proxy for BO1 and
    3. hide BO2 behind a Local SLSB (instead of the AOP tx proxy) with CMT (tx attributes NotSupported)

    (in short: if we change from Spring AOP tx proxies behind SLSBs with BMT to plain old SLSBs with CMT)

    the mentioned warning message disappears.

    Sadly, this leads us to shy away from the Spring AOP transaction approach in this case and revert to (local) SLSBs.

    thanks again for your help,
    gerald

  3. #3
    Join Date
    Aug 2004
    Location
    San Mateo, CA
    Posts
    1,265

    Default

    Gerald

    Our app definitely does not spawn any threads and I don't see any reason why Spring should (in this case). Is the warning misleading or is Spring really responsible for this warning?
    Spring won't be starting any threads here. I suspect it's a WebSphere oddity. Have you tried doing the same thing using the JTA UserTransaction (which Spring will use under the covers) to try to reproduce the problem without Spring?

    Rgds
    Rod
    Rod Johnson - GM, SpringSource Division, VMware
    http://www.springsource.com
    Spring From the Source

Similar Threads

  1. Replies: 3
    Last Post: May 16th, 2005, 07:04 AM
  2. Sessions closing after commit
    By bendg25 in forum Data
    Replies: 0
    Last Post: Mar 21st, 2005, 04:38 AM
  3. Other Hibernate DAO LazyInitializationExceptions
    By bernardsirius in forum Data
    Replies: 5
    Last Post: Feb 18th, 2005, 04:09 PM
  4. Replies: 3
    Last Post: Nov 19th, 2004, 07:16 PM
  5. Transaction pb Hibernate/MySQL
    By syluser in forum Data
    Replies: 2
    Last Post: Aug 28th, 2004, 02:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •