Sign inSign up

dante5/activemq_jdbc_postgres

By dante5

•Updated almost 7 years ago

ActiveMQ(apache-activemq-5.15.6) with JDBC driver for postgre(postgresql-42.2.8.jar)

Image
0

223

dante5/activemq_jdbc_postgres repository overview

Example for run container: docker run --name=activemq -d --restart=always -p 61616:61616 -p 8161:8161 -v /home/activemq/conf:/opt/activemq/conf -v /home/activemq/data:/opt/activemq/data dante5/activemq_jdbc_postgres:0.1 Add to your config/activemq.xml

And change connection DB

    <persistenceAdapter>
    <!--    <kahaDB directory="${activemq.data}/kahadb"/> -->
        <jdbcPersistenceAdapter dataDirectory="activemq-data" dataSource="#postgres-ds" lockKeepAlivePeriod="0"/>
    </persistenceAdapter>

And add to your DB table:

CREATE TABLE ACTIVEMQ_MSGS(ID BIGINT NOT NULL, CONTAINER VARCHAR(250) NOT NULL, MSGID_PROD VARCHAR(250), MSGID_SEQ BIGINT, EXPIRATION BIGINT, MSG BYTEA, PRIMARY KEY ( ID ) );

Tag summary

Content type

Image

Digest

Size

287.7 MB

Last updated

almost 7 years ago

docker pull dante5/activemq_jdbc_postgres