SQL Server – querying active users by database

use master go declare @table table(         spid int,         status varchar(max),         login varchar(max),         hostname varchar(max),         blkby varchar(max),         dbname varchar(max),         command varchar(max),         cputime int,         diskio int,         lastbatch varchar(max),         programname varchar(max),        …

WLST script to take thread dumps

Quick wlst script to take thread dumps inside the running container… connect (‘weblogic’,’welcome1′,’t3://localhost:7001′)   counter = 0 sleepTime = 5000   for counter in range(10): serverName = ‘AdminServer’   java.lang.Thread.sleep(sleepTime) fileName = ‘dump’ + serverName + counter + ‘.dmp’ threadDump(‘true’,…

Where does ActiveMQ store subscriber information?

After subscribing, you will see an entry in the ACTIVEMQ_ACKS table… SQL> select container,client_id from esb.activemq_acks; CONTAINER CLIENT_ID —————————————- —————————————- topic://testTopic me topic://testTopic mysubscriber topic://testTopic mysubscriber2 SQL> Once unsubscribe has been run on the subscriber… ConnectionFactory connectionFactory=new ActiveMQConnectionFactory("admin", "admin", "tcp://localhost:61616");…

Simple camel project with full maven instructions

Generate maven project stub directory… mvn archetype:generate -DgroupId=com.yourcompany.it.arch.poc.esb -DartifactId=esbpoc -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false …then create the single class in our POC… package com.yourcompany.it.arch.poc.esb; import javax.jms.ConnectionFactory; import org.apache.activemq.*; import org.apache.camel.*; import org.apache.camel.builder.*; import org.apache.camel.component.jms.*; import org.apache.camel.impl.*; public final class App { public static…