rxue / dictionary

Practice in Java EE
1 stars 0 forks source link

sub-task: Learning > make another separate Wildfly whose only responsibility is a Broker in the context of message queue #28

Open rxue opened 2 years ago

rxue commented 2 years ago

Preparation TODO:

Make a Wildfly Docker container startup script with 8081 as port. NOTE! use standalone-full.xml (full profile) instead of standalone.xml

rxue commented 2 years ago

Preparation TODO

Make management console work, i.e. open the default port 9990

rxue commented 2 years ago

http://localhost:9990/ got response, but got error:

However you have not yet added any users to be able to access the admin console

=> TODO

Add an admin user on base of https://quay.io/repository/wildfly/wildfly

rxue commented 2 years ago

TODO

Try to add a new queue through the Wildfly Admin console: wildfly_queue_destination

wildfly_jmsqueue_destination

rxue commented 2 years ago

Adding of a new JMS queue fails always in the Admin Console => TODO

Add the new JMS queue through standalone-full.xml

rxue commented 2 years ago

After assigning static IP address to this Broker container (mom) , sending message to the activeMQ still encounters the following error:

Exception in thread "main" javax.jms.JMSSecurityRuntimeException: AMQ229031: Unable to validate user from /172.22.0.1:60794. Username: null; SSL certificate subject DN: unavailable
    at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createContext(ActiveMQConnectionFactory.java:324)
    at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createContext(ActiveMQConnectionFactory.java:314)
    at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createContext(ActiveMQConnectionFactory.java:304)
    at rx.practice.advanced.javax.naming.InitialContextLookupMDBDemo.main(InitialContextLookupMDBDemo.java:25)
Caused by: javax.jms.JMSSecurityException: AMQ229031: Unable to validate user from /172.22.0.1:60794. Username: null; SSL certificate subject DN: unavailable
    at org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:540)
    at org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:434)
    at org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQClientProtocolManager.createSessionContext(ActiveMQClientProtocolManager.java:300)
    at org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQClientProtocolManager.createSessionContext(ActiveMQClientProtocolManager.java:249)
    at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.createSessionChannel(ClientSessionFactoryImpl.java:1401)
    at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.createSessionInternal(ClientSessionFactoryImpl.java:705)
    at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.createSession(ClientSessionFactoryImpl.java:316)
    at org.apache.activemq.artemis.jms.client.ActiveMQConnection.authorize(ActiveMQConnection.java:684)
    at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:920)
    at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createContext(ActiveMQConnectionFactory.java:321)
    ... 3 more
Caused by: ActiveMQSecurityException[errorType=SECURITY_EXCEPTION message=AMQ229031: Unable to validate user from /172.22.0.1:60794. Username: null; SSL certificate subject DN: unavailable]
    ... 13 more