This still has an issue with getting a consistent read. I will update this once I figure that piece out… import org.apache.activemq.*; import java.util.*; import org.apache.activemq.advisory.DestinationSource; import javax.jms.*; import javax.naming.*; import org.apache.activemq.*; import org.apache.activemq.command.ActiveMQQueue; public class ListQueues { public static…
JBOSS – Changing connection pool size with JMX
Enable password in JBOSS_HOME/server/JBOSS_SERVER_NAME/conf/props/jmx-console-users.properties You can then punch in bean calls such as the following… [sa-jboss@servername ~]$ /usr/local/jboss/bin/twiddle.sh –server=servername:1599 -u admin -p admin get “jboss.jca:service=ManagedConnectionPool,name=atgcatalogb_ds” MinSize MinSize=10 [sa-jboss@servername ~]$ /usr/local/jboss/bin/twiddle.sh –server=servername:1599 -u admin -p admin set “jboss.jca:service=ManagedConnectionPool,name=atgcatalogb_ds” MinSize 40 MinSize=40…
Loading snowflake from Oracle
Single class to illustrate loading data… import java.sql.*; import java.util.*; public class loadSnowflake { public static void main(String[] args) throws Exception { Class.forName(“oracle.jdbc.driver.OracleDriver”); Class.forName(“com.snowflake.client.jdbc.SnowflakeDriver”); Properties properties = new Properties(); properties.put(“user”, “showard”); properties.put(“password”, “*****”); properties.put(“account”, “rcaccount#”); properties.put(“schema”, “PUBLIC”); Connection connection =…
Who installed which packages when
Just a quick how-to this morning… # for id in $(yum history list all | grep showard | awk ‘{print $1}’ | head -1); do echo “****************************************************”; yum history info ${id}; done **************************************************** Loaded plugins: product-id, rhnplugin, search-disabled-repos, security, subscription-manager…
Using Cisco Packet Tracer to setup a simple routed network
This is the first in a series of posts that will show how you can learn about networking by using the free Cisco Packet Tracer software program. C:\>tracert 172.16.1.51 Tracing route to 172.16.1.51 over a maximum of 30 hops: 1…
Android – Log network SSID’s and DBM
Technically, this could be used to trilaterate over time and heatmap where associates spend their time, as well as what activity occurs where. To do this, we would need the coordinates of all AP’s in the given store. The endpoint…