QuestionQ136

Configuring WebLogic Server Resources

You configure a data source with a non-XA driver because your non-Oracle database does not supply XA drivers.

The data source will occasionally participate in global transactions with an EJB, so while configuring it, you select Supports Global Transactions and One-Phase Commit.

Why is this configuration incorrect?

  • A You must choose an XA driver when a data source participates in global transactions.
  • B "One' Phase Commit" always returns "ready" during phase one of the two-phase commit process' so it is possible you will have heuristic errors in the database.
  • C "One-Phase Commit" processes this data source last in the global transactions, if the EJB must go last, you cannot use this configuration.
  • D "One-Phase Commit" only allows this data source to participate in global transaction, so you cannot have a global transaction that includes an EJB.
Explanation

In WebLogic Server, the One-Phase Commit option for a non-XA JDBC data source allows its connection to be the only participant in a global transaction. It cannot be used for a global transaction that also includes EJB transaction work. WebLogic documents Logging Last Resource or Emulate Two-Phase Commit as the non-XA configurations for multiple EJB database operations within one transaction.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!