Skip to content

All demo code will be here, used by other reppository.

Notifications You must be signed in to change notification settings

Alice52/java-tutorials

Repository files navigation

demo code

This repository is exist for other note repository, and it is all sample.

content

wiki

  • Click here to get the wiki of repository, and you can get more detail about sample.

question

mq-activemq

// TODO

This connection should be singleton, and all lifecycle just has one connection. And can reference Rabbitmq[esb].

  • solution 1:
    • get connection use the session, which is created by connection. In this case, please reference mybatis.
    conn =  sqlSession.getConfiguration().getEnvironment().getDataSource().getConnection();
    
  • solution 2:
    • use applicationContext to store all singleton var.

how to get clientID

maven project

  • sub module how to use parent project dependency
    • solution: in sub module tag <relativePath>
    <parent>
        <artifactId>activemq</artifactId>
        <groupId>com.augmentum.mq</groupId>
        <version>1.0-SNAPSHOT</version>
        <relativePath>../pom.xml</relativePath>
    </parent>
  • sub module how to use parent project config

exception

  1. Cause: Broker: localhost - Client: subscriber02-topic already connected from tcp:https://183.213.100.153:20137
    • solution: persistence subscribers

About

All demo code will be here, used by other reppository.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published