-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set the transaction node name at runtime
- Loading branch information
1 parent
44f96a3
commit 799ef38
Showing
3 changed files
with
15 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 9 additions & 1 deletion
10
...ntime/src/main/java/org/jboss/shamrock/narayana/jta/runtime/NarayanaJtaConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,25 @@ | ||
package org.jboss.shamrock.narayana.jta.runtime; | ||
|
||
import java.util.Optional; | ||
|
||
import org.jboss.shamrock.runtime.annotations.ConfigItem; | ||
import org.jboss.shamrock.runtime.annotations.ConfigPhase; | ||
import org.jboss.shamrock.runtime.annotations.ConfigRoot; | ||
|
||
/** | ||
* | ||
*/ | ||
@ConfigRoot(phase = ConfigPhase.RUN_TIME_STATIC) | ||
@ConfigRoot(phase = ConfigPhase.RUN_TIME) | ||
public final class NarayanaJtaConfiguration { | ||
/** | ||
* The node name used by the transaction manager | ||
*/ | ||
@ConfigItem(defaultValue = "shamrock") | ||
public String nodeName; | ||
|
||
/** | ||
* The XA node name used by the transaction manager | ||
*/ | ||
@ConfigItem() | ||
public Optional<String> xaNodeName; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters