This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bea_home=/path/to/bea | |
java_home=/path/to/bea/jdk160_18 | |
domain_template=/path/to/bea/weblogic11/common/templates/domains/wls.jar | |
admin_server_name=my_admin_server | |
admin_url=t3\://myserver\:7001 | |
admin_user=weblogic | |
admin_password=w3blogicpwd | |
admin_port=7001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -------------------------------------------------- | |
# Use WLST to connect to running WebLogic application servers and | |
# output a list of database connection pools and their sizes. | |
# | |
# This can be used for health monitoring and to support tuning. | |
# -------------------------------------------------- | |
import java.lang.Thread | |
def get_connection_pool_sizes(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ---------------------------------------------------------------------- | |
# Example of connecting to a running JMS server and getting stats. | |
# ---------------------------------------------------------------------- | |
import java.lang.Thread | |
def get_messaging_stats(): | |
print 'Searching for JMS connections...' | |
# Hard-codes the JMS server name. You will probably want to parameterize this. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Search through the file system and list files in size reverse order. | |
du -akd /a/root/dir | sort -nr | less | |
VirtualBox Config | |
Set up NAT port forwarding from host port 8000 to guest port 80. | |
VBoxManage modifyvm "MyGuest" --natpf1 "www,tcp,,8080,,80" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#--------------------------------------------------------------------- | |
# | |
# Parse the response from Sonatype Nexus in order to determine the | |
# correct URI for the most recent snapshot of an artifact. | |
# | |
# Usage: | |
# ruby get_latest_snapshot.rb \ | |
# -n http://localhost:8080/nexus \ | |
# -g uk.co.scattercode \ | |
# -a my-artifact \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-jar-plugin</artifactId> | |
<version>2.3.2</version> | |
<executions> | |
<execution> | |
<id>factmodel</id> | |
<!-- | |
Use the Jar plugin to produce a reduced JAR containing only those model classes | |
to be used as facts in Drools/Guvnor. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-shade-plugin</artifactId> | |
<version>1.4</version> | |
<executions> | |
<execution> | |
<phase>package</phase> | |
<goals> | |
<goal>shade</goal> | |
</goals> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package uk.co.scattercode.drools.accumulators; | |
import java.io.IOException; | |
import java.io.ObjectInput; | |
import java.io.ObjectOutput; | |
import java.io.Serializable; | |
import java.math.BigDecimal; | |
import org.drools.runtime.rule.TypedAccumulateFunction; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package uk.co.scattercode.security.seam; | |
import java.util.ArrayList; | |
import java.util.Hashtable; | |
import java.util.List; | |
import java.util.Set; | |
import java.util.TreeSet; | |
import javax.naming.Context; | |
import javax.naming.NamingEnumeration; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<camelContext xmlns="http://camel.apache.org/schema/spring"> | |
<route> | |
<from uri="webspheremq:ANY.OPERATION.REQUEST" /> | |
<choice> | |
<when> | |
<xpath>/REQUEST/HEADER[@OperationName='Old.Request']</xpath> | |
<to uri="activemq:OLD.REQUEST" /> | |
</when> | |
<when> | |
<xpath>/REQUEST/HEADER[@OperationName='New.Request']</xpath> |
OlderNewer