natronq / openshift-activemq Goto Github PK
View Code? Open in Web Editor NEWActiveMQ on OpenShift
License: Apache License 2.0
ActiveMQ on OpenShift
License: Apache License 2.0
Hey,
By using the project, I am able to deploy / run ActiveMQ server. I see openshift-activemq application shown in Openshift web console / Overview. I can see pod's log, added below. Further, I can visit the activeMQ server admin web console in browser https://activemq-wfm-pace.paas-app-east-np.tsl.telus.com/admin/index.jsp. in the admin web console, I add a topic event. So far I am very happy. it is almost equal experience compare to deploying and running a fresh unzipped server instance at localhost.
But when I run the included client example: examples\openwire\java, I get Connection refused error. I tried different user/password pairs: admin/password, system/manager, admin/admin, no one working. In contrast, the same client example app, when I switch to target to the server running at localhost, it works with any given user/password and even without user/password,
I tried to go to my laptop Windows 10, firewall, outbound port, open 61616. no help.
Any idea what I am wrong or missing? Should I
C:\d_download\Apache-activemq\apache-activemq-5.15.2-bin\apache-activemq-5.15.2\examples\openwire\java>setAppEnv_openshift.bat
C:\d_download\Apache-activemq\apache-activemq-5.15.2-bin\apache-activemq-5.15.2\examples\openwire\java>set ACTIVEMQ_HOST=activemq-wfm-pace.paas-app-east-np.tsl.telus.com
C:\d_download\Apache-activemq\apache-activemq-5.15.2-bin\apache-activemq-5.15.2\examples\openwire\java>set ACTIVEMQ_PORT=61616
C:\d_download\Apache-activemq\apache-activemq-5.15.2-bin\apache-activemq-5.15.2\examples\openwire\java>set ACTIVEMQ_USER=system
C:\d_download\Apache-activemq\apache-activemq-5.15.2-bin\apache-activemq-5.15.2\examples\openwire\java>set ACTIVEMQ_PASSWORD=manager
C:\d_download\Apache-activemq\apache-activemq-5.15.2-bin\apache-activemq-5.15.2\examples\openwire\java>java -cp target/openwire-example-0.1-SNAPSHOT.jar example.Listener
Exception in thread "main" javax.jms.JMSException: Could not connect to broker URL: tcp://activemq-wfm-pace.paas-app-east-np.tsl.telus.com:61616.
Reason: java.net.ConnectException: Connection refused: connect
at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:36)
at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:374)
at org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:252)
at example.Listener.main(Listener.java:36)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:525)
at org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:488)
at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
at org.apache.activemq.transport.AbstractInactivityMonitor.start(AbstractInactivityMonitor.java:169)
at org.apache.activemq.transport.InactivityMonitor.start(InactivityMonitor.java:52)
at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:64)
at org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:64)
at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:64)
at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:354)
... 2 more
--
| Run as uid=1001090000 gid=0(root) groups=0(root),1001090000
| lrwxrwxrwx. 1 root root 27 Jul 17 20:51 /opt/activemq -> /opt/apache-activemq-5.15.2
| lrwxrwxrwx. 1 root root 27 Jul 17 20:51 /opt/activemq -> /opt/apache-activemq-5.15.2
| total 80
| -rw-rw-rw-. 1 root root 5911 Oct 17 2017 activemq.xml
| -rw-rw-rw-. 1 root root 592 Oct 17 2017 broker-localhost.cert
| -rw-rw-rw-. 1 root root 1370 Oct 17 2017 broker.ks
| -rw-rw-rw-. 1 root root 665 Oct 17 2017 broker.ts
| -rw-rw-rw-. 1 root root 1357 Oct 17 2017 client.ks
| -rw-rw-rw-. 1 root root 665 Oct 17 2017 client.ts
| -rw-rw-rw-. 1 root root 1172 Oct 17 2017 credentials-enc.properties
| -rw-rw-rw-. 1 root root 1121 Oct 17 2017 credentials.properties
| -rw-rw-rw-. 1 root root 962 Oct 17 2017 groups.properties
| -rw-rw-rw-. 1 root root 1011 Oct 17 2017 java.security
| -rw-rw-rw-. 1 root root 1087 Oct 17 2017 jetty-realm.properties
| -rw-rw-rw-. 1 root root 7795 Oct 17 2017 jetty.xml
| -rw-rw-rw-. 1 root root 965 Oct 17 2017 jmx.access
| -rw-rw-rw-. 1 root root 964 Oct 17 2017 jmx.password
| -rw-rw-rw-. 1 root root 3071 Oct 17 2017 log4j.properties
| -rw-rw-rw-. 1 root root 1207 Oct 17 2017 logging.properties
| -rw-rw-rw-. 1 root root 1016 Oct 17 2017 login.config
| -rw-rw-rw-. 1 root root 961 Oct 17 2017 users.properties
| total 0
| -rw-rw-rw-. 1 root root 0 Oct 17 2017 activemq.log
| ###
| INFO: Loading '/opt/activemq/bin/env'
| INFO: Using java '/usr/local/openjdk-8/bin/java'
| INFO: Starting in foreground, this is just for debugging purposes (stop process by pressing CTRL+C)
| INFO: Creating pidfile /opt/activemq/data/activemq.pid
| Java Runtime: Oracle Corporation 1.8.0_212 /usr/local/openjdk-8
| Heap sizes: current=63360k free=55879k max=1013632k
| JVM args: -Xms64M -Xmx1G -Djava.util.logging.config.file=logging.properties -Djava.security.auth.login.config=/opt/activemq/conf/login.config -Dcom.sun.management.jmxremote -Djava.awt.headless=true -Djava.io.tmpdir=/opt/activemq/tmp -Dactivemq.classpath=/opt/activemq/conf:/opt/activemq/../lib/: -Dactivemq.home=/opt/activemq -Dactivemq.base=/opt/activemq -Dactivemq.conf=/opt/activemq/conf -Dactivemq.data=/opt/activemq/data -agentpath:/opt/dynatrace/oneagent/agent/lib64/liboneagentloader.so
| Extensions classpath:
| [/opt/activemq/lib,/opt/activemq/lib/camel,/opt/activemq/lib/optional,/opt/activemq/lib/web,/opt/activemq/lib/extra]
| ACTIVEMQ_HOME: /opt/activemq
| ACTIVEMQ_BASE: /opt/activemq
| ACTIVEMQ_CONF: /opt/activemq/conf
| ACTIVEMQ_DATA: /opt/activemq/data
| Loading message broker from: xbean:activemq.xml
| INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@5f341870: startup date [Thu Jul 18 05:45:39 UTC 2019]; root of context hierarchy
| INFO | Using Persistence Adapter: KahaDBPersistenceAdapter[/opt/activemq/data/kahadb]
| INFO | PListStore:[/opt/activemq/data/localhost/tmp_storage] started
| INFO | Apache ActiveMQ 5.15.2 (localhost, ID:openshift-activemq-3-vsqq2-40136-1563428741152-0:1) is starting
| INFO | Listening for connections at: tcp://openshift-activemq-3-vsqq2:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600
| INFO | Connector openwire started
| INFO | Listening for connections at: amqp://openshift-activemq-3-vsqq2:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600
| INFO | Connector amqp started
| INFO | Listening for connections at: stomp://openshift-activemq-3-vsqq2:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600
| INFO | Connector stomp started
| INFO | Listening for connections at: mqtt://openshift-activemq-3-vsqq2:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600
| INFO | Connector mqtt started
| WARN | [email protected]@5b7a8434{/,null,STARTING} has uncovered http methods for path: /
| INFO | Listening for connections at ws://openshift-activemq-3-vsqq2:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600
| INFO | Connector ws started
| INFO | Apache ActiveMQ 5.15.2 (localhost, ID:openshift-activemq-3-vsqq2-40136-1563428741152-0:1) started
| INFO | For help or more information please see: http://activemq.apache.org
| WARN | Store limit is 102400 mb (current store usage is 0 mb). The data directory: /opt/activemq/data/kahadb only has 9880 mb of usable space. - resetting to maximum available disk space: 9880 mb
| WARN | Temporary Store limit is 51200 mb (current store usage is 0 mb). The data directory: /opt/activemq/data only has 9880 mb of usable space. - resetting to maximum available disk space: 9880 mb
| INFO | No Spring WebApplicationInitializer types detected on classpath
| INFO | ActiveMQ WebConsole available at http://0.0.0.0:8161/
| INFO | ActiveMQ Jolokia REST API available at http://0.0.0.0:8161/api/jolokia/
| INFO | Initializing Spring FrameworkServlet 'dispatcher'
| INFO | No Spring WebApplicationInitializer types detected on classpath
| INFO | jolokia-agent: Using policy access restrictor classpath:/jolokia-access.xml
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.