MQ
共 3 篇文章
RabbitMQ实战
1、Python脚本 安装后打开http://localhost:15672/cli/,右键另存为py文件 脚本使用说明 rabbitmqadmin.py help rabbitmqadmin.py help subcommands 2、用户管理 新增 rabbitmqctl add_user 用户名 密码 授权 rabbitmqctl.bat set_user_tags 用户名 角色 用户列表 rabbitmqctl.bat list_users 更改密码 rabbitmqctl.bat change_password 用户 新密码 删除用户 rabbitmqctl.bat delete_…
ActiveMQ的JMS使用
Context ctx; ConnectionFactory factory; Connection connection = null; Session session = null; MessageProducer producer = null; Destination destination; Message msg; try { ctx = new InitialContext(); //初始化,加载jndi配置文件 factory = (ConnectionFactory) ctx.lookup("connectionFactory"); //获取链接工厂 connection …
2016-10-25 11:16 · MQ · ActiveMQ · JMS
ActiveMQ用户认证
ActiveMQ认证分为两种简单认证与JAAS认证,都是通过插件方式实现,创建链接时需要指定用户名与密码,factory.createConnection("publisher","password"); 简单认证配置 : <plugins> <simpleAuthenticationPlugin> <users> <authenticationUser username="admin" password="password" groups="admins,publishers,consumers" /> <authenticationUser username="publisher" pa…
2016-10-25 10:55 · MQ · ActiveMQ · 认证