Bjørn Westblad [
https://community.jboss.org/people/bjorwes] created the discussion
"Re: Resource Adapter + authentication"
To view the discussion, visit:
https://community.jboss.org/message/731862#731862
--------------------------------------------------------------
Hi,
I seem to have the same problem on JBoss 7.1.1-FINAL - even though the related issue is
supposed to be resolved.
I have a resource adapter for connection to WMQ, that tries to use a
<security-domain> for SSL-authentication to the MQ-server.
Note that the connection to WMQ works if I only use the <application/> tag for the
resource adapter, but we need to use SSL and it simply seems to not pick up the
configuration.
<subsystem xmlns="urn:jboss:domain:resource-adapters:1.0">
..................
<connection-definitions>
<connection-definition
class-name="com.ibm.mq.connector.outbound.ManagedQueueConnectionFactoryImpl"
jndi-name="java:jboss/six-qcf" enabled="true"
use-java-context="true" pool-name="QueueConnection"
use-ccm="true">
<config-property name="port">
PORTNAME
</config-property>
<config-property name="hostName">
HOSTNAME
</config-property>
<config-property name="channel">
CHANNELNAME
</config-property>
<config-property name="transportType">
CLIENT
</config-property>
<config-property name="queueManager">
QMQR-NAME
</config-property>
<security>
<security-domain>ResourceAdapter-policy</security-domain>
</security>
</connection-definition>
</connection-definitions>
</subsystem>
<subsystem xmlns="urn:jboss:domain:security:1.1">
........................
<security-domain name="ResourceAdapter-policy"
cache-type="default">
<jsse keystore-password="****" keystore-type="JKS"
keystore-url="/opt/jboss/etc/keystore.jks" truststore-password="***"
truststore-type="JKS" truststore-url="/opt/jboss/etc/truststore.jks"
cipher-suites="TLS_RSA_WITH_AES_128_CBC_SHA" server-alias="host-key"
client-alias="host-key"/>
</security-domain>
</subsystem>
The following error message is shown in server.log:
11:53:46,871 WARN [org.springframework.jms.listener.DefaultMessageListenerContainer]
(Container-1) Setup of JMS message listener invoker failed for destination
'com.ibm.mq.connector.outbound.MQQueueProxy@296df388' - trying to recover. Cause:
PB00024: Access Denied:Unauthenticated caller:null
11:53:46,872 WARN [org.springframework.jms.listener.DefaultMessageListenerContainer]
(Container-1) Could not refresh JMS Connection for destination
'com.ibm.mq.connector.outbound.MQQueueProxy@296df388' - retrying in 5000 ms.
Cause: PB00024: Access Denied:Unauthenticated caller:null
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/731862#731862]
Start a new discussion in IronJacamar at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]