My Oracle Support Banner

Second Application Deployed With its Own "TransactionFactory" Uses the Transaction of the First Application (Doc ID 577521.1)

Last updated on MARCH 06, 2021

Applies to:

Oracle JDeveloper - Version 10.1.3.3.0 and later
Information in this document applies to any platform.

Symptoms


You want to use a custom DBTransactionFactory.
You followed the article "Creating and Using a Custom DBTransaction Implementation".
You set the value of the ADF configuration property named TransactionFactory to the fully-qualified class name of your custom DatabaseTransactionFactory class.

It works fine and your application correctly uses your custom DBTransactionFactory.
However, if you deploy another application in the same Web Container and also using its own custom DBTransactionFactory, you notice that the second application uses the same DBTransactionFactory as the first application.

Suppose f.ex. that Application1 has TransactionFactory=<package>.CustomDatabaseTransactionFactory1 and Application2 has TransactionFactory=<package>.CustomDatabaseTransactionFactory2.
If you add the following code in your Class CustomDatabaseTransactionFactory1 to output the object created (Class + instance ID):



Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.