[ 
https://issues.apache.org/jira/browse/ARTEMIS-4246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Bertram updated ARTEMIS-4246:
------------------------------------
    Description: 
The following code worked before with Payara 5.2022.2 1.8 JDK, but now when I 
upgraded to Artemis 2.28.0 and Payara 5.2022.5-jdk11 it has some problems.

payara pre-boot.commands.asadmin file
{noformat}
# Apache ActiveMQ Artemis
deploy --type rar --name artemis-rar 
/opt/payara/deployments/artemis-rar-2.28.0.rar
create-resource-adapter-config  --property 
ConnectorClassName='org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnectorFactory':ConnectionParameters='host=broker;port=61616':UserName='artemis':Password='artemis'
 artemis-rar
create-connector-connection-pool --raname artemis-rar --connectiondefinition 
org.apache.activemq.artemis.ra.ActiveMQRAConnectionFactory --property 
UserName=artemis:Password=artemis  --ping true jms/ConnectionFactoryPool
create-connector-resource --poolname jms/ConnectionFactoryPool 
jms/msgConnectionFactory{noformat}
Payara log:
{noformat}
[#|2023-04-19T15:52:44.487+0000|INFO|Payara 
5.2022.5|fish.payara.boot.runtime.BootCommand|_ThreadID=25;_ThreadName=RunLevelControllerThread-1681919558585;_TimeMillis=1681919564487;_LevelValue=800;|
  Boot Command create-resource-adapter-config returned with result SUCCESS : 
PlainTextActionReporterSUCCESSNo monitoring data to report.
|#]
[#|2023-04-19T15:52:44.502+0000|WARNING|Payara 
5.2022.5|javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.util|_ThreadID=25;_ThreadName=RunLevelControllerThread-1681919558585;_TimeMillis=1681919564502;_LevelValue=900;|
  RAR8000 : The method setPassword is not present in the class : 
org.apache.activemq.artemis.ra.ActiveMQRAManagedConnectionFactory|#]
[#|2023-04-19T15:52:44.503+0000|WARNING|Payara 
5.2022.5|javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.util|_ThreadID=25;_ThreadName=RunLevelControllerThread-1681919558585;_TimeMillis=1681919564503;_LevelValue=900;|
  RAR7097: No setter method present for the property password in the class 
org.apache.activemq.artemis.ra.ActiveMQRAManagedConnectionFactory|#]
[#|2023-04-19T15:52:44.503+0000|WARNING|Payara 
5.2022.5|javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.util|_ThreadID=25;_ThreadName=RunLevelControllerThread-1681919558585;_TimeMillis=1681919564503;_LevelValue=900;|
  RAR8000 : The method setUsername is not present in the class : 
org.apache.activemq.artemis.ra.ActiveMQRAManagedConnectionFactory|#]
[#|2023-04-19T15:52:44.503+0000|WARNING|Payara 
5.2022.5|javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.util|_ThreadID=25;_ThreadName=RunLevelControllerThread-1681919558585;_TimeMillis=1681919564503;_LevelValue=900;|
  RAR7097: No setter method present for the property username in the class 
org.apache.activemq.artemis.ra.ActiveMQRAManagedConnectionFactory|#]
[#|2023-04-19T15:52:44.920+0000|INFO|Payara 
5.2022.5|fish.payara.boot.runtime.BootCommand|_ThreadID=25;_ThreadName=RunLevelControllerThread-1681919558585;_TimeMillis=1681919564920;_LevelValue=800;|
  Boot Command create-connector-connection-pool returned with result SUCCESS : 
PlainTextActionReporterSUCCESSConnector connection pool 
jms/ConnectionFactoryPool created.
Attempting to ping during Connector Connection Pool Creation : 
jms/ConnectionFactoryPool - Succeeded.|#]
[#|2023-04-19T15:52:44.939+0000|INFO|Payara 
5.2022.5|fish.payara.boot.runtime.BootCommand|_ThreadID=25;_ThreadName=RunLevelControllerThread-1681919558585;_TimeMillis=1681919564939;_LevelValue=800;|
  Boot Command create-connector-resource returned with result SUCCESS : 
PlainTextActionReporterSUCCESSConnector resource jms/msgConnectionFactory 
created.|#]{noformat}

> Add setters to the RA for username and password
> -----------------------------------------------
>
>                 Key: ARTEMIS-4246
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4246
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Justin Bertram
>            Priority: Major
>
> The following code worked before with Payara 5.2022.2 1.8 JDK, but now when I 
> upgraded to Artemis 2.28.0 and Payara 5.2022.5-jdk11 it has some problems.
> payara pre-boot.commands.asadmin file
> {noformat}
> # Apache ActiveMQ Artemis
> deploy --type rar --name artemis-rar 
> /opt/payara/deployments/artemis-rar-2.28.0.rar
> create-resource-adapter-config  --property 
> ConnectorClassName='org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnectorFactory':ConnectionParameters='host=broker;port=61616':UserName='artemis':Password='artemis'
>  artemis-rar
> create-connector-connection-pool --raname artemis-rar --connectiondefinition 
> org.apache.activemq.artemis.ra.ActiveMQRAConnectionFactory --property 
> UserName=artemis:Password=artemis  --ping true jms/ConnectionFactoryPool
> create-connector-resource --poolname jms/ConnectionFactoryPool 
> jms/msgConnectionFactory{noformat}
> Payara log:
> {noformat}
> [#|2023-04-19T15:52:44.487+0000|INFO|Payara 
> 5.2022.5|fish.payara.boot.runtime.BootCommand|_ThreadID=25;_ThreadName=RunLevelControllerThread-1681919558585;_TimeMillis=1681919564487;_LevelValue=800;|
>   Boot Command create-resource-adapter-config returned with result SUCCESS : 
> PlainTextActionReporterSUCCESSNo monitoring data to report.
> |#]
> [#|2023-04-19T15:52:44.502+0000|WARNING|Payara 
> 5.2022.5|javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.util|_ThreadID=25;_ThreadName=RunLevelControllerThread-1681919558585;_TimeMillis=1681919564502;_LevelValue=900;|
>   RAR8000 : The method setPassword is not present in the class : 
> org.apache.activemq.artemis.ra.ActiveMQRAManagedConnectionFactory|#]
> [#|2023-04-19T15:52:44.503+0000|WARNING|Payara 
> 5.2022.5|javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.util|_ThreadID=25;_ThreadName=RunLevelControllerThread-1681919558585;_TimeMillis=1681919564503;_LevelValue=900;|
>   RAR7097: No setter method present for the property password in the class 
> org.apache.activemq.artemis.ra.ActiveMQRAManagedConnectionFactory|#]
> [#|2023-04-19T15:52:44.503+0000|WARNING|Payara 
> 5.2022.5|javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.util|_ThreadID=25;_ThreadName=RunLevelControllerThread-1681919558585;_TimeMillis=1681919564503;_LevelValue=900;|
>   RAR8000 : The method setUsername is not present in the class : 
> org.apache.activemq.artemis.ra.ActiveMQRAManagedConnectionFactory|#]
> [#|2023-04-19T15:52:44.503+0000|WARNING|Payara 
> 5.2022.5|javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.util|_ThreadID=25;_ThreadName=RunLevelControllerThread-1681919558585;_TimeMillis=1681919564503;_LevelValue=900;|
>   RAR7097: No setter method present for the property username in the class 
> org.apache.activemq.artemis.ra.ActiveMQRAManagedConnectionFactory|#]
> [#|2023-04-19T15:52:44.920+0000|INFO|Payara 
> 5.2022.5|fish.payara.boot.runtime.BootCommand|_ThreadID=25;_ThreadName=RunLevelControllerThread-1681919558585;_TimeMillis=1681919564920;_LevelValue=800;|
>   Boot Command create-connector-connection-pool returned with result SUCCESS 
> : PlainTextActionReporterSUCCESSConnector connection pool 
> jms/ConnectionFactoryPool created.
> Attempting to ping during Connector Connection Pool Creation : 
> jms/ConnectionFactoryPool - Succeeded.|#]
> [#|2023-04-19T15:52:44.939+0000|INFO|Payara 
> 5.2022.5|fish.payara.boot.runtime.BootCommand|_ThreadID=25;_ThreadName=RunLevelControllerThread-1681919558585;_TimeMillis=1681919564939;_LevelValue=800;|
>   Boot Command create-connector-resource returned with result SUCCESS : 
> PlainTextActionReporterSUCCESSConnector resource jms/msgConnectionFactory 
> created.|#]{noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to