-
Bug
-
Resolution: Done
-
Major
-
28.0.1.Final
-
None
-
---
-
---
I´ve made it like this but I don´t think it´s correct, it´s throwing errors when I try it.
My setup:
<subsystem xmlns="urn:jboss:domain:messaging-activemq:15.0">
<remote-connector name="artemis-master" socket-binding="remote-artemis-master" ssl-context="artemis-remote-ssl"/>
<remote-connector name="artemis-slave" socket-binding="remote-artemis-slave"/>
<pooled-connection-factory name="RemoteConnectionFactory"
entries="java:jboss/RemoteConnectionFactory java:jboss/exported/jms/RemoteConnectionFactory"
connectors="artemis-master artemis-slave"
client-id="t24-core-protocol-test"
client-failure-check-period="1000"
connection-ttl="2000"
failover-on-initial-connection="true"
ha="true"
min-pool-size="5"
max-pool-size="10"
statistics-enabled="true"
enable-amq1-prefix="false"/>
<external-jms-queue name="T24.NEWIRISQUEUE.UAT"
entries="java:/queue/HELLOWORLDMDBQueue java:jboss/exported/jms/queue/HELLOWORLDMDBQueue"
enable-amq1-prefix="false"/>
</subsystem>
<subsystem xmlns="urn:wildfly:elytron:17.0" final-providers="combined-providers" disallowed-providers="OracleUcrypto">
...
<tls>
<key-stores>
<key-store name="artemisKS">
<credential-reference clear-text="password"/>
<implementation type="JKS"/>
<file path="client.keystore" relative-to="jboss.server.config.dir"/>
</key-store>
<key-store name="artemisTS">
<credential-reference clear-text="password"/>
<implementation type="JKS"/>
<file path="client.truststore" relative-to="jboss.server.config.dir"/>
</key-store>
</key-stores>
<key-managers>
<key-manager name="artemisKM" key-store="artemisKS">
<credential-reference clear-text="password"/>
</key-manager>
</key-managers>
<trust-managers>
<trust-manager name="artemisTM" key-store="artemisTS"/>
</trust-managers>
<client-ssl-contexts>
<client-ssl-context name="artemis-remote-ssl" protocols="SSLv2 SSLv3 TLSv1.2 TLSv1.3" key-manager="artemisKM" trust-manager="artemisTM"/>
</client-ssl-contexts>
</tls>
</subsystem>
<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
...
<outbound-socket-binding name="remote-artemis-master">
<remote-destination host="nn74x045.sos.kb.cz" port="61616"/>
</outbound-socket-binding>
<outbound-socket-binding name="remote-artemis-slave">
<remote-destination host="nv74x049.sos.kb.cz" port="61616"/>
</outbound-socket-binding>
</socket-binding-group>
The error I get:
ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool – 82) MSC000001: Failed to start service jboss.raactivator.RemoteConnectionFactory: org.jboss.msc.service.StartException in service jboss.raactivator.RemoteConnectionFactory: WFLYJCA0046: Failed to start RA deployment [RemoteConnectionFactory]
at org.jboss.as.connector@28.0.1.Final//org.jboss.as.connector.services.resourceadapters.deployment.AbstractResourceAdapterDeploymentService$2.run(AbstractResourceAdapterDeploymentService.java:333)
at org.jboss.threads@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1348)
at java.base/java.lang.Thread.run(Thread.java:833)
at org.jboss.threads@2.4.0.Final//org.jboss.threads.JBossThread.run(JBossThread.java:513)
Caused by: org.jboss.jca.deployers.common.DeployException: WFLYJCA0072: Deployment org.wildfly.extension.messaging.activemq.ActiveMQResourceAdapter failed
at org.jboss.as.connector@28.0.1.Final//org.jboss.as.connector.services.resourceadapters.deployment.AbstractResourceAdapterDeploymentService$AbstractWildFlyRaDeployer.initAndInject(AbstractResourceAdapterDeploymentService.java:641)
at org.jboss.ironjacamar.impl@3.0.2.Final//org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:1242)
at org.jboss.as.connector@28.0.1.Final//org.jboss.as.connector.services.resourceadapters.ResourceAdapterActivatorService$ResourceAdapterActivator.doDeploy(ResourceAdapterActivatorService.java:189)
at org.jboss.as.connector@28.0.1.Final//org.jboss.as.connector.services.resourceadapters.ResourceAdapterActivatorService.start(ResourceAdapterActivatorService.java:133)
at org.jboss.msc@1.5.0.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1590)
at org.jboss.msc@1.5.0.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1553)
at org.jboss.msc@1.5.0.Final//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1411)
at org.jboss.threads@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.jboss.as.connector@28.0.1.Final//org.jboss.as.connector.util.Injection.inject(Injection.java:132)
at org.jboss.as.connector@28.0.1.Final//org.jboss.as.connector.util.Injection.inject(Injection.java:89)
at org.jboss.as.connector@28.0.1.Final//org.jboss.as.connector.services.resourceadapters.deployment.AbstractResourceAdapterDeploymentService$AbstractWildFlyRaDeployer.initAndInject(AbstractResourceAdapterDeploymentService.java:628)
... 11 more
Caused by: java.lang.IllegalArgumentException: Invalid expression sslContext=artemis-remote-sslport=61616 at port=61616;localAddress=127.0.0.1;sslEnabled=true;host=nn74x045.sos.kb.cz;sslContext=artemis-remote-sslport=61616;localAddress=127.0.0.1;host=nv74x049.sos.kb.cz
at org.apache.activemq.artemis.ra@2.26.0//org.apache.activemq.artemis.ra.ActiveMQRaUtils.parseConfig(ActiveMQRaUtils.java:214)
at org.apache.activemq.artemis.ra@2.26.0//org.apache.activemq.artemis.ra.ActiveMQResourceAdapter.setConnectionParameters(ActiveMQResourceAdapter.java:345)
... 18 more
- is caused by
-
WFLY-7232 Add support for Elytron provided SSLContexts in Artemis
- Closed