You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@activemq.apache.org by "mattrpav (via GitHub)" <gi...@apache.org> on 2023/11/21 16:56:00 UTC
[PR] [AMQ-9398] Fix activemq-ra/activemq-rar namespaces for Jakarta EE [activemq]
mattrpav opened a new pull request, #1123:
URL: https://github.com/apache/activemq/pull/1123
(no comment)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [AMQ-9398] Fix activemq-ra/activemq-rar namespaces for Jakarta EE [activemq]
Posted by "jbonofre (via GitHub)" <gi...@apache.org>.
jbonofre merged PR #1123:
URL: https://github.com/apache/activemq/pull/1123
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [AMQ-9398] Fix activemq-ra/activemq-rar namespaces for Jakarta EE [activemq]
Posted by "cshannon (via GitHub)" <gi...@apache.org>.
cshannon commented on code in PR #1123:
URL: https://github.com/apache/activemq/pull/1123#discussion_r1400927133
##########
activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQActivationSpec.java:
##########
@@ -147,25 +147,19 @@ public void validate() throws InvalidPropertyException {
}
public boolean isValidUseRAManagedTransaction(List<String> errorMessages) {
- try {
- new Boolean(useRAManagedTransaction);
- return true;
- } catch (Throwable e) {
- //
+ boolean retVal = Boolean.valueOf(useRAManagedTransaction);
+ if(!retVal) {
+ errorMessages.add("useRAManagedTransaction must be set to: true or false.");
}
- errorMessages.add("useRAManagedTransaction must be set to: true or false.");
Review Comment:
This seems wrong as this will add an error message even for "false"
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [AMQ-9398] Fix activemq-ra/activemq-rar namespaces for Jakarta EE [activemq]
Posted by "cshannon (via GitHub)" <gi...@apache.org>.
cshannon commented on code in PR #1123:
URL: https://github.com/apache/activemq/pull/1123#discussion_r1400932795
##########
activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQActivationSpec.java:
##########
@@ -147,25 +147,19 @@ public void validate() throws InvalidPropertyException {
}
public boolean isValidUseRAManagedTransaction(List<String> errorMessages) {
- try {
- new Boolean(useRAManagedTransaction);
- return true;
- } catch (Throwable e) {
- //
+ boolean retVal = Boolean.valueOf(useRAManagedTransaction);
+ if(!retVal) {
Review Comment:
This seems wrong as this will add an error message even for "false"
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [AMQ-9398] Fix activemq-ra/activemq-rar namespaces for Jakarta EE [activemq]
Posted by "cshannon (via GitHub)" <gi...@apache.org>.
cshannon commented on code in PR #1123:
URL: https://github.com/apache/activemq/pull/1123#discussion_r1400927133
##########
activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQActivationSpec.java:
##########
@@ -147,25 +147,19 @@ public void validate() throws InvalidPropertyException {
}
public boolean isValidUseRAManagedTransaction(List<String> errorMessages) {
- try {
- new Boolean(useRAManagedTransaction);
- return true;
- } catch (Throwable e) {
- //
+ boolean retVal = Boolean.valueOf(useRAManagedTransaction);
+ if(!retVal) {
+ errorMessages.add("useRAManagedTransaction must be set to: true or false.");
}
- errorMessages.add("useRAManagedTransaction must be set to: true or false.");
Review Comment:
This seems wrong as this will add an error message even for "false"
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org